Compartir a través de


2.2.4.2 CONNECTION_INFO_1

The CONNECTION_INFO_1 structure contains the identifier of a connection, the number of open files, the connection time, the number of users on the connection, and the type of connection.

 typedef struct _CONNECTION_INFO_1 {
   DWORD coni1_id;
   DWORD coni1_type;
   DWORD coni1_num_opens;
   DWORD coni1_num_users;
   DWORD coni1_time;
   [string] wchar_t* coni1_username;
   [string] wchar_t* coni1_netname;
 } CONNECTION_INFO_1,
  *PCONNECTION_INFO_1,
  *LPCONNECTION_INFO_1;

coni1_id: Specifies a connection identifier.

coni1_type: Specifies the type of connection made from the local device name to the shared resource. It MUST be one of the values listed in section 2.2.2.4.

coni1_num_opens: Specifies the number of files that are currently opened by using the connection.

coni1_num_users: Specifies the number of users on the connection.

coni1_time: Specifies the number of seconds that the connection has been established.

coni1_username: A pointer to a null-terminated Unicode UTF-16 string that specifies the name of the user that is associated with the connection.

coni1_netname: A pointer to a null-terminated Unicode UTF-16 Internet host name or NetBIOS host name which is the computer name of the client. The value of this member depends on which name was specified as the Qualifier parameter to the NetrConnectionEnum (section 3.1.4.1) method. The name that is not specified in the Qualifier parameter to NetrConnectionEnum MUST be returned in the coni1_netname field.