## Presentation Device Driver Reference for OS/2

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

### SplPdQuery Parameter - ulCommand

ulCommand (ULONG) - input Generic command code.

For all commands except BIDI_WAIT_ALERT and BIDI_Q_PORT, the BIDI protocol converter may be called to generate protocol-specific command data to satisfy query requests. See BIDI Command Structures and Command Flow for contents of pInData and pOutData for each of the following commands.

Current command values are as follows:

BIDI_READ_PASSTHRU(8001h) Waits for any response from printer. This must be done from within a passthru session. See BIDI_START_PASSTHRU(1Ah) for more details. See BIDI_READ_PASSTHRU(8001h) for input and output parameters.

BIDI_Q_PORT(800Bh) Query BIDI capabilities of the port. See BIDI_Q_PORT( 800Bh) for input and output parameters.

BIDI_Q_SW(800Ch) Query BIDI software capabilities. See BIDI_Q_SW(800Ch) for input and output parameters.

BIDI_Q_DEVICE(800Dh) Query printer device characteristics. See BIDI_Q_ DEVICE(800Dh) for input and output parameters.

BIDI_Q_INTERPRETER(800Eh) Query interpreters available in the printer. See BIDI_Q_INTERPRETER(800Eh) for input and output parameters.

BIDI_Q_INPUTBINS(800Fh) Query input bins. See BIDI_Q_INPUTBINS(800Fh) for input and output parameters.

BIDI_Q_OUTPUTBINS(8010h) Query output bins. See BIDI_Q_OUTPUTBINS(8010h) for input and output parameters.

BIDI_Q_FONTS(8012h) Query fonts for a particular interpreter. See BIDI_Q_ FONTS(8012h) for input and output parameters.

BIDI_Q_JOBS_COMPLETE(8013h) Query list of completed jobs. See BIDI_Q_JOBS_ COMPLETE(8013h) for input and output parameters.

BIDI_Q_JOBS_QUEUED(8014h) Query list of queued jobs. See BIDI_Q_JOBS_QUEUED (8014h) for input and output parameters.

BIDI_Q_STATUS(8015h) Query current status of the print device. See BIDI_Q_ STATUS(8015h) for input and output parameters.

BIDI_WAIT_ALERT(8016h) Wait for unsolicited alerts. See BIDI_WAIT_ALERT( 8016h) for input and output parameters.

BIDI_Q_JOBID(8017h) Query the printer Job ID associated with the active PrtOpen/SplPdOpen handle. See BIDI_Q_JOBID(8017h) for input and output parameters.

BIDI_Q_RESPONSE_FMT(8018h) Return format of printer-to-host messages. See BIDI_Q_RESPONSE_FMT(8018h) for input and output parameters.

BIDI_Q_PORTDRV(8019h) Query port driver's configuration for the port. See BIDI_Q_PORTDRV(8019h) for input and output parameters.

This command does not go to the printer or protocol converter.

BIDI_Q_STORAGE(8023h) Query storage media in printer. See BIDI_Q_STORAGE( 8023h) for input and output parameters.

0x0000B000 - 0x0000BFFF Port-driver-specific commands.