SLGetWindowsInformationDWORD function (slpublic.h)
Retrieves the DWORD value portion of a name-value pair from the licensing policy of a software component.
Syntax
HRESULT SLGetWindowsInformationDWORD(
[in] PCWSTR pwszValueName,
[out] DWORD *pdwValue
);
Parameters
[in] pwszValueName
A pointer to a null-terminated string that contains the name associated with the value to retrieve.
[out] pdwValue
A pointer to the value associated with the name specified by the pwszValueName parameter.
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 Slerror.h.
Return code/value | Description |
---|---|
|
The caller does not have the permissions necessary to call this function. |
|
The value portion of the name-value pair is not a DWORD. |
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 |