
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> fswslogout()</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
FSWSLogout()
------------------------------------------------------------------------------
Warning:
USE WITH EXTREME CAUTION.
If there are any files open when FSWSLogout() is called, changes may not be
written to disk. Make sure all files on the server (including overlays) are
closed properly.
Purpose:
Log user out of a file server.
Syntax:
bResult= FSWSLogout( lpszServerName, bDetachFlag )
Parameters:
lpszServerName The name of the file server.
bDetachFlag The detach flag.
Returns:
A boolean value (TRUE or FALSE).
The CA-Clipper name for this function is:
FSWSLogout()
Description:
FSWSLogout() returns TRUE if the current user was successfully logged out
of the file server.
Returns FALSE if an error occurs, in which case the user will not be logged
out.
If lpszServerName is passed as a NULL string, FSWSLogout() logs out from
all file servers and detaches from all file servers except the default and
ignores bDetachFlag. If lpszServerName is non-NULL, FSWSLogout() logs out
from server lpszServerName, and detaches from the server if bDetachFlag is
set to TRUE.
Example:
// To log the current user out from all file servers:
if ( FSWSLogout() )
? "The current user is now logged out of all file servers"
endif
// To log the current user out of server SERVER_3 and to remain attached:
if ( FSWSLogout("SERVER_3",FALSE) )
? "The current user is now logged out of server SERVER_3"
endif
See Also: FSWSLogin() FSLoginStatusGet() / FSLoginStatusSet() FSWSDetach()
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson