SLGetGenuineInformationEx function (slpublic.h)

Specifies information about the genuine status of a Windows computer.

Syntax

HRESULT SLGetGenuineInformationEx(
  [in]            const SLID *pAppId,
  [in]            PCWSTR     pwszValueName,
  [out, optional] SLDATATYPE *peDataType,
  [out]           UINT       *pcbValue,
  [out]           BYTE       **ppbValue
);

Parameters

[in] pAppId

Type: const SLID*

A pointer to the application ID.

[in] pwszValueName

Type: PCWSTR

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

[out, optional] peDataType

Type: SLDATATYPE*

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

[out] pcbValue

Type: UINT*

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

[out] ppbValue

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/value Description
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

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header slpublic.h
Library Slc.lib
DLL Slc.dll