The FwpmBfeStateUnsubscribeChanges0 function deregisters a base filtering engine (BFE) callback function that was previously registered by calling the FwpmBfeStateSubscribeChanges0 function.
NTSTATUS NTAPI FwpmBfeStateUnsubscribeChanges0( _Inout_ HANDLE changeHandle );
A handle associated with the registration of the callback function that is being deregistered. This handle was returned to the callout driver when it called the FwpmBfeStateSubscribeChanges0 function to register the callback function.
The FwpmBfeStateUnsubscribeChanges0 function returns one of the following NTSTATUS codes:
||The callback function was successfully deregistered.|
||An error occurred.|
A callout driver calls the FwpmBfeStateUnsubscribeChanges0 function to deregister a callback function that was previously registered by calling the FwpmBfeStateSubscribeChanges0 function.
If a callout driver registers a callback function by calling the FwpmBfeStateSubscribeChanges0 function, it must deregister the callback function before the callout driver can be unloaded.
Do not call FwpmBfeStateUnsubscribeChanges0 from a callback function that your driver previously registered by calling FwpmBfeStateSubscribeChanges0. Doing so can cause a deadlock.
|Windows version||Available starting with Windows Vista.|
|Header||fwpmk.h (include Fwpmk.h)|