Platform SDK: Network Management

CONNECTION_INFO_1

The CONNECTION_INFO_1 structure contains the identification number of a connection, number of open files, connection time, 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;
  LPWSTR    coni1_username;
  LPWSTR    coni1_netname;
} CONNECTION_INFO_1, *PCONNECTION_INFO_1, *LPCONNECTION_INFO_1;

Members

coni1_id
Specifies a connection identification number.
coni1_type
Specifies the type of connection made from the local device name to the shared resource. This member can be one of the following values.
Value Meaning
STYPE_DISKTREE Print queue
STYPE_PRINTQ Disk drive
STYPE_DEVICE Communication device
STYPE_IPC Interprocess communication (IPC)

coni1_num_opens
Specifies the number of files currently open as a result of 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
Pointer to a Unicode string. If the server sharing the resource is running with user-level security, the coni1_username member describes which user made the connection. If the server is running with share-level security, coni1_username describes which computer (computername) made the connection.
coni1_netname
Pointer to a Unicode string specifying either the share name of the server's shared resource or the computername of the client. The value of this member depends on which name was specified as the qualifier parameter to the NetConnectionEnum function. The name not specified in the qualifier parameter to NetConnectionEnum is automatically supplied to coni1_netname.

Requirements

  Windows NT/2000: Requires Windows NT 3.1 or later.
  Windows 95/98: Unsupported.
  Header: Declared in Lmshare.h.

See Also

Network Management Overview, Network Management Structures, Share Functions, NetConnectionEnum