IWbemEventSink::GetRestrictedSink method (wbemprov.h)

The IWbemEventSink::GetRestrictedSink method retrieves a restricted event sink. A restricted event sink is one which filters a subset of the events defined in the event provider's registration.

Syntax

HRESULT GetRestrictedSink(
  [in]  long           lNumQueries,
  [in]  const LPCWSTR  *awszQueries,
  [in]  IUnknown       *pCallback,
  [out] IWbemEventSink **ppSink
);

Parameters

[in] lNumQueries

Number of queries in array.

[in] awszQueries

Array of event queries.

[in] pCallback

Pointer to callback for event provider.

[out] ppSink

Pointer to created IWbemEventSink object.

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 Wbemsvc.dll