Jump to content

SplQpPrint: Difference between revisions

From EDM2
Created page with "SplQpPrint processes and prints the spool file. ==Syntax== SplQpPrint(hproc, pszFileName); ==Parameters== ; hproc (HPROC) - input : Queue processor handle returned by Spl..."
(No difference)

Revision as of 20:15, 19 November 2019

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