## Presentation Device Driver Reference for OS/2

[prev][next][parent][TOC]

### SplProtSendCmd Return Value - rc

rc (ULONG) - returns Return codes.

0 Success

1(ERROR_INVALID_FUNCTION) The command code is not supported. This lack of support 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) The pszPortName given is not a valid port name.

5(ERROR_ACCESS_DENIED) Not authorized to access 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 command sequence.

87(ERROR_INVALID_PARAMETER) An invalid buffer 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 BIDI_ENABLE_ALERT.

211(ERROR_INFO_NOT_AVAIL) The requested information is not available in the protocol converter cache, or the request cannot be sent with the given ulType value. The request should be reissued with a different ulType value.

234(ERROR_MORE_DATA) Part of the information requested was returned, but there was not enough room for all the data. *pcbOutData contains the size of buffer needed to retrieve all the query response data.

640(ERROR_TIMEOUT) The printer response was not received within the time allotted. The caller may reissue the query, at which time the information might be available.

683(ERROR_BIDI_NO_SUPPORT) The printer is not in bidirectional mode, therefore query requests are not honored. The port also may be in the process of being shut down.

2123(NERR_BufTooSmall) No information was returned because the output buffer was too small. *pcbOutData contains the size of buffer needed to retrieve all the query response data.

0x4005(PMERR_SPL_INV_HSPL) Not currently in a passthru session.

0x4011(PMERR_SPL_INV_JOB_ID) No job is being actively sent to the printer port, therefore BIDI_Q_JOBID is not successful.

0x4041(PMERR_SPL_SESSION_TERM) The passthru session has been terminated.

0x403D(PMERR_SPL_CNV_NOT_INIT) The protocol converter has not been initialized for this port.

0x403F(PMERR_SPL_TYPE_NOT_AVAIL) The storage type requested for BIDI_Q_ FONTS or BIDI_Q_STORAGE is not available in the printer.