RASCONN

The RASCONN structure provides information about a remote access connection. The RasEnumConnections function returns an array of RASCONN structures.

typedef struct _RASCONN { 
    DWORD     dwSize; 
    HRASCONN  hrasconn; 
    TCHAR     szEntryName[RAS_MaxEntryName + 1]; 
 
#if (WINVER >= 0x400) 
    CHAR      szDeviceType[ RAS_MaxDeviceType + 1 ]; 
    CHAR      szDeviceName[ RAS_MaxDeviceName + 1 ]; 
#endif 
 
} RASCONN ; 
 

Members

dwSize
Specifies the size, in bytes, of the RASCONN structure.
hrasconn
Specifies the remote access connection. This handle is used in other remote access API calls.
szEntryName
A string that specifies the phone-book entry used to establish the remote access connection. If the connection was established using an empty entry name, this string consists of a "." followed by the connection phone number.
szDeviceType
A null-terminated string that contains the device type through which the connection is made.
szDeviceName
A null-terminated string that contains the device name through which the connection is made.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Requires version 1.0 or later.
  Header: Declared in ras.h.
  Unicode: Defined as Unicode and ANSI structures.

See Also

Remote Access Service Overview, RAS Server Administration Union, RasEnumConnections, RasGetConnectStatus