Platform SDK: Network Management

session_info_50

Windows 95/98: The session_info_50 structure contains information about the session, including name of the computer, name of the user, open files on the computer, and the name of the transport protocol the client is using.

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

struct _session_info_50 {
  char FAR *      sesi50_cname;
  char FAR *      sesi50_username;
  unsigned long   sesi50_key;
  unsigned short  sesi50_num_conns;
  unsigned short  sesi50_num_opens;
  unsigned long   sesi50_time;
  unsigned long   sesi50_idle_time;
  unsigned char   sesi50_protocol;
  unsigned char   pad1;
};

Members

sesi50_cname
Pointer to a string specifying the name of the computer that established the session.
sesi50_username
Pointer to a string specifying the name of the user who established the session.
sesi50_key
Specifies a long integer returned by the NetSessionEnum function or the NetSessionGetInfo function. This value is required to delete a session. Specify this value in the sReserved parameter when you call the NetSessionDel function.
sesi50_num_conns
Specifies the number of connections made during the session.
sesi50_num_opens
Specifies the number of files opened during the session.
sesi50_time
Specifies the number of seconds the session has been active.
sesi50_idle_time
Specifies the number of seconds the session has been idle.
sesi50_protocol
Specifies the name of the transport that the client is using to communicate with the server.
pad1
Specifies padding inserted to align the next structure.

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, Session Functions, NetSessionEnum, NetSessionGetInfo, NetSessionDel, session_info_0, session_info_1, session_info_2, session_info_10