Jump to content

SplQpControl: Difference between revisions

From EDM2
Created page with "SplQpControl controls the printing of a document and is usually called while another thread is inside SplQpPrint. ==Syntax== SplQpControl(hproc, cmdCode); ==Parameters== ; h..."
 
Ak120 (talk | contribs)
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
SplQpControl controls the printing of a document and is usually called while another thread is inside SplQpPrint.  
SplQpControl controls the printing of a document and is usually called while another thread is inside [[SplQpPrint]].
 
==Syntax==
==Syntax==
  SplQpControl(hproc, cmdCode);
  SplQpControl(hproc, cmdCode)
 
==Parameters==
==Parameters==
; hproc (HPROC) - input  
;hproc (HPROC) - input: The queue processor handle.
: The queue processor handle.  
;cmdCode (LONG) - input: Printer control codes.
:Control codes are as follows:
:* SPLC_ABORT Printing is terminated
:* SPLC_PAUSE Printing is paused
:* SPLC_CONTINUE Printing resumes on a paused job


; cmdCode (LONG) - input
==Return Code==
: Printer control codes.  
;fSuccess (BOOL) - returns: Return codes.
On completion, the handling routine must return BOOLEAN (fSuccess).
* TRUE Success
* FALSE Error


Control codes are as follows:
* SPLC_ABORT Printing is terminated
* SPLC_PAUSE Printing is paused
* SPLC_CONTINUE Printing resumes on a paused job
==Return Code==
; fSuccess (BOOL) - returns
: Return codes.
On completion, the handling routine must return BOOLEAN (fSuccess).
* TRUE Success
* FALSE Error
==Example Code==
<PRE>
<PRE>
#include <os2.h>
#include <os2.h>
Line 29: Line 27:
fSuccess = SplQpControl(hproc, cmdCode);
fSuccess = SplQpControl(hproc, cmdCode);
</PRE>
</PRE>
[[Category:Spl]]
[[Category:Spl]]

Latest revision as of 01:05, 14 June 2020

SplQpControl controls the printing of a document and is usually called while another thread is inside SplQpPrint.

Syntax

SplQpControl(hproc, cmdCode)

Parameters

hproc (HPROC) - input
The queue processor handle.
cmdCode (LONG) - input
Printer control codes.
Control codes are as follows:
  • SPLC_ABORT Printing is terminated
  • SPLC_PAUSE Printing is paused
  • SPLC_CONTINUE Printing resumes on a paused job

Return Code

fSuccess (BOOL) - returns
Return codes.

On completion, the handling routine must return BOOLEAN (fSuccess).

  • TRUE Success
  • FALSE Error
#include <os2.h>

HPROC    hproc;     /*  The queue processor handle. */
LONG     cmdCode;   /*  Printer control codes. */
BOOL     fSuccess;  /*  Return codes. */

fSuccess = SplQpControl(hproc, cmdCode);