// fwpmk.h
NTSTATUS IPsecSaContextUpdate0(
[in] HANDLE engineHandle,
[in] UINT64 flags,
[in] const IPSEC_SA_CONTEXT1 *newValues
);
View the official Windows Driver Kit DDI referenceNo description available.
The IPsecSaContextUpdate0 function updates an IPsec security association (SA) context.
engineHandle [in]Handle for an open session to the filter engine. Call FwpmEngineOpen0 to open a session to the filter engine.
flags [in]Flags indicating the specific field in the IPSEC_SA_CONTEXT1 structure that is being updated.
Possible values:
| IPsec SA flag | Meaning |
|---|---|
| IPSEC_SA_DETAILS_UPDATE_TRAFFIC | Updates the IPSEC_SA_DETAILS1 structure. |
| IPSEC_SA_DETAILS_UPDATE_UDP_ENCAPSULATION | Updates the IPSEC_SA_DETAILS1 structure. |
| IPSEC_SA_BUNDLE_UPDATE_FLAGS | Updates the IPSEC_SA_BUNDLE1 structure. |
| IPSEC_SA_BUNDLE_UPDATE_NAP_CONTEXT | Updates the IPSEC_SA_BUNDLE1 structure. |
| IPSEC_SA_BUNDLE_UPDATE_KEY_MODULE_STATE | Updates the IPSEC_SA_BUNDLE1 structure. |
| IPSEC_SA_BUNDLE_UPDATE_PEER_V4_PRIVATE_ADDRESS | Updates the IPSEC_SA_BUNDLE1 structure. |
| IPSEC_SA_BUNDLE_UPDATE_MM_SA_ID | Updates the IPSEC_SA_BUNDLE1 structure. |
newValues [in]An inbound and outbound SA pair.
| Return code/value | Description |
|---|---|
| ERROR_SUCCESS 0 |
The IPsec SA context was updated successfully. |
| 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. |
IPsecSaContextUpdate0 is a specific implementation of IPsecSaContextUpdate. See WFP Version-Independent Names and Targeting Specific Versions of Windows for more information.