Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Book 4-Appendices - <b>nnetpsajob()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETPSAJOB()
 Aborts the print job that is currently being printed
------------------------------------------------------------------------------
 Syntax

     NNETPSAJOB(<cPServer>,<nPrinter>,[<nJobMode>],[<cServer>|
        <nConId>]) --> lSuccess

     Netware: 2.2 and 3.11

 Arguments

     <cPServer>  Designates the name of the print server that is
     accessed.

     <nPrinter>  Designates the number of the printer on <cPServer>.
     Values between 0 and 15 are possible.

     <nJobMode>  Designates the mode of the job that is aborted according
     to the following table:

     Table 27.2:  Job Modes
     ------------------------------------------------------------------------
     Value   CTPS.CH        Definition
     ------------------------------------------------------------------------
     1       PSJ_RET2Q      Return job to queue
     2       PSJ_THROWAWAY  Discard job
     ------------------------------------------------------------------------

     The default value for <nJobMode> is 1.  To return the job to the queue,
     you must set the service restart flag (see NNETJFLAGS()).

     <cServer>  Designates the name of the file server used to access
     <cPServer>.  The print server checks login information on <cServer>.
     Therefore, the access rights can depend on the specified file server.
     Your workstation must be attached to <cServer>.

     <nConId>  Designates the connection ID of your workstation on
     <cServer>.

 Returns

     NNETPSAJOB() returns .T. if the current job of <nPrinter> on <cPServer>
     has been aborted.

 Description

     NOVELL NET PRINT SERVER ABORT JOB
     NNETPSAJOB() allows you to abort a print job currently being printed.
     You can determine if the job is returned to the queue (<nJobMode>=1) or
     discarded (<nJobMode>=2).

 Example

     Abort and discard the job of printer 0 on print server PSERVER:

     #include "ctps.ch"

     NNETPSAJOB('PSERVER',0,PS_THROWAWAY)

See Also: NNETPSTOP()

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