SplQpControl: Difference between revisions
Appearance
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..." |
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 | |||
; | ==Return Code== | ||
: | ;fSuccess (BOOL) - returns: Return codes. | ||
On completion, the handling routine must return BOOLEAN (fSuccess). | |||
* TRUE Success | |||
* FALSE Error | |||
<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);