HLSB-36PCI2 User's Manual
2-6
2.5.2 HlsbGetLastError
UINT HlsbGetLastError(void);
Format
Obtains the termination state of the API called last time
Function
None
Parameter
The error codes supported by this API is shown in Table 2-3, which are defined in hlsb36pci2.h.
Return value
Table 2-3 Error code list
Character constant
Value
Description
HLSB_SUCCESS
0
Terminated normally
HLSB_ERR_DEVICE_NOT_EXIST
1
Device does not exist.
HLSB_ERR_ALREADY_OPENED
2
Handle has already opened.
HLSB_ERR_CLOSED
3
HlsbOpenHandle() has never been called.
HLSB_ERR_INVALID_HANDLE
4
Invalid handle value
HLSB_ERR_INVALID_PARAM
5
Called with invalid parameter
HLSB_ERR_NO_RESOUCE
6
No resource to execute the process
HLSB_ERR_FAILED
7
The process failed due to unknown reason.
HLSB_NOT_CALLYET
99
API function has never been called.