IWbemPathKeyList::SetKey method (wmiutils.h)
The IWbemPathKeyList::SetKey method sets the name or value pair for a key. If the key exists, it is replaced. If the name is empty, all existing keys are deleted.
Syntax
HRESULT SetKey(
[in] LPCWSTR wszName,
[in] ULONG uFlags,
[in] ULONG uCimType,
[in] LPVOID pKeyVal
);
Parameters
[in] wszName
Key name, may be NULL.
[in] uFlags
Reserved. Must be 0 (zero).
[in] uCimType
CIMTYPE size.
[in] pKeyVal
Pointer to the data. The data pointed to varies depending on the uCimType parameter.
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 |
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