IWbemContext::DeleteValue method

The IWbemContext::DeleteValue method deletes a named context value created by IWbemContext::SetValue.

Syntax


HRESULT DeleteValue(
  [in] LPCWSTR strName,
  [in] LONG    lFlags
);

Parameters

strName [in]

Pointer to a valid BSTR containing the named context value to delete. The pointer is treated as read-only.

lFlags [in]

Reserved. This parameter must be 0.

Return value

This method returns an HRESULTHRESULT indicating the status of the method call. The following list lists the value contained withinan HRESULTHRESULT.

WBEM_E_FAILED

There has been a general failure.

WBEM_E_INVALID_PARAMETER

An invalid strName or lFlags value was specified.

WBEM_E_NOT_FOUND

The specified named context value does not exist.

WBEM_S_NO_ERROR

The call succeeded.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

WbemCli.h (include Wbemidl.h)

Library

Wbemuuid.lib

DLL

Esscli.dll;
Fastprox.dll;
FrameDyn.dll;
FrameDynOS.dll;
Wbemcomn.dll;
Wbemcore.dll;
Wbemess.dll;
Wmipjobj.dll

See also

IWbemContext
IWbemContext::GetValue
IWbemContext::SetValue

 

 

Show: