rc (ULONG) - returns
Return
codes.
- Success
- ERROR_INVALID_FUNCTION
The command code
is not supported. This may occur if a new command is sent to an old spooler,
port driver, or protocol converter, or if the printer rejects the command.
2(ERROR_FILE_NOT_FOUND)
pszDeviceName
given is not a valid port name with a port driver, a printer device
name, or a printer queue name.
5(ERROR_ACCESS_DENIED)
Not authorized to access a printer port.
8(ERROR_NOT_ENOUGH_MEMORY)
Not enough memory to satisfy request.
29(ERROR_WRITE_FAULT)
Failure attempting to write to the device. The
printer might not have received the set request.
53(ERROR_BAD_NETPATH)
The computer name specified is not available or
is invalid.
67(ERROR_BAD_NET_NAME)
The
computer name cannot be found.
87(ERROR_INVALID_PARAMETER)
An invalid parameter was specified; most likely
an invalid buffer pointer was given.
117(ERROR_INVALID_CATEGORY)
The protocol converter does not handle the category
given with command BIDI_ENABLE_ALERT.
186(ERROR_INVALID_FLAG_NUMBER)
The protocol converter does not understand one
of the core alert types set with command BIDI_ENABLE_ALERT.
211(ERROR_INFO_NOT_AVAIL)
The request cannot be sent with the given ulType
value. The request should be reissued with a different ulType value.
640(ERROR_TIMEOUT)
The
set command was not able to be sent to the printer within the time allotted.
683(ERROR_BIDI_NO_SUPPORT)
The
printer is not in bidirectional mode, therefore query requests are not honored.
The port may also be in the process of being shut down.
0x1403(PMERR_ALREADY_INITIALIZED)
The port driver has already been initialized for
the port.
0x4005(PMERR_SPL_INV_HSPL)
Not
currently in a passthru session.
0x4009(PMERR_SPL_SPOOLER_NOT_INSTALLED)
The spooler is not enabled, therefore bidirectional
set requests are not supported.
0x4011(PMERR_SPL_INV_JOB_ID)
The job ID specified is not known.
0x403D(PMERR_SPL_CNV_NOT_INIT)
The protocol converter or port driver has not been
initialized for this port.
0x403E(PMERR_SPL_INIT_IN_PROGRESS)
Another thread is still processing BIDI_INIT_PORTDRV
or the initial BIDI_Q_PORT for the given portname. The request should be
tried again later.
Others
If
pszComputerName is specified, other network errors may be returned.
Note: Currently, you cannot send more than
64KB of data from a spooler call over the network. Therefore, all data used
in this API should be limited to less than 64KB for now.
[Back: PrtSet Parameter - cbInData]
[Next: PrtSet - Parameters]