RAS_CONNECTION_0 structure (mprapi.h)
The RAS_CONNECTION_0 structure contains general information regarding a specific connection, such as user name or domain. For more detailed information about a specific connection, such as bytes sent or received, see RAS_CONNECTION_1.
Syntax
typedef struct _RAS_CONNECTION_0 {
HANDLE hConnection;
HANDLE hInterface;
DWORD dwConnectDuration;
ROUTER_INTERFACE_TYPE dwInterfaceType;
DWORD dwConnectionFlags;
WCHAR wszInterfaceName[MAX_INTERFACE_NAME_LEN + 1];
WCHAR wszUserName[UNLEN + 1];
WCHAR wszLogonDomain[DNLEN + 1];
WCHAR wszRemoteComputer[NETBIOS_NAME_LEN + 1];
} RAS_CONNECTION_0, *PRAS_CONNECTION_0;
Members
hConnection
A handle to the connection.
hInterface
A handle to the interface.
dwConnectDuration
A value that represent the duration of the connection, in seconds.
dwInterfaceType
A ROUTER_INTERFACE_TYPE enumeration that identifies the type of connection interface.
dwConnectionFlags
A bitmap of flags that specify connection attributes. dwConnectionFlags must contain at least one of the following values:
Value | Meaning |
---|---|
|
The connection is using Point-to-Point Protocol (PPP). |
|
The messenger service is active on the client and messages can be sent to the client using MprAdminSendUserMessage. |
|
The connection is currently in quarantine. For information on how to remove the connection from quarantine, please see MprAdminConnectionRemoveQuarantine. |
|
The connection is using AppleTalk Remote Access Protocol (ARAP). |
|
The connection is using IKEv2. |
|
The connection is using IKEv2 and the server is not reachable. |
wszInterfaceName[MAX_INTERFACE_NAME_LEN + 1]
A null-terminated Unicode string that contains the name of the interface for this connection.
wszUserName[UNLEN + 1]
A null-terminated Unicode string that contains the name of the user logged on to the connection.
wszLogonDomain[DNLEN + 1]
A null-terminated Unicode string that contains the domain on which the connected user is authenticated.
wszRemoteComputer[NETBIOS_NAME_LEN + 1]
A null-terminated Unicode string that contains the name of the remote computer.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Header | mprapi.h |
See also
MprAdminAcceptReauthentication