Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IWbemEventProviderQuerySink interface

The IWbemEventProviderQuerySink interface is optionally implemented by event providers who want to know what kinds of event query filters are currently active to optimize performance.

Members

The IWbemEventProviderQuerySink interface inherits from the IUnknown interface. IWbemEventProviderQuerySink also has these types of members:

Methods

The IWbemEventProviderQuerySink interface has these methods.

MethodDescription
CancelQuery

Called whenever a consumer query is canceled or unregistered.

NewQuery

Called whenever a new consumer query is registered with WMI.

 

Remarks

Although WMI calls the methods of IWbemEventProvider only one time after an event provider becomes active, WMI calls the methods of IWbemEventProviderQuerySink continuously, as appropriate. The provider can ignore all calls to IWbemEventProviderQuerySink methods as needed. This point is very important; supporting IWbemEventProviderQuerySink indicates that a provider will supply at least the events requested by queries.

A provider can also generate more events than requested, which WMI filters as appropriate. This functionality means you can implement IWbemEventProviderQuerySink and optimize processing without addressing all parts of the WMI Query Language (WQL). For instance, if a provider does not specifically handle a particular query, the provider can generate all possible events for the query.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

Wbemprov.h (include Wbemidl.h)

Library

Wbemuuid.lib

DLL

Wbemsvc.dll

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.