|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| No
| Import Library
| netapi32.lib
| Header File
| lmshare.h
| Unicode
| WinNT
| Platform Notes
| All LanMan APIs are UNICODE only
|
|
|
NetSessionDel
The NetSessionDel function ends a session between a server and a workstation.
Security Requirements
Only members of the Administrators or Account Operators local group can
successfully execute NetSessionDel.
NET_API_STATUS NetSessionDel(
LPTSTR servername,
|
| LPTSTR UncClientName,
|
| LPTSTR username,
|
| );
|
|
Parameters
servername
Pointer to a Unicode string containing the name of the remote server on which
the function is to execute. A NULL pointer or string specifies the local
computer.
UncClientName
Pointer to a Unicode string containing the computer name of the client to
disconnect. If UncClientName is NULL, then all the sessions of the user in username will be deleted on the server specified.
username
Pointer to a Unicode string containing the name of the user whose session is
to be terminated. A NULL pointer indicates that all users' sessions from the
client name specified are to be terminated.
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
More Online Helps
Win32 Programmer's Reference (win32.hlp)
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
|