Partager via


2.2.4.12 SESSION_INFO_1

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

 typedef struct _SESSION_INFO_1 {
   [string] wchar_t* sesi1_cname;
   [string] wchar_t* sesi1_username;
   DWORD sesi1_num_opens;
   DWORD sesi1_time;
   DWORD sesi1_idle_time;
   DWORD sesi1_user_flags;
 } SESSION_INFO_1,
  *PSESSION_INFO_1,
  *LPSESSION_INFO_1;

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

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

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

sesi1_time: Specifies a DWORD value that contains the number of seconds since the session was created.

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

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