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> prnstart()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 PrnStart()
------------------------------------------------------------------------------
 Purpose:
 Start a printer.

 Syntax:
 bResult = PrnStart( wPtrNum )

 Parameters:
 wPtrNum The printer number.

 Returns:
 A boolean value (TRUE or FALSE).

 Description:
 PrnStart() starts or restarts a printer that has been stopped either
 using PrnStop() or at the print server console, or has stalled because
 of a problem. wPtrNum is the printer number on the currently logged
 into print server.

 Returns TRUE if successful, or FALSE if an error occurs.

 Example:
 // To log in to print server PRINTERS and test printer 0 to see if it has
 // stopped and if so restart it:
 if( PSWSLogin( "PRINTERS" ) > 0 )
    if( PrnStatGet( 0 ) = 4 )
       if( PrnStart( 0 )
          ? "Printer 0 has been restarted"
       endif
    endif
 endif

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

See Also: PSWSLogin() PrnStop() PrnStatGet() PrnErrStatGet()

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