FwpmConnectionPolicyDeleteByKey0 function (fwpmk.h)
The FwpmConnectionPolicyDeleteByKey0 function removes the connection policy that was created with the GUID specified in the FWPM_PROVIDER_CONTEXT::providerContextKey when you called FwpmConnectionPolicyAdd0.
Syntax
NTSTATUS FwpmConnectionPolicyDeleteByKey0(
[in] HANDLE engineHandle,
[in] const GUID *key
);
Parameters
[in] engineHandle
A handle to an open session with the filter engine. To open a session with the filter engine, call FwpmEngineOpen0.
[in] key
The GUID of the connection policy that was created when you called FwpmConnectionPolicyAdd0.
Return value
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. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Available starting with Windows Vista. |
Target Platform | Universal |
Header | fwpmk.h |
Library | fwpkclnt.lib |
IRQL | <= PASSIVE_LEVEL |