Platform SDK: Network Management

session_info_2

Windows 95/98: The session_info_2 structure contains information about the session, including name of the computer, name of the user, open files, active and idle times for the session, and the client type.

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

struct _session_info_2 {
  char FAR *      sesi2_cname;
  char FAR *      sesi2_username;
  unsigned short  sesi2_num_conns;
  unsigned short  sesi2_num_opens;
  unsigned short  sesi2_num_users;
  unsigned long   sesi2_time;
  unsigned long   sesi2_idle_time;
  unsigned long   sesi2_user_flags;
  char FAR *      sesi2_cltype_name;
};

Members

sesi2_cname
Pointer to a string specifying the name of the computer that established the session.
sesi2_username
Pointer to a string specifying the name of the user who established the session.
sesi2_num_conns
Specifies the number of connections made during the session.
sesi2_num_opens
Specifies the number of files opened during the session.
sesi2_num_users
Specifies the number of users that have made a connection during the session.
sesi2_time
Specifies the number of seconds the session has been active.
sesi2_idle_time
Specifies the number of seconds the session has been idle.
sesi2_user_flags
Specifies a variable that describes how the user established the session. This member can be one of the following values.
Value Meaning
SESS_GUEST The user specified by the sesi2_username member established the session using a guest account.
SESS_NOENCRYPTION The user specified by the sesi2_username member established the session without using password encryption.

sesi2_cltype_name
Pointer to a string that specifies the type of client that established the session. Following are the defined types for LAN Manager servers.
Value Meaning
DOS LM 1.0 LAN Manager for MS-DOS 1.0 clients
DOS LM 2.0 LAN Manager for MS-DOS 2.0 clients
OS/2 LM 1.0 LAN Manager for MS-OS/2 1.0 clients
OS/2 LM 2.0 LAN Manager for MS-OS/2 2.0 clients

Sessions from LAN Manager servers running UNIX also will appear as LAN Manager 2.0.

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, NetSessionGetInfo, session_info_0, session_info_1, session_info_10, session_info_50