ZQ110
Rev. 1.00
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]
Returns after function success
Failure to create communication target
Unable to open communication port
Error occurred during status check
Incorrect argument specified
Error in received value or reception failure