pszPortName (PSZ) - input
phDevice (PHFILE) - output
Returned
port-driver handle for the device.
pDeviceFlags (PULONG) - output
Flag
returns type of device being opened.
Values are as follows:
HANDTYPE_FILE
HANDTYPE_DEVICE
HANDTYPE_PIPE
HANDTYPE_LPTDEVICE
HANDTYPE_COMDEVICE
HANDTYPE_NETWORK
pPrtOpenStruct (PVOID) - input
Pointer
to a parameter structure that describes the job being sent to the print
device.
Some fields may be derived from the DevOpenDC() parameter DEVOPENSTRUC.
See Data Types for details on the PRTOPENSTRUCT0
data structure.
rc (ULONG) - returns
Return
codes.
- Success
- ERROR_ACCESS_DENIED)
Not authorized to
open printer port.
8(ERROR_NOT_ENOUGH_MEMORY)
Not
enough memory to satisfy request.
29(ERROR_WRITE_FAULT)
Failure attempting to write to the device. This
could happen if a BIDI_START_JOB bracket is sent during open time, and the
print device does not accept the start job command.
87(ERROR_INVALID_PARAMETER)
An invalid parameter was specified; most likely
an invalid pointer was passed to PrtOpen.
99(ERROR_DEVICE_IN_USE)
Device is in use by another application.
240(ERROR_VC_DISCONNECTED)
Unable to connect to the remote printer.
[Back: SplPdOpen Return Value - rc]
[Next: SplPdOpen - Topics]