WFP Error Codes

Header: winerror.h

Windows Filtering Platform (WFP) specific error codes are as follows.

SymbolicCodeDescription
FWP_E_CALLOUT_NOT_FOUND0x80320001The callout does not exist.
FWP_E_CONDITION_NOT_FOUND0x80320002The filter condition does not exist.
FWP_E_FILTER_NOT_FOUND0x80320003The filter does not exist.
FWP_E_LAYER_NOT_FOUND0x80320004The layer does not exist.
FWP_E_PROVIDER_NOT_FOUND0x80320005The provider does not exist.
FWP_E_PROVIDER_CONTEXT_NOT_FOUND0x80320006The provider context does not exist.
FWP_E_SUBLAYER_NOT_FOUND0x80320007The sub-layer does not exist.
FWP_E_NOT_FOUND0x80320008The object does not exist. The [IPsecSaContext*](fwp-ipsec-functions.md) functions return this error if the SA context ID is not found.
FWP_E_ALREADY_EXISTS0x80320009An object with that GUID or LUID already exists.
FWP_E_IN_USE0x8032000AThe object is referenced by other objects, so it cannot be deleted.
FWP_E_DYNAMIC_SESSION_IN_PROGRESS0x8032000BThe call is not allowed from within a dynamic session.
FWP_E_WRONG_SESSION0x8032000CThe call was made from the wrong session, so it cannot be completed.
FWP_E_NO_TXN_IN_PROGRESS0x8032000DThe call must be made from within an explicit transaction.
FWP_E_TXN_IN_PROGRESS0x8032000EThe call is not allowed from within an explicit transaction.
FWP_E_TXN_ABORTED0x8032000FThe explicit transaction has been forcibly canceled.
FWP_E_SESSION_ABORTED0x80320010The session has been canceled. The session handle needs to be closed by calling [**FwpmEngineClose0**](/windows/desktop/api/Fwpmu/nf-fwpmu-fwpmengineclose0), even though it is no longer valid; otherwise, the client-side state will be leaked. A new session should be created by calling [**FwpmEngineOpen0**](/windows/desktop/api/Fwpmu/nf-fwpmu-fwpmengineopen0).
FWP_E_INCOMPATIBLE_TXN0x80320011The call is not allowed from within a read-only transaction.
FWP_E_TIMEOUT0x80320012The call timed out while waiting to acquire the transaction lock.
FWP_E_NET_EVENTS_DISABLED0x80320013The collection of network diagnostic events is disabled.
FWP_E_INCOMPATIBLE_LAYER0x80320014The operation is not supported by the specified layer.
FWP_E_KM_CLIENTS_ONLY0x80320015The call is allowed for kernel-mode callers only.
FWP_E_LIFETIME_MISMATCH0x80320016The call tried to associate two objects with incompatible lifetimes. See [Object Management](object-management.md) for more information on object lifetime and object association.
FWP_E_BUILTIN_OBJECT0x80320017The object is built-in, so it cannot be deleted.
FWP_E_TOO_MANY_CALLOUTS0x80320018The maximum number of callouts has been reached. At most, 100,000 callouts can be registered at the same time.
FWP_E_NOTIFICATION_DROPPED0x80320019A notification could not be delivered because a message queue is at its maximum capacity.
FWP_E_TRAFFIC_MISMATCH0x8032001AThe network traffic parameters do not match those for the security association context. [**IPsecSaContextGetSpi0**](/windows/desktop/api/Fwpmu/nf-fwpmu-ipsecsacontextgetspi0) can be called multiple times, but the caller must specify the same [**IPSEC_TRAFFIC0**](/windows/desktop/api/Ipsectypes/ns-ipsectypes-ipsec_traffic0) each time. This error is returned if a subsequent call supplies a different **IPSEC_TRAFFIC0**.
FWP_E_INCOMPATIBLE_SA_STATE0x8032001BThe call is not allowed for the current security association (SA) state. The SA context functions must be called in a specific order: - [**IPsecSaContextCreate0**](/windows/desktop/api/Fwpmu/nf-fwpmu-ipsecsacontextcreate0) - [**IPsecSaContextGetSpi0**](/windows/desktop/api/Fwpmu/nf-fwpmu-ipsecsacontextgetspi0) - [**IPsecSaContextAddInbound0**](/windows/desktop/api/Fwpmu/nf-fwpmu-ipsecsacontextaddinbound0) - [**IPsecSaContextAddOutbound0**](/windows/desktop/api/Fwpmu/nf-fwpmu-ipsecsacontextaddoutbound0) This error is returned if they are called out of order.
FWP_E_NULL_POINTER0x8032001CA required pointer is null.
FWP_E_INVALID_ENUMERATOR0x8032001DAn enumerator value in a structure is out of range.
FWP_E_INVALID_FLAGS0x8032001EThe flags field contains an invalid value.
FWP_E_INVALID_NET_MASK0x8032001FA network mask is not valid.
FWP_E_INVALID_RANGE0x80320020An [**FWP_RANGE0**](/windows/desktop/api/Fwptypes/ns-fwptypes-fwp_range0) structure is not valid.
FWP_E_INVALID_INTERVAL0x80320021The time interval is not valid.
FWP_E_ZERO_LENGTH_ARRAY0x80320022An array that must contain at least one element has zero length.
FWP_E_NULL_DISPLAY_NAME0x80320023The **displayData.name** field cannot be null.
FWP_E_INVALID_ACTION_TYPE0x80320024The action type is not one of the allowed action types for a filter.
FWP_E_INVALID_WEIGHT0x80320025The filter weight is not valid. See [Filter Weight Assignment](filter-weight-assignment.md) for more information.
FWP_E_MATCH_TYPE_MISMATCH0x80320026A filter condition contains a match type that is not compatible with the operands. See [**FWP_MATCH_TYPE**](/windows/desktop/api/Fwptypes/ne-fwptypes-fwp_match_type) for more information.
FWP_E_TYPE_MISMATCH0x80320027An [**FWP_VALUE0**](/windows/desktop/api/Fwptypes/ns-fwptypes-fwp_value0) structure or an [**FWPM_CONDITION_VALUE0**](/windows/desktop/api/Fwptypes/ns-fwptypes-fwp_condition_value0) structure is of the wrong type.
FWP_E_OUT_OF_BOUNDS0x80320028An integer value is outside the allowed range.
FWP_E_RESERVED0x80320029A reserved field is nonzero.
FWP_E_DUPLICATE_CONDITION0x8032002AA filter cannot contain multiple conditions operating on a single field.
FWP_E_DUPLICATE_KEYMOD0x8032002BA policy cannot contain the same keying module more than once.
FWP_E_ACTION_INCOMPATIBLE_WITH_LAYER0x8032002CThe action type is not compatible with the layer.
FWP_E_ACTION_INCOMPATIBLE_WITH_SUBLAYER0x8032002DThe action type is not compatible with the sub-layer.
FWP_E_CONTEXT_INCOMPATIBLE_WITH_LAYER0x8032002EThe raw context or the provider context is not compatible with the layer.
FWP_E_CONTEXT_INCOMPATIBLE_WITH_CALLOUT0x8032002FThe raw context or the provider context is not compatible with the callout.
FWP_E_INCOMPATIBLE_AUTH_METHOD0x80320030The authentication method is not compatible with the policy type.
FWP_E_INCOMPATIBLE_DH_GROUP0x80320031The Diffie-Hellman group is not compatible with the policy type.
FWP_E_EM_NOT_SUPPORTED0x80320032An IKE policy cannot contain an Extended Mode policy.
FWP_E_NEVER_MATCH0x80320033The enumeration template or subscription will never match any objects.
FWP_E_PROVIDER_CONTEXT_MISMATCH0x80320034The provider context is of the wrong type.
FWP_E_INVALID_PARAMETER0x80320035The parameter is incorrect. Possible reasons for this error: - [**FwpmIPsecTunnelAdd0**](/windows/desktop/api/Fwpmu/nf-fwpmu-fwpmipsectunneladd0) was called without setting the flag **FWPM_TUNNEL_FLAG_POINT_TO_POINT** and with conditions other than local/remote address. - An invalid Unicode string, or a Unicode string that contains unprintable characters.
FWP_E_TOO_MANY_SUBLAYERS0x80320036The maximum number of sublayers has been reached. WFP supports at most 2 6 sublayers.
FWP_E_CALLOUT_NOTIFICATION_FAILED0x80320037The notification function for a callout returned an error.
FWP_E_INVALID_AUTH_TRANSFORM0x80320038The IPsec authentication transform is not valid.
FWP_E_INVALID_CIPHER_TRANSFORM0x80320039The IPsec cipher transform is not valid.
57 entries

Article text from the Win32 documentation (opens in a new tab), by Microsoft, under the CC BY 4.0 (opens in a new tab) licence.