IWbemDecoupledBasicEventProvider::GetService method (wbemprov.h)

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(
  long          a_Flags,
  IWbemContext  *a_Context,
  IWbemServices **a_Service
);

Parameters

a_Flags

Reserved for future use.

a_Context

Reserved for future use.

a_Service

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.

Requirements

   
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header wbemprov.h (include Wbemidl.h)
Library Wbemuuid.lib
DLL Wmidcprv.dll