SESSION_INFO_1 structure
Contains information about the session, including name of the computer; name of the user; and open files, pipes, and devices on the computer.
Syntax
typedef struct _SESSION_INFO_1 { LPWSTR sesi1_cname; LPWSTR 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;
Members
- sesi1_cname
-
Pointer to a Unicode string specifying the name of the computer that established the session. This string cannot contain a backslash (\).
- sesi1_username
-
Pointer to a Unicode string specifying 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 opened during the session.
- sesi1_time
-
Specifies a DWORD value that contains the number of seconds the session has been active.
- 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 describes how the user established the session. This member can be one of the following values.
Requirements
|
Minimum supported client | Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2003 [desktop apps only] |
|
Header |
|
See also
- Network Management Overview
- Network Management Structures
- Session Functions
- NetSessionEnum
- NetSessionGetInfo