FWPM_SERVICE_STATE_CHANGE_CALLBACK0 callback function (fwpmk.h)
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.
Syntax
FWPM_SERVICE_STATE_CHANGE_CALLBACK0 FwpmServiceStateChangeCallback0;
void FwpmServiceStateChangeCallback0(
[in, out] void *context,
[in] FWPM_SERVICE_STATE newState
)
{...}
Parameters
[in, out] context
The pointer that was passed in the context parameter when the callout driver called the FwpmBfeStateSubscribeChanges0 function.
[in] newState
The new BFE service state being changed to.
Return value
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. |
Remarks
The filter engine calls this function whenever there is a change in the state of the filter engine.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Available starting with Windows Vista. |
Target Platform | Universal |
Header | fwpmk.h |
Library | fwpkclnt.lib |
IRQL | <= PASSIVE_LEVEL |