## Presentation Device Driver Reference for OS/2

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

### PrtSet Parameter - ulType

ulType (ULONG) - input Type of set and options.

Values are as follows:

TYPE_SHORT_WAIT(1) Sends this information via a communications channel with the printer that can be used while a job is being sent to the printer.

An example would be using NPAP or SNMP. If the requested information cannot be sent using this type of channel (for instance, if a PJL command is required in order to set this information), ERROR_INFO_NOT_AVAIL is returned.

TYPE_LONG_WAIT(2) Sends information using any necessary communications channel with the printer, even if the request has to wait for the current job being sent to the printer to complete.

If the printer supports only one command channel, and this channel can be used while a job is being sent to the printer, TYPE_SHORT_WAIT(1) and TYPE_ LONG_WAIT(2) will behave in the same way.

TYPE_WITHOUT_WRAPPER(4) The information being sent does not have any packet wrapper around it.

This is useful for BIDI_SEND_PASSTHRU as it allows an application to send and receive printer-interpreter language commands without having to know the format of the BIDI protocol's data wrappers. An example would be sending a Postscript query to the printer and the NPAP protocol converter adds the necessary NPAP wrapper before transmitting the data to the printer .

If BIDI_SEND_PASSTHRU is used without this value, the calling application must have already wrapped the passthru data.

Note: If this value is used with any command other than BIDI_SEND_PASSTHRU , ERROR_INVALID_PARAMETER is returned.