The SESSION_INFO_1 structure contains information about the session, including name of the computer; name of the user; and files, pipes, and devices on the computer.
typedef struct _SESSION_INFO_1 {
LPWSTR sesi1_cname; // client name (no backslashes)
LPWSTR sesi1_username;
DWORD sesi1_time;
DWORD sesi1_idle_time;
DWORD sesi1_user_flags;
} SESSION_INFO_1, *PSESSION_INFO_1, *LPSESSION_INFO_1;
Value | Meaning |
---|---|
SESS_GUEST | The sesi1_username member established the session using a guest account. |
SESS_NOENCRYPTION | The sesi1_username member established the session without using password encryption. |
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in lmshare.h.
Networking (Net) Overview, Net Structures, NetSessionEnum, NetSessionGetInfo