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 |
---|---|
|
The item is not a list element. |
|
There are insufficient resources to return information to the user. |
|
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for