![SG Intec Ltd & Co KG SG-Lock Developer'S Manual Download Page 42](http://html1.mh-extra.com/html/sg-intec-ltd-and-co-kg/sg-lock/sg-lock_developers-manual_1250994042.webp)
36
Chapter 4: SG-Lock API
4.6 Return Values
Every SG-Lock API function gives a return value back to the caller, to check if
the function was executed without errors. In the case that an error occured the
return value is unequal to 0. A detailed explanation of the error can be obtained
from the table below.
Name
Value
Description
SGL_SUCCESS
0
Execution without errors
SGL_DGL_NOT_FOUND
1
SG-Lock not found
SGL_AUTHENTICATION
-
_REQUIRED
5
Authentication with SglAuthent()
not or not errorfree processed
SGL_AUTHENTICATION
-
_FAILED
6
Authentification with SglAuthent
failed
SGL_FUNCTION_NOT
-
_SUPPORTED
7
The called function is not sup-
ported by the found SG-Lock.
SGL_PARAMETERS
-
_INVALID
8
Parameter of the called function is
out of the vaild value range.
SGL_SIGNATURE_INVALID
9
Signature invalid
SGL_USB_BUSY
10
Another application is claming
the SG-Lock for more than 5 sec-
onds.
Table 4.1: Return values and description of the SG-Lock-API.
Summary of Contents for SG-Lock
Page 2: ......
Page 22: ......
Page 60: ......
Page 62: ...56 Chapter 7 Technical Data Notes ...
Page 63: ...Chapter 7 Technical Data 57 ...