connection_info_50 Structure
The connection_info_50 structure contains the connection type, number of open files, connection time, and the number of users on the connection.
Syntax
typedef 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;
} _connection_info_50;
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
| Client | Windows Me, Windows 98, or Windows 95 |
| Header | Svrapi.h |
See Also
Network Management Overview
Network Management Structures
Share Functions
NetConnectionEnum
Send comments about this topic to Microsoft
Build date: 1/7/2009