Error handling, Start and close functions, Error handling -2 start and close functions -2 – Rockwell Automation 2727-MRSDK MobileView Terminals Software Development Kit User Manual User Manual
Page 26: Rules, Error codes

Publication 2727-UM004B-EN-P - February 2004
4-2 SDK (Software Development Kit) for MobileView Terminals
Error Handling
Rules
Functions expecting an input parameter verify that the parameter is
inside the range and has the correct data type.
•
If a parameter is located outside the range the function returns
INVALID_ARG_RANGE.
•
Functions expecting a pointer for output data as a parameter
verify that the pointer is valid (for example, the pointer must not
be NULL). If the pointer is invalid, the function returns
INVALID_ARG_INVALID_PTR.
•
Functions with a string as a parameter verify that the pointer to
the string is valid. If the pointer is invalid, the function returns
INVALID_ARG_INVALID_STR_PTR.
Error Codes
Start and Close Functions
This section describes functions that are required to start and close the
SDK dll.
Table 4.2
SUCCESS
0
OK
0
FAIL
1
INVALID_ARG_RANGE
2
INVALID_ARG_PTR
3
INVALID_ARG_STR_PTR
4
INVALID_ARG_UNKNWN_COOKIE
5
INVALID_ARG_UNKNWN_DOMAINS
6
INVALID_NOT_CALIBRATED
7