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> prneject()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 PrnEject()
------------------------------------------------------------------------------
 Purpose:
 Eject the current page from a print server's printer.

 Syntax:
 bResult = PrnEject( wPtrNum )

 Parameters:
 wPtrNum The printer number.

 Returns:
 A boolean value (TRUE or FALSE).

 The CA-Clipper name for this function is:
 PrnEject()

 Description:
 PrnEject() forces the printer wPtrNum on the currently logged into print
 server to eject the current page.

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

 Example:
 // To log in to print server PRINTERS and eject a page from printer 0:
 if( PSWSLogin ( "PRINTERS" ) = 2 )
    if( PrnEject( 0 )
       ? "A page has been ejected from printer 0
       ?? "on print server PRINTERS"
    endif
 endif

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

 This function requires that the calling user has print server operator
 status.

See Also: PSWSLogin() PSWSLogout() PrnStatusGet() PrnQueueModeGet() / PrnQueueModeSet()

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