Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> pswslogout()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 PSWSLogout()
------------------------------------------------------------------------------
 Purpose:
 Log out and detach a workstation from the print server.

 Syntax:
 bResult = PSWSLogout()

 Parameters:
 None.

 Returns:
 A boolean value (TRUE or FALSE).

 Description:
 PSWSLogout() logs out and detaches from the current print server.

 PSWSLogout() returns TRUE if successful or FALSE if an error occurs.

 Example:
 // To log in to print server PRINTERS, stop printer 1 from printing
 // and then log out:
 iAccess = PSWSLogin( "PRINTERS" )
 if( iAccess = 2 )       // Do we have the rights?
    if PrnStop( 1 )
       ? "Printer 1 on print server PRINTERS is now STOPPED"
    endif
 elseif ( iAccess != NOVERRINT )
    ? "You have insufficient rights to stop a printer"
 endif
 if( iAccess != NOVERRINT )
    PSWSLogout()
 endif

 Notes:
 It is only possible to be logged in to one print server at a time.

See Also: PSWSLogin()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson