ACR89U-A1 – Reference Manual
Version 1.04
www.acs.com.hk
Page 43 of 57
4.2.3.
Device Functions
Device Functions
allow the initialization and retrieval of various parameters to and from the ACR89.
4.2.3.1. AS_GetInfo
This function retrieves general information of the ACR89.
AS_STATUS AS_DECL
AS_GetInfo
(
IN INT nDevId,
OUT PINFO pInfo);
Parameters:
nDevId
[in] Handle returned by a previous call to
AS_Open
.
pInfo
[out] Pointer to an
INFO
structure that saves the general information of the ACR89
device. See also
Section 4.1.3.2
for more information about the
INFO
structure.
Return Values:
AS_STATUS
This functions returns different values depending on whether it succeeds
or fails.
AS_STATUS.DllError
contains the status as returned by the DLL.
AS_STATUS.W32Error
contains the Win32 error code associated with
the DLL error, if any. See also
Example:
INT nDid;
INFO Info;
AS_STATUS status;
//open a connection to the ACR89
status = AS_Open(ACR89,AS_USB1,&nDid);
if(status.DllError == CMD_SUCCESS) {
//connection success, get the reader information.
status = AS_GetInfo(nDid,&Info);
if (status.DLLError == CMD_SUCCESS) {
//do something with the retrieved information
}
//close the connection
status = AS_Close(nDid);
}
else {
return status;
}