Implementing IWbemObjectSink

[This is preliminary documentation and subject to change.]

By implementing the IWbemObjectSink interface, a temporary consumer enables CIMOM to deliver event notifications asynchronously. IWbemObjectSink contains two unique methods:

CIMOM calls Indicate to notify the consumer. The input parameters for Indicate are an array of objects and a count of the number of objects in the array. Each object in the array represents a separate event. A consumer's implementation of Indicate must quickly process the event notifications included in the array and return. It is important that Indicate be fast. If extensive processing is required, determine which of the notifications are affected and make a copy of the corresponding event object. Use a different thread to handle the processing for each affected event.

CIMOM calls SetStatus to report any errors pertaining to the consumer's registration.