ResetIPSecMode (Windows CE 5.0)
This function resets the current IPSec mode for a specific source IP address if a mode has been previously specified.
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 Values
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
OS Versions: Windows CE 5.0 and later.
Header: Ipsec_api.h.
Link Library: Ipsec_api.lib.
See Also
StartIPSec | StopIPSec | SetIPSecMode | SetIPSecMode
Send Feedback on this topic to the authors