Applies to: desktop apps only
Checks whether the specified application is a genuine Windows installation.
Syntax
HRESULT WINAPI SLIsGenuineLocal( __in const SLID *pAppId, __out SL_GENUINE_STATE *pGenuineState, __inout_opt SL_NONGENUINE_UI_OPTIONS *pUIOptions );
Parameters
- pAppId [in]
-
A pointer to an SLID structure that specifies the application to check.
- pGenuineState [out]
-
A pointer to a value of the SL_GENUINE_STATE enumeration that specifies the state of the installation.
- pUIOptions [in, out, optional]
-
A pointer to an SL_NONGENUINE_UI_OPTIONS structure that specifies a dialog box to display if the installation is not genuine. If the value of this parameter is NULL, no dialog box is displayed.
Return value
If the method succeeds, it returns S_OK.
If the method fails, it returns an error code. For a list of common error codes, see Common HRESULT Values.
Remarks
This function checks the Tampered flag of the license associated with the specified application. If the license is not valid, or if the Tampered flag of the license is set, the installation is not considered valid.
Requirements
|
Minimum supported client | Windows Vista |
|---|---|
|
Minimum supported server | Windows Server 2008 |
|
Header |
|
|
Library |
|
|
DLL |
|
Send comments about this topic to Microsoft
Build date: 5/5/2012
