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

IWbemPath

IWbemPathKeyList

IWbemPathKeyList::SetKey2