## Presentation Device Driver Reference for OS/2

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

### PrtQuery 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 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 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 query 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.

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 supported. 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.

0x4009(PMERR_SPL_SPOOLER_NOT_INSTALLED) The spooler is not enabled, therefore bidirectional query requests are not supported.

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

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.

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

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

Others If pszComputerName is specified, other network errors may be returned.

Note: Currently you cannot receive more than 64KB of data from a spooler call over the network. Therefore, all returned structures should be limited to less than 64KB for now.