Session Level 1
struct session_info_1 {
unsigned char LSFAR * LSPTR sesi1_cname;
unsigned char LSFAR * LSPTR sesi1_username;
unsigned short sesi1_num_conns;
unsigned short sesi1_num_opens;
unsigned short sesi1_num_users;
unsigned long sesi1_sess_time;
unsigned long sesi1_idle_time;
unsigned long sesi1_user_flags;
};
where:
- The first field in this data structure is identical
to that in the previous level.
- sesi1_username points to an ASCIIZ string containing
the name of the user who established the session.
- sesi1_num_conns indicates the number of connections
that have been made during the session.
- sesi1_num_opens indicates the number of files,
devices, and pipes that have been opened during the session.
- sesi1_num_users specifies the number of sessions
that are established between the server and the requester. This value is
always 0 or 1.
- sesi1_sess_time indicates the number of seconds
a session has been active.
- sesi1_idle_time indicates the number of seconds
a session has been idle.
- sesi1_user_flags indicates the manner in which
the user established the session. The bit mask for sesi1_user_flags is
defined as follows in SHARES.H: ┌────────────────────┬───────┬─────────────────────────────────────────────────┐
│ SYMBOLIC CONSTANT │ VALUE │ MEANING │
├────────────────────┼───────┼─────────────────────────────────────────────────┤
│ SESS_GUEST │ 1 │ sesi1_username established the session using a
│
│ │ │ GUEST account. │
├────────────────────┼───────┼─────────────────────────────────────────────────┤
│ SESS_NOENCRYPTION │ 2 │ sesi1_username established the session without
│
│ │ │ using password encryption. │
└────────────────────┴───────┴─────────────────────────────────────────────────┘
[Back: Session Level 0]
[Next: Session Level 2]