## Presentation Device Driver Reference for OS/2

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

### SplPdSet Parameter - ulCommand

ulCommand (ULONG) - input Generic command code.

The BIDI protocol converter may be called to generate protocol-specific command data to satisfy set 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_SEND_PASSTHRU(8001h) Printer protocol-specific command will be issued to the printer. See BIDI_SEND_PASSTHRU(1h) for input parameters.

BIDI_STARTJOB(2h) Signals start of print job. See BIDI_STARTJOB(2h) for input parameters.

BIDI_ENDJOB(3h) Signals end of print job. See BIDI_ENDJOB(3h) for input parameters.

BIDI_HOLDJOB(4h) Holds printer job. See BIDI_HOLDJOB(4h) for input parameters.

BIDI_RELEASEJOB(5h) Releases printer job. See BIDI_RELEASEJOB(5h) for input parameters.

BIDI_CANCELJOB(6h) Cancels printer job. See BIDI_CANCELJOB(6h) for input parameters.

BIDI_INIT_PORTDRV(8h) Initializes a port driver. See BIDI_INIT_PORTDRV(8h) for input parameters.

BIDI_RESET(9h) Resets the printer. See BIDI_RESET(9h) for input parameters.

BIDI_SHUTDOWN(Ah) Releases all threads waiting for this port.

Used to shut down a printer port. Sent to the protocol converter before being sent to the port driver. See BIDI_SHUTDOWN(Ah) for input parameters.

BIDI_INIT(Bh) Sets printer in BIDI mode.

Changes printer from unidirectional to bidirectional. Does not call the protocol converter. See BIDI_INIT(Bh) for input parameters.

BIDI_TERM(Ch) Sets printer in unidirectional mode.

Changes printer from bidirectional to unidirectional. Does not call the protocol converter. See BIDI_TERM(Ch) for input parameters.

BIDI_RESPONSE_FMT(Dh) Defines the format of printer-to-host messages. See BIDI_RESPONSE_FMT(Dh) for input parameters.

BIDI_PACKET_SIZE(Eh) Defines printer-to-host maximum packet size. See BIDI_ PACKET_SIZE(Eh) for input parameters.

BIDI_SET_PORTDRV(19h) Sets port driver configuration. See BIDI_SET_PORTDRV( 19h) for input parameters.

BIDI_START_PASSTHRU(1Ah) Initiates a passthru session with the printer. See BIDI_START_PASSTHRU(1Ah) for input parameters.

BIDI_END_PASSTHRU(1Bh) Terminates a passthru session with the printer. See BIDI_END_PASSTHRU(1Bh) for input parameters.

BIDI_NOTIFY_ENDJOBCONNECT(20h) Notifies port driver that jobs are complete. See BIDI_NOTIFY_ENDJOBCONNECT(20h) for input parameters.

BIDI_NOTIFY_PORT_SELECTED(21h) Notifies port driver that printer is connected to print queue. See BIDI_NOTIFY_PORT_SELECTED(21h) for input parameters.

BIDI_NOTIFY_PORT_RELEASED(22h) Notifies port driver that printer is not connected to print queue. See BIDI_NOTIFY_PORT_RELEASED(22h) for input parameters.

BIDI_SET_DEVICE_ID(23h) Tells port driver the printer's device ID. See BIDI _SET_DEVICE_ID(23h) for input parameters.

BIDI_ENABLE_ALERT(24h) Enables printer alerts. See BIDI_ENABLE_ALERT(24h) for input parameters.

BIDI_DISABLE_ALERT(25h) Disables printer alerts. See BIDI_DISABLE_ALERT(25h ) for input parameters.

BIDI_ADD_VIRTUAL_PORT(26h) Adds a virtual port. See BIDI_ADD_VIRTUAL_PORT( 26h) for input parameters.

BIDI_DEL_VIRTUAL_PORT(27h) Deletes a virtual port. See BIDI_DEL_VIRTUAL_ PORT(27h) for input parameters.

BIDI_DEL_PORT(28h) Indicates a spooler port has been deleted. See BIDI_DEL_ PORT(28h) for input parameters.

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