RasUpdateConnection function

The RasUpdateConnection function updates the tunnel endpoints of an Internet Key Exchange version 2 (IKEv2) connection.

Syntax


DWORD APIENTRY RasUpdateConnection(
  _In_  HRASCONN hrasconn,
  _In_  LPRASUPDATECONN lprasupdateconn
);

Parameters

hrasconn [in]

A handle to the IKEv2 RAS connection for which the tunnel endpoints are to be changed. This can be a handle returned by the RasDial or RasEnumConnections function.

lprasupdateconn [in]

A pointer to a RASUPDATECONN structure that contains the new tunnel endpoints for the RAS connection specified by hrasconn.

Return value

If the function succeeds, the return value is ERROR_SUCCESS.

If the function fails, the return value is one of the error codes from Routing and Remote Access Error Codes or Winerror.h.

Remarks

Note that 32-bit applications that call RasUpdateConnection will fail when run on a 64-bit machine. The workaround is to write a 64-bit version of the application for 64-bit machines.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Ras.h

Library

Rasapi32.lib

DLL

Rasapi32.dll

See also

Remote Access Service (RAS) Overview
Remote Access Service Functions

 

 

Community Additions

ADD
Show:
© 2014 Microsoft