Kiosk Modifications of the OLE for Retail POS DirectIO Method
19
DirectIO Method
Syntax LONG DirectIO (LONG Command, LONG* pData, BSTR* pString);
Parameters This table identifies the parameters for this format:
Parameter | Description |
|
|
Command | Command number. 0 is the only valid option for the Kiosk |
| printers and then you can send any valid ESC commands with |
| the exception of status enquiries or data to the printer in the |
| pString buffer. |
| pData is set to the amount of bytes in pString. |
|
|
pData | Pointer to additional numeric data. Set to the amount of bytes |
| in pString. |
|
|
pString | Pointer to additional string of valid ESC commands or data. |
| The data format has to comply with the data format specified |
| in the Kiosk printers Technical Manual. It is recommended to |
| only use printer parameter set commands since the printing is |
| implemented through the Kiosk Printer Windows Driver. |
|
|
Remarks Call to communicate directly with the Service Object.
This method provides a means for a Service Object to provide functionality to the application that is not otherwise supported by the standard Control Object for its device class. Depending upon the Service Object’s definition of the command, this method may be asynchronous or synchronous.
Use of DirectIO will make an application
Return One of the following values is returned by the method and placed in the ResultCode property:
Value | Meaning |
|
|
OPOS_SUCCESS | Direct I/O successful. |
|
|
Other Values | See ResultCode. |
|
|
The use of DirectIO has one valid command entry.
DirectIO (0, BufferLength, Buffer)
11/25/2013 | OPOS Driver User Guide |