SWbemSink is used by client applications to receive the results of either an asynchronous oper-
ation or an event notification. If you need to perform an asynchronous WMI query, first you
must create an instance of the SWbemSink object and then pass it as a parameter to the query.
If you are creating an event notification script, the SWbemSink object is triggered when either
a status update or a result is returned. Only one method is available with the SWbemSink
object, the Cancel method. Four properties, listed in Table 4-4, can be used with this object.
Table 4-4 SWbemSink Properties
Event
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.