SLIsGenuineLocal function

Checks whether the specified application is a genuine Windows installation.

Syntax

HRESULT SLIsGenuineLocal(
  const SLID               *pAppId,
  SL_GENUINE_STATE         *pGenuineState,
  SL_NONGENUINE_UI_OPTIONS *pUIOptions
);

Parameters

pAppId

A pointer to an SLID structure that specifies the application to check.

pGenuineState

A pointer to a value of the SL_GENUINE_STATE enumeration that specifies the state of the installation.

pUIOptions

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 [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header slpublic.h
Library Slwga.lib
DLL Slwga.dll