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

Parameters

[in] a_Flags

Reserved for future use.

[in] a_Context

Reserved for future use.

[out] 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

Requirement Value
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