The SESSION_INFO_10 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_10 {
LPTSTR sesi10_cname; // client name (no backslashes)
LPTSTR sesi10_username;
DWORD sesi10_time;
DWORD sesi10_idle_time;
} SESSION_INFO_10, *PSESSION_INFO_10, *LPSESSION_INFO_10;