Export (0) Print
Expand All

SLGetGenuineInformationEx function

Specifies information about the genuine status of a Windows computer.

Syntax


HRESULT WINAPI SLGetGenuineInformationEx(
  _In_       const SLID *pAppId,
  _In_       PCWSTR pwszValueName,
  _Out_opt_  SLDATATYPE *peDataType,
  _Out_      UINT *pcbValue,
  _Out_      BYTE **ppbValue
);

Parameters

pAppId [in]

Type: const SLID*

A pointer to the application ID.

pwszValueName [in]

Type: PCWSTR

The name associated with the value of the property to set.

peDataType [out, optional]

Type: SLDATATYPE*

A pointer to a value of the SLDATATYPE enumeration that specifies the data type in the ppbValue buffer.

pcbValue [out]

Type: UINT*

A pointer to the size, in bytes, of the ppbValue buffer.

ppbValue [out]

Type: BYTE**

A pointer to the genuine status retrieved. When finished using the memory, free it by calling the LocalFree function.

Return value

Type: HRESULT WINAPI

If this function succeeds, it return S_OK. Otherwise, it returns an HRESULT error code.

Return code/valueDescription
SL_E_NOT_SUPPORTED
0xC004F016

The name of value is not supported.

SL_E_VALUE_NOT_FOUND
0xC004F012

The value for the input key was not found.

SL_E_NOT_GENUINE
0xC004F200

The application licensing state is non-genuine.

 

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Slpublic.h

Library

Slc.lib

DLL

Slc.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft