SplQpPrint: Difference between revisions
Appearance
Created page with "SplQpPrint processes and prints the spool file. ==Syntax== SplQpPrint(hproc, pszFileName); ==Parameters== ; hproc (HPROC) - input : Queue processor handle returned by Spl..." |
mNo edit summary |
||
Line 1: | Line 1: | ||
SplQpPrint processes and prints the spool file. | SplQpPrint processes and prints the spool file. | ||
==Syntax== | ==Syntax== | ||
SplQpPrint(hproc, pszFileName) | SplQpPrint(hproc, pszFileName) | ||
==Parameters== | ==Parameters== | ||
; hproc (HPROC) - input | ; hproc (HPROC) - input: Queue processor handle returned by [[SplQpOpen]]. | ||
: Queue processor handle returned by SplQpOpen. | ; pszFileName (PSZ) - input: The pointer to the name of the file containing the data. | ||
; pszFileName (PSZ) - input | |||
: The pointer to the name of the file containing the data. | |||
==Return Code== | ==Return Code== | ||
; fSuccess (BOOL) - returns | ; fSuccess (BOOL) - returns: Return codes. | ||
: Return codes. | On completion, the handling routine must return BOOLEAN (fSuccess). | ||
* TRUE Success | |||
On completion, the handling routine must return BOOLEAN (fSuccess). | * FALSE Error | ||
* TRUE Success | |||
* FALSE Error | |||
==Remarks== | ==Remarks== | ||
The handling routine in the queue driver opens a DC for an OD_DIRECT device type using the parameters passed into SplQpOpen. | The handling routine in the queue driver opens a DC for an OD_DIRECT device type using the parameters passed into SplQpOpen. | ||
==Example Code== | ==Example Code== | ||
Line 32: | Line 26: | ||
fSuccess = SplQpPrint(hproc, pszFileName); | fSuccess = SplQpPrint(hproc, pszFileName); | ||
</PRE> | </PRE> | ||
[[Category:Spl]] | [[Category:Spl]] |
Latest revision as of 20:02, 2 July 2023
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);