Platform SDK: Network Management

connection_info_50

Windows 95/98: The connection_info_50 structure contains the connection type, number of open files, connection time, and the number of users on 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_50 {
  unsigned short  coni50_type;
  unsigned short  coni50_num_opens;
  unsigned long   coni50_time;
  char FAR *      coni50_netname;
  char FAR *      coni50_username;
};

Members

coni50_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)

coni50_num_opens
Specifies an unsigned SHORT variable that indicates the number of files currently open as a result of the connection.
coni50_time
Specifies an unsigned LONG variable that indicates the length of the established connection, in seconds.
coni50_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 coni50_netname.
coni50_username
Pointer to a string. If the server sharing the resource is running with user-level security, the coni50_username member describes which user made the connection. If the server is running with share-level security, coni50_username describes which computer (computername) made the connection.

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_1