ISettingsItem::GetKeyValue method (wcmconfig.h)

Extracts key values for any list that already exists in the image, for example, DNS, http settings, and user account information.


HRESULT GetKeyValue(
  [out] VARIANT *Value


[out] Value

The value of the key for the list element. The type of the value returned is the actual type of the key. For example, the type is a string in the case of a dynamically keyed list. The value is unescaped appropriately to reverse the changes made by SMI for the purpose of storing it. The VARIANT type is overwritten with the correct type if the predefined VARIANT type is incorrect.

Return value

Return code Description
The item is not a list element.
There are insufficient resources to return information to the user.
The value is null.


Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header wcmconfig.h
DLL SMIEngine.dll

See also