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 |
||
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== | ==Return Code== | ||
; fSuccess (BOOL) - returns | ;fSuccess (BOOL) - returns: Return codes. | ||
: Return codes. | |||
On completion, the handling routine must return BOOLEAN (fSuccess). | On completion, the handling routine must return BOOLEAN (fSuccess). | ||
* TRUE Success | * TRUE Success | ||
* FALSE Error | * FALSE Error | ||
<PRE> | <PRE> | ||
#include <os2.h> | #include <os2.h> | ||
Line 29: | Line 29: | ||
fSuccess = SplQpControl(hproc, cmdCode); | fSuccess = SplQpControl(hproc, cmdCode); | ||
</PRE> | </PRE> | ||
[[Category:Spl]] | [[Category:Spl]] |
Revision as of 22:16, 25 March 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);