| Platform SDK: RAS/Routing and RAS | 
A RASCONNSTATUS structure describes the current status of a remote access connection. It is returned by the RasGetConnectStatus function.
typedef struct _RASCONNSTATUS { 
  DWORD         dwSize; 
  RASCONNSTATE  rasconnstate; 
  DWORD         dwError; 
  TCHAR         szDeviceType[RAS_MaxDeviceType + 1]; 
  TCHAR         szDeviceName[RAS_MaxDeviceName + 1]; 
} RASCONNSTATUS; 
Two state values are especially significant.
| State | Meaning | 
|---|---|
| RASCS_Connected | Indicates that the connection has been successfully established. | 
| RASCS_Disconnected | Indicates that the connection has failed. | 
  Windows NT/2000: Requires Windows NT 3.1 or later.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Ras.h.
  Unicode: Declared as Unicode and ANSI structures.
Remote Access Service (RAS) Overview, Remote Access Service Structures, RasGetConnectStatus, RasDial, RASCONNSTATE