// fwpmk.h
FWPM_SERVICE_STATE_CHANGE_CALLBACK0 FwpmServiceStateChangeCallback0;
void FwpmServiceStateChangeCallback0(
[in, out] void *context,
[in] FWPM_SERVICE_STATE newState
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The FWPM_SERVICE_STATE_CHANGE_CALLBACK0 function is implemented by a WFP callout driver to add custom behavior to the base filtering engine (BFE) service state change notification process.
context [in, out]The pointer that was passed in the context parameter when the callout driver called the FwpmBfeStateSubscribeChanges0 function.
newState [in]The new BFE service state being changed to.
| Return code/value | Description |
|---|---|
| ERROR_SUCCESS 0 |
The enumerator was successfully deleted. |
| FWP_E_* error code 0x80320001—0x80320039 |
A Windows Filtering Platform (WFP) specific error. See WFP Error Codes for details. |
| RPC_* error code 0x80010001—0x80010122 |
Failure to communicate with the remote or local firewall engine. |
| Other NTSTATUS codes | An error occurred. |
The filter engine calls this function whenever there is a change in the state of the filter engine.