This topic has not yet been rated - Rate this topic

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.

Return codeDescription
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.

 

Remarks

Windows 2000 and Windows NT:  Requires the WMI SDK Update or the Microsoft .NET Framework SDK. For more information about obtaining this SDK, see Windows Management Instrumentation.
Windows NT:  Requires the Microsoft .NET Framework SDK. For more information about obtaining this SDK, see Windows Management Instrumentation.

Examples

For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.

For C++ code examples, see WMI C++ Application Examples.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Redistributable

WMI Redistributable Components version 1.0 on Windows 2000.

Header

Wmiutils.h

Library

Wbemuuid.lib

DLL

Wmiutils.dll

See also

IWbemPath
IWbemPathKeyList
IWbemPathKeyList::RemoveAllKeys

 

 

Send comments about this topic to Microsoft

Build date: 11/19/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.