The RASI_CONNECTION_2 structure contains information for a connection, including the GUID that identifies the connection, as defined in [MS-DTYP] section 2.3.4.
typedef struct _RASI_CONNECTION_2 {
DWORD dwConnection;
WCHAR wszUserName[257];
ROUTER_INTERFACE_TYPE dwInterfaceType;
GUID guid;
PPP_INFO_2 PppInfo2;
} RASI_CONNECTION_2,
*PRASI_CONNECTION_2;
dwConnection: See dwConnection in RASI_CONNECTION_0 (section 2.2.1.2.77).
wszUserName: See wszUserName in RASI_CONNECTION_0.
dwInterfaceType: A ROUTER_INTERFACE_TYPE (section 2.2.1.1.1) that specifies the interface type of the current connection.
guid: A GUID uniquely identifying the connection.
PppInfo2: A PPP_INFO_2 (section 2.2.1.2.73) structure that contains information about the PPP negotiation for this connection.