IWbemDecoupledBasicEventProvider::GetSink method

The IWbemDecoupledBasicEventProvider::GetSink method retrieves an IWbemObjectSink object for event forwarding to WMI. This method provides for fully concurrent access.

Syntax


HRESULT GetSink(
  [in]  LONG            lFlags,
  [in]  IWbemContext    *pContext,
  [out] IWbemObjectSink *pSink
);

Parameters

lFlags [in]

Reserved for future use.

pContext [in]

Reserved for future use.

pSink [out]

Pointer to an IWbemObjectSink instance used to forward events to WMI.

Return value

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

WBEM_E_ACCESS_DENIED

Access to the object is denied.

WBEM_E_CRITICAL_ERROR

An internal error has occurred.

WBEM_E_NOT_FOUND

The specified named context value does not exist.

WBEM_E_NOT_REGISTERED

The object is not registered.

WBEM_E_OUT_OF_MEMORY

The system has run out of memory.

WBEM_E_TIMED_OUT

System time out.

WBEM_S_NO_ERROR

The call succeeded.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Wbemprov.h (include Wbemidl.h)

IDL

Wbemprov.idl

Library

Wbemuuid.lib

DLL

Wmidcprv.dll

CLSID

CLSID_WbemDecoupledBasicEventProvider is defined as f5f75737-2843-4f22-933d-c76a97cda62f

IID

IID_IWbemDecoupledBasicEventProvider is defined as 86336d20-ca11-4786-9ef1-bc8a946b42fc

 

 

Show: