IWbemContext::DeleteValue method (wbemcli.h)

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

Syntax

HRESULT DeleteValue(
  [in] LPCWSTR wszName,
  [in] long    lFlags
);

Parameters

[in] wszName

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

[in] lFlags

Reserved. This parameter must be 0.

Return value

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

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
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