SLIsGenuineLocal function (slpublic.h)

Checks whether the specified application is a genuine Windows installation.

Syntax

HRESULT SLIsGenuineLocal(
  [in]                const SLID               *pAppId,
  [out]               SL_GENUINE_STATE         *pGenuineState,
  [in, out, optional] SL_NONGENUINE_UI_OPTIONS *pUIOptions
);

Parameters

[in] pAppId

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

[out] pGenuineState

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

[in, out, optional] 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

Requirement Value
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