|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| No
| Import Library
| -
| Header File
| lmshare.h
| Unicode
| No
| Platform Notes
| None
|
|
|
SESSION_INFO_2
The SESSION_INFO_2 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_2{
LPTSTR sesi2_cname; // client name (no backslashes)
LPTSTR sesi2_username;
DWORD sesi2_num_opens;
DWORD sesi2_time;
DWORD sesi2_idle_time;
DWORD sesi2_user_flags;
LPTSTR sesi2_cltype_name;
} SESSION_INFO_2, *PSESSION_INFO_2, *LPSESSION_INFO_2;
Members
sesi2_cname
Points to a Unicode string containing the name of the computer that
established the session.
sesi2_username
Points to a Unicode string containing the name of the user who established the
session.
sesi2_num_opens
Displays the number of files, devices, and pipes opened during the session.
sesi2_time
Specifies the number of seconds a session has been active.
sesi2_idle_time
Specifies the number of seconds a session has been idle.
sesi2_user_flags
Describes how the user established the session. This member can be one of the
following values:
Value
| Meaning
| SESS_GUEST
| The sesi2_username member established the session using a guest account.
| SESS_NOENCRYPTION
| The sesi2_username member established the session without using password encryption.
|
sesi2_cltype_name
Points to a Unicode string that specifies the type of client that established
the session. Following are the defined types for LAN Manager servers:
Value
| Meaning
| DOS LM 1.0
| LAN Manager for MS-DOS 1.0 clients.
| DOS LM 2.0
| LAN Manager for MS-DOS 2.0 clients.
| OS/2 LM 1.0
| LAN Manager for MS-OS/2 1.0 clients.
| OS/2 LM 2.0
| LAN Manager for MS-OS/2 2.0 clients.
|
Sessions from LAN Manager servers running UNIX also will appear as LAN Manager
2.0.
See Also
NetSessionEnum, NetSessionGetInfo
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|