SLSetGenuineInformation function (slpublic.h)
Specifies information about the genuine status of a Windows computer.
Syntax
HRESULT SLSetGenuineInformation(
[in] const SLID *pQueryId,
[in] PCWSTR pwszValueName,
[in] SLDATATYPE eDataType,
[in, optional] UINT cbValue,
[in, optional] const BYTE *pbValue
);
Parameters
[in] pQueryId
A pointer to an SLID structure that specifies the application for which to set information.
[in] pwszValueName
A pointer to a null-terminated string that contains the name associated with the value to set. The following names are valid.
[in] eDataType
A pointer to a value of the SLDATATYPE enumeration that specifies the type of data in the pbValue buffer.
[in, optional] cbValue
A pointer to the size, in bytes, of the pbValue buffer.
[in, optional] pbValue
A pointer to an array of BYTE values that specify the value associated with the name specified by the pwszValueName parameter.
Some name-value pairs allow this parameter to be NULL. In this case, the existing value of the name-value pair is deleted.
When you have finished using this array, free it by calling the LocalFree function.
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.
This function can return the following values defined in Winerror.h and Slerror.h.
Return code/value | Description |
---|---|
|
The caller does not have administrative privileges. |
|
The pbValue parameter cannot be NULL. |
|
The pbValue buffer is too small to hold the data. |
|
The data type of the pbValue parameter does not match the type specified by the eDataType parameter. |
|
The specified name-value pair is dependent on a name-value pair that has not been set. |
|
The name specified by the pwszValueName parameter is not supported. |
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 | Slc.lib |
DLL | Slc.dll |