SESSION_INFO_1  .N04M9 

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 { 
   
LPTSTR    sesi1_cname;  // client name (no backslashes)
   
LPTSTR    sesi1_username;
    DWORD     sesi1_time;
   
DWORD     sesi1_idle_time;
   
DWORD     sesi1_user_flags;
} SESSION_INFO_1, *PSESSION_INFO_1, *LPSESSION_INFO_1;
 

Members

sesi1_cname

Points to a Unicode string containing the name of the computer that established the session.

sesi1_username

Points to a Unicode string containing the name of the user who established the session.

sesi1_num_opens

Displays the number of files, devices, and pipes opened during the session.

sesi1_time

Specifies the number of seconds a session has been active.

sesi1_idle_time

Specifies the number of seconds a session has been idle.

sesi1_user_flags

Describes how the user established the session. This member can be one of the following values:

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.

 

See Also

NetSessionEnum, NetSessionGetInfo