![background image](http://html.mh-extra.com/html/toshiba/trst-a10-series/trst-a10-series_user-manual_429122071.webp)
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual
TOSHIBA TEC CORPORATION EAA-02450
71
1) Open Method
Notifies a result using a return value and OpenResult property. One of the values is placed in the ResultCode: OPOS_SUCCESS when the method completed
successfully, the same value as the current if the device has been already opened, then OPOS_E_CLOSED for other cases.
Method
Value
OpenResult
Meaning
Error Handling
OPOS_SUCCESS
OPOS_SUCCESS
Completed successfully
–
OPOS_ORS_BADCO
CO is not supporting the required
method.
Need investigation.
OPOS_E_NOSERVICE
OPOS_ORS_RESOURCEFAIL
Failed to obtain the OS version.
Need investigation.
OPOS_E_ILLEGAL
OPOS_ORS_ALREADYOPEN
Already opened.
–
OPOS_E_NOEXIST
OPOS_ORS_CONFIG
Incorrect registry
Need investigation.
Open
OPOS_E_FAILURE
OPOS_ORS_RESOURCEFAIL
Internal abnormality
Failed to create system resource.
Restart the POS system.
Need investigation if the same error
repeats.
2) Close Method
Notifies a result using a return value and Result Code property.
Method
Value
ResultCode
Meaning
Error Handling
OPOS_SUCCESS
OPOS_E_CLOSED
Completed successfully
–
OPOS_E_CLOSED
OPOS_E_CLOSED
Already closed.
–
Close/CloseService
Value returned from
Release/ReleaseDevice
ResultCode for
Release/ReleaseDevice
Refer to the section,
“Release/ReleaseDevice”.
–