Cancelling Registration as a Temporary Consumer

[This is preliminary documentation and subject to change.]

Temporary consumers can register to receive notifications by calling either IWbemServices::ExecNotificationQuery or IWbemServices::ExecNotificationQueryAsync.

To cancel a registration that was created with ExecNotificationQueryAsync, temporary consumers can call IWbemServices::CancelAsyncCall. Regardless of whether the call to CancelAsyncCall succeeds or fails, temporary consumers must not delete their sink object until its reference count reaches zero.

To cancel a registration that was created with ExecNotificationQuery, temporary consumers release the IEnumWbemClassObject enumerator that was received in the call.

Registration is cancelled for each temporary consumer when it terminates.