2.2.1.2.77 RASI_CONNECTION_0
The RASI_CONNECTION_0 structure contains general information regarding a specific connection, such as username or domain.
-
typedef struct _RASI_CONNECTION_0 { DWORD dwConnection; DWORD dwInterface; DWORD dwConnectDuration; ROUTER_INTERFACE_TYPE dwInterfaceType; DWORD dwConnectionFlags; WCHAR wszInterfaceName[257]; WCHAR wszUserName[257]; WCHAR wszLogonDomain[16]; WCHAR wszRemoteComputer[17]; } RASI_CONNECTION_0, *PRASI_CONNECTION_0;
dwConnection: Contains the connection handle that specifies a unique identifier of the connection.
dwInterface: Contains the interface handle and specifies a unique identifier of the interface through which the connection exists.
dwConnectDuration: Specifies the duration of the current connection, in seconds.
dwInterfaceType: A ROUTER_INTERFACE_TYPE (section 2.2.1.1.1) value specifying the interface type of the current connection.
dwConnectionFlags: Specifies certain attributes of the connection. This member can contain the following flags.
-
Value
Meaning
RAS_FLAGS_PPP_CONNECTION
0x00000001
The connection is using PPP.
RAS_FLAGS_MESSENGER_PRESENT
0x00000002
The messenger service is active on the client, and messages can be sent to the client using RRasAdminSendUserMessage (section 3.1.4.36).
RAS_FLAGS_RAS_CONNECTION
0x00000004
The connection is a NetBIOS connection.
RAS_FLAGS_QUARANTINE_PRESENT
0x00000008
The connection is currently in quarantine. See RRasAdminConnectionRemoveQuarantine (section 3.1.4.43) for more information.
RAS_FLAGS_ARAP_CONNECTION
0x00000010
The connection is using AppleTalk Remote Access Protocol (ARAP).<59>
wszInterfaceName: Specifies a null-terminated Unicode string that contains the name of the interface for this connection.
wszUserName: Specifies a null-terminated Unicode string that contains the name of the user logged on to the connection.
wszLogonDomain: Specifies a null-terminated Unicode string that contains the domain on which the connected user is authenticated.
wszRemoteComputer: Specifies a null-terminated Unicode string that contains the name of the remote computer.