Zebra Technologies ZQ110 Printer User Manual


 
ZQ110
Rev. 1.00
- 10 -
Mobile Printer
Windows SDK API Reference Guide
3. Methods
The functions disclosed in the provided module are declared in the ExportFunc.h file. The
development environment was based on C++.
3-1 PrinterOpen
In order to use the module, this function is enabled. For PDA types with different In/Out
ports, port settings for each are required. In general, two-way communication is possible
with just the strOutPortName setting.
long PrinterOpen(
LPCTSTR strOutPortName,
Long lTimeout
);
[Parameters]
* strOutPortName
[in] Unicode Data ending with null. The virtual Serial Port number and Baudrate of the
currently connected device is conveyed for printing. If strOutPortName is NULL,
strOutPortName sets to In/Out data processing (for example, COM4:19200).
* lTimeout
[in] Specifies the timeout, in milliseconds, used to calculate the total timeout period for
open operations.
[Return Values]
Code
Value
Description
BXL_SUCCESS
0
Returns after function success
BXL_CREATE_ERROR
102
Failure to create communication target
BXL_NOT_OPENED
101
Unable to open communication port
BXL_STATUS_ERROR
103
Error occurred during status check
BXL_BAD_ARGUMENT
108
Incorrect argument specified
BXL_WRITE_ERROR
300
Failure to transmit data
BXL_READ_ERROR
301
Error in received value or reception failure