// fwpmk.h
NTSTATUS FwpmConnectionPolicyDeleteByKey0(
[in] HANDLE engineHandle,
[in] const GUID *key
);
View the official Windows Driver Kit DDI referenceNo description available.
The FwpmConnectionPolicyDeleteByKey0 function removes the connection policy that was created with the GUID specified in the FWPM_PROVIDER_CONTEXT::providerContextKey when you called FwpmConnectionPolicyAdd0.
engineHandle [in]A handle to an open session with the filter engine. To open a session with the filter engine, call FwpmEngineOpen0.
key [in]The GUID of the connection policy that was created when you called FwpmConnectionPolicyAdd0.
| Return code/value | Description |
|---|---|
| ERROR_SUCCESS 0 |
The connection policy was successfully removed. |
| 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. |