3.1.4.6.1 Canceling Subscriptions

The CONTEXT_HANDLE_OPERATION_CONTROL handle is obtained at the same time a CONTEXT_HANDLE_REMOTE_SUBSCRIPTION handle is obtained by calling the EvtRpcRegisterRemoteSubscription (Opnum 0) (section 3.1.4.8) method. Any calls to the EvtRpcRemoteSubscriptionNext (Opnum 2) (section 3.1.4.10), EvtRpcRemoteSubscriptionNextAsync (Opnum 1) (section 3.1.4.9), and EvtRpcRemoteSubscriptionWaitAsync (Opnum 3) (section 3.1.4.11) methods using the CONTEXT_HANDLE_REMOTE_SUBSCRIPTION handle can be canceled by using the CONTEXT_HANDLE_OPERATION_CONTROL handle in a call to the EvtRpcCancel (section 3.1.4.34) method.