SLGetWindowsInformationDWORD Function
SLGetWindowsInformationDWORD Function

Retrieves the DWORD value portion of a name-value pair from the licensing policy of a software component.

Syntax

HRESULT WINAPI SLGetWindowsInformationDWORD(
  __in   PCWSTR pwszValueName,
  __out  DWORD *pdwValue
);


Parameters

pwszValueName [in]

A pointer to a null-terminated string that contains the name associated with the value to retrieve.

pdwValue [out]

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/valueDescription
SL_E_RIGHT_NOT_GRANTED
0xC004F013

The caller does not have the permissions necessary to call this function.

SL_E_DATATYPE_MISMATCHED
0xC004F01E

The value portion of the name-value pair is not a DWORD.

 

Requirements

Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderSlpublic.h
LibrarySlc.lib
DLLSlc.dll

Send comments about this topic to Microsoft

Build date: 11/19/2009

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View