Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

SLIsGenuineLocal function

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 [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Slpublic.h

Library

Slwga.lib

DLL

Slwga.dll

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.