RAS_CONNECTION_2

The RAS_CONNECTION_2 structure contains information for a connection, including the GUID that identifies the connection.

typedef struct _RAS_CONNECTION_2 {
  HANDLE      hConnection;                  // handle to the connection 
  WCHAR       wszUserName[ UNLEN + 1 ];     // name of the user 
                                            // on this connection
  ROUTER_INTERFACE_TYPE   dwInterfaceType;  // interface type 
                                            // for the connection 
  GUID        guid;                         // guid that identifies the connection 
  PPP_INFO_2  PppInfo2;
} RAS_CONNECTION_2, *PRAS_CONNECTION_2;

Members

hConnection
Handle to the connection.
wszUserName[ UNLEN + 1 ]
Specifies a Unicode string that contains the name of the user on this connection.
dwInterfaceType
Specifies the type of interface.
guid
Specifies a GUID (Globally Unique Identifier) that identifies the connection. For incoming connection, this GUID is valid only as long as the connection is active.
PppInfo2
Specifies a PPP_INFO_2 structure that contains information about the PPP negotiation for this connection.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Declared in Mprapi.h.

See Also

Remote Access Service Administration Reference, RAS Administration Structures, MprAdminConnectionEnum, RAS_CONNECTION_0, RAS_CONNECTION_1