GetRestrictedSink method
Collapse the table of content
Expand the table of content

IWbemEventSink::GetRestrictedSink method

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

lNumQueries [in]

Number of queries in array.

awszQueries [in]

Array of event queries.

pCallback [in]

Pointer to callback for event provider.

ppSink [out]

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 withinan HRESULT.

WBEM_E_INVALID_PARAMETER

One or more parameters are not valid.

WBEM_E_UNPARSABLE_QUERY

The query could not be parsed.

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)

Library

Wbemuuid.lib

DLL

Wbemsvc.dll

 

 

Show:
© 2016 Microsoft