다음을 통해 공유


ResetIPSecMode (Windows Embedded CE 6.0)

1/6/2010

This function resets the current IPSec mode for a specific source IP address if a mode has been previously specified.

Syntax

HRESULT ResetIPSecMode(
  DWORD srcIP
  DWORD flags
);

Parameters

  • srcIP
    [in] Specifies the source IP address, in network order, for which IPSec policies should be reset.
  • Flags
    [in] Reserved. Set to zero.

Return Value

Returns S_OK if successful, or an appropriate HRESULT value otherwise.

Remarks

Before calling ResetIPSecMode, you must call SetIPSecMode. It is recommended that, in addition to calling ResetIPSecMode, you restart IPSec by calling StopIPSec and StartIPSec in sequence. After calling ResetIPSecMode and restarting IPSec you can call SetIPSecMode and specify a new mode.

If a call to SetIPSecMode has failed, any calls to ResetIPSecMode will also fail.

Requirements

Header ipsec_api.h
Library Ipsec_api.lib
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

IPSec Functions
StartIPSec
StopIPSec
SetIPSecMode
SetIPSecMode