IWbemPathKeyList::RemoveKey method

The IWbemPathKeyList::RemoveKey method removes the key that matches the wszName parameter.

Syntax


HRESULT RemoveKey(
  [in, out] LPCWSTR wszName,
  [in]      ULONG   uFlags
);

Parameters

wszName [in, out]

Name of the key to be removed.

uFlags [in]

Reserved. Must be 0 (zero).

Return value

This method returns an HRESULT indicating the status of the method call.

S_OK

Method executed successfully.

WBEM_E_INVALID_PARAMETER

The uFlags parameter is not 0 (zero) or the key name was not found.

WBEM_E_OUT_OF_MEMORY

Insufficient memory to perform the operation.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Wmiutils.h

Library

Wbemuuid.lib

DLL

Wmiutils.dll

See also

IWbemPath
IWbemPathKeyList
IWbemPathKeyList::RemoveAllKeys

 

 

Show: