Zebra Technologies P1061668-001 DirectIO Method, Opossuccess, Direct I/O successful, Other Values

Page 21

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 non-portable. The application may, however, maintain portability by performing DirectIO calls within conditional code. This code may be based upon the value of the ServiceObjectDescription, DeviceDescription, or DeviceName property.

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

P1061668-001 Rev. A

Image 21
Contents Zebra Kiosk Opos Driver User Guide Page Contents Contents Opos Information Who Should Use This DocumentCore Companies OLE for Retail POS CommitteeEpson Fujitsu-ICL Microsoft NCRIcons Used Document ConventionsDocument Conventions Hardware Requirements Kiosk Opos Driver InstallationCompatible Operating Systems Following sections describeBefore Installing the Opos Driver Installing the Opos DriverTo install the Kiosk Opos Driver List of available drivers appear Kiosk Opos Driver Installation Kiosk Opos Driver Installation Kiosk Opos Driver Installation Zebra Opos Printer Service Object Test Tool appears Testing the InstallationKiosk Opos Driver Installation OLE for Retail POS Controls Kiosk Modifications of the OLE for Retail POS How an Application Uses an Opos Control Device Power Reporting ModelCommon Properties Summary of Common Properties, Methods, and EventsCommon Events Common MethodsDirectIO Method Use of DirectIO has one valid command entryOpossuccess Direct I/O successfulExample STX POS Printer Summary EventsSpecific Properties YESCapRecBold Boolean Open CapRecBitmap Boolean OpenCapRecDwide Boolean Open CapRecDwideDhigh Boolean OpenErrorStation Long Open ErrorLevel Long OpenErrorString Open CartridgeNotify Long Open CharacterSetJrnEmpty Boolean JrnLetterQuality BooleanJrnNearEnd Boolean JrnCartridgeState LongSlpLineSpacing Long SlpLineCharsList String Open SlpLineHeight LongSlpLineWidth Long SlpLetterQuality BooleanSpecific Methods Events General InformationOne Shot Data Characters and Escape Sequences Data Characters and Escape SequencesESC #P ESC #BPrint Mode Data Characters and Escape Sequences ESC #EESC #R ESC 1C Print Line Data Characters and Escape SequencesESC 2C ESC 3CRight justify ESC rA Aligns following text at the right Restores printer characteristics toNormal ESC NProperties FontTypefaceList Property CharacterSetList PropertyMapMode Property RecBarCodeRotationList PropertyRecLinesToPaperCut Property RecLineSpacing PropertyRecLineWidth Property RecSidewaysMaxChars PropertyMethods CutPaper MethodPrintBarCode Method Two Dimensional Symbologies One Dimensional SymbologiesRotatePrint Method PrintBitmap MethodSetBitmap Method Kiosk Modifications of the OLE for Retail POS Page Zebra Technologies Europe Limited Zebra Technologies CorporationZebra Technologies Asia Pacific, LLC ZIH Corp P1061668-001 Rev. a