Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The IWbemPathKeyList::SetKey2 method sets the name or value pair for a key using variants. If the key exists, it is replaced.
Syntax
HRESULT SetKey2(
[in] LPCWSTR wszName,
[in] ULONG uFlags,
[in] ULONG uCimType,
[in] VARIANT *pKeyVal
);
Parameters
[in] wszName
Key name, may be NULL.
[in] uFlags
Reserved. Must be 0 (zero).
[in] uCimType
CIMTYPE size.
[in] pKeyVal
Pointer to a variant that contains the data.
Return value
This method returns an HRESULT indicating the status of the method call.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista |
| Minimum supported server | Windows Server 2008 |
| Target Platform | Windows |
| Header | wmiutils.h |
| Library | Wbemuuid.lib |
| DLL | Wmiutils.dll |