TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual
TOSHIBA TEC CORPORATION EAA-02450
81
When the commands operate asynchronously:
The table below describes the asynchronous operations of the commands that can operate both synchronously and asynchronously.
Each command notifies a result of process reservation using a return value and ResultCode property, and ResultCodeExtended property and a result of the
process using the following events: OutputCompleteEvent when the process completed successfully and ErrorEvent when the process failed.
The ResultCode and ResultCodeExtended parameters indicate the reason of failure.
Command
Value
ResultCode
ResultCodeExtended
Meaning
Error Handling
OPOS_SUCCESS
0
Process reservation accepted
–
OPOS_E_CLOSED
0
The device is closed.
Open the device using the Open
method.
OPOS_E_NOTCLAIMED
0
Does not have exclusive access to the
device.
Obtain the exclusive access using
the Claim (ClaimDevice) method.
OPOS_E_DISABLED
0
The device is disabled.
Set the DeviceEnabled property to
TRUE to enable the device.
Illegal value
Check the parameter value.
TPTR_CMD_DIRECT_
OUTPUT
(Result of process
reservation)
OPOS_E_ILLEGAL
0
Failed to create system resource.
(Failed to secure the memory area.)
Restart the POS system.
Need investigation if the same
error repeats.