SplStdOpen: Difference between revisions
Appearance
Created page with "SplStdOpen opens a spool buffer for PM_Q_STD data. ==Syntax== SplStdOpen(hdc); ==Parameters== ; hdc (HDC) - input : The device context handle. ==Return Code== ; fSuccess..." |
mNo edit summary |
||
Line 1: | Line 1: | ||
SplStdOpen opens a spool buffer for PM_Q_STD data. | SplStdOpen opens a spool buffer for PM_Q_STD data. | ||
==Syntax== | ==Syntax== | ||
SplStdOpen(hdc) | SplStdOpen(hdc) | ||
==Parameters== | ==Parameters== | ||
; hdc (HDC) - input | ;hdc (HDC) - input: The device context handle. | ||
: The device context handle. | |||
==Return Code== | ==Return Code== | ||
; fSuccess (BOOL) - returns | ;fSuccess (BOOL) - returns: Return codes. | ||
: Return codes. | This function returns BOOLEAN (fSuccess): | ||
* TRUE Success | |||
This function returns BOOLEAN (fSuccess): | * FALSE Error | ||
* TRUE Success | |||
* FALSE Error | |||
==Remarks== | ==Remarks== | ||
The call to SplStdOpen is made from the hardcopy driver's CompleteOpenDC routine when the device type is OD_QUEUED and the data type is PM_Q_STD. SplStdOpen must not be called at any other time. | The call to SplStdOpen is made from the hardcopy driver's CompleteOpenDC routine when the device type is OD_QUEUED and the data type is PM_Q_STD. SplStdOpen must not be called at any other time. | ||
==Example Code== | ==Example Code== |
Latest revision as of 18:49, 5 April 2025
SplStdOpen opens a spool buffer for PM_Q_STD data.
Syntax
SplStdOpen(hdc)
Parameters
- hdc (HDC) - input
- The device context handle.
Return Code
- fSuccess (BOOL) - returns
- Return codes.
This function returns BOOLEAN (fSuccess):
- TRUE Success
- FALSE Error
Remarks
The call to SplStdOpen is made from the hardcopy driver's CompleteOpenDC routine when the device type is OD_QUEUED and the data type is PM_Q_STD. SplStdOpen must not be called at any other time.
Example Code
#include <os2.h> HDC hdc; /* The device context handle. */ BOOL fSuccess; /* Return codes. */ fSuccess = SplStdOpen(hdc);