Jump to content

SplQpControl

From EDM2
Revision as of 22:16, 25 March 2020 by Ak120 (talk | contribs)

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);