Export (0) Print
Expand All

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 table lists the value contained within an HRESULT.

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

Header

Wbemprov.h (include Wbemidl.h)

Library

Wbemuuid.lib

DLL

Wmidcprv.dll

 

 

Show:
© 2015 Microsoft