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.

Syntax

HRESULT GetKeyValue(
  [out] VARIANT *Value
);

Parameters

[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
HRESULT_FROM_WIN32 (ERROR_INVALID_OPERATION)
The item is not a list element.
E_OUTOFMEMORY
There are insufficient resources to return information to the user.
E_INVALIDARG
The value is null.

Requirements

Requirement Value
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

ISettingsItem