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: 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.
Remote Access Service Overview, RAS Server Administration Union, RasGetConnectStatus, RasDial, RASCONNSTATE