Jump to content

SplQpPrint

From EDM2
Revision as of 20:02, 2 July 2023 by Ak120 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

SplQpPrint processes and prints the spool file.

Syntax

SplQpPrint(hproc, pszFileName)

Parameters

hproc (HPROC) - input
Queue processor handle returned by SplQpOpen.
pszFileName (PSZ) - input
The pointer to the name of the file containing the data.

Return Code

fSuccess (BOOL) - returns
Return codes.

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

  • TRUE Success
  • FALSE Error

Remarks

The handling routine in the queue driver opens a DC for an OD_DIRECT device type using the parameters passed into SplQpOpen.

Example Code

#include <os2.h>

HPROC    hproc;        /*  Queue processor handle returned by SplQpOpen. */
PSZ      pszFileName;  /*  The pointer to the name of the file containing the data. */
BOOL     fSuccess;     /*  Return codes. */

fSuccess = SplQpPrint(hproc, pszFileName);