Partager via


2.2.4.13 SESSION_INFO_2

The SESSION_INFO_2 structure contains information about the session, including the name of the computer; name of the user; open files, pipes, and devices that are on the computer; session active and idle times; how the user established the session; and the type of client that established the session.

 typedef struct _SESSION_INFO_2 {
   [string] wchar_t* sesi2_cname;
   [string] wchar_t* sesi2_username;
   DWORD sesi2_num_opens;
   DWORD sesi2_time;
   DWORD sesi2_idle_time;
   DWORD sesi2_user_flags;
   [string] wchar_t* sesi2_cltype_name;
 } SESSION_INFO_2,
  *PSESSION_INFO_2,
  *LPSESSION_INFO_2;

sesi2_cname: A pointer to a null-terminated Unicode UTF-16 Internet host name or NetBIOS host name of the computer that established the session.

sesi2_username: A pointer to a null-terminated Unicode UTF-16 string that specifies the name of the user who established the session.

sesi2_num_opens: Specifies a DWORD value that contains the number of files, devices, and pipes that were opened during the session.

sesi2_time: Specifies a DWORD value that contains the number of seconds the session has been active.

sesi2_idle_time: Specifies a DWORD value that contains the number of seconds the session has been idle.

sesi2_user_flags: Specifies a DWORD value that describes how the user established the session. This member MUST be a combination of one or more of the values that are defined in section 2.2.2.3.

sesi2_cltype_name: A pointer to a null-terminated Unicode UTF-16 string that specifies the type of client that established the session. The server simply stores this string, as specified in section 2.2.2.1, and its value does not modify the behavior of the protocol. <9>