IWbemDecoupledBasicEventProvider::GetService method

The IWbemDecoupledBasicEventProvider::GetService method retrieves an IWbemService object to be used to call back into WMI. This method provides for fully concurrent access.

Syntax


HRESULT GetService(
  [in]  LONG         lFlags,
  [in]  IWbemContext *pContext,
  [out] IWbemService *pService
);

Parameters

lFlags [in]

Reserved for future use.

pContext [in]

Reserved for future use.

pService [out]

Pointer to an IWbemService object that can be used to retrieve information from 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_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: