Platform SDK: Network Management

connection_info_1

Windows 95/98: The connection_info_1 structure contains the connection identifier and type, number of open files, connection time, number of users on the connection, and other information about the connection.

Windows NT/2000: This structure is not supported on Windows NT/Windows 2000. You can use the CONNECTION_INFO_1 structure instead.

struct _connection_info_1 {
  unsigned short  coni1_id;
  unsigned short  coni1_type;
  unsigned short  coni1_num_opens;
  unsigned short  coni1_num_users;
  unsigned long   coni1_time;
  char FAR *      coni1_username;
  char FAR *      coni1_netname;
};
 

Members

coni1_id
Specifies an unsigned SHORT variable that contains the connection identifier.
coni1_type
Specifies an unsigned SHORT variable that indicates the type of connection made from the local device to the shared resource. This member can be one of the following share types.
Value Meaning
STYPE_DISKTREE Print queue
STYPE_PRINTQ Disk drive
STYPE_DEVICE Communication device
STYPE_IPC Interprocess communication (IPC)

coni1_num_opens
Specifies an unsigned SHORT variable that indicates the number of resources currently open as a result of the connection.
coni1_num_users
Specifies an unsigned SHORT variable that indicates the number of connected users.
coni1_time
Specifies an unsigned LONG variable that indicates the length of the established connection, in seconds.
coni1_username
Pointer to a 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 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 pszQualifier parameter to the NetConnectionEnum function. The name not specified in the pszQualifier parameter to NetConnectionEnum is automatically supplied to coni1_netname.

Requirements

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

See Also

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