APG8201-B2
– Reference Manual
Version 1.00
www.acs.com.hk
Page 39 of 48
www.acs.com
.hk
nOutBufferSize
4
lpBytesReturned
Pointer to a
DWORD
that receives the size, in bytes, of the data stored into
the buffer pointed to by
lpOutBuffer
9.3.5.
IOCTL_SMARTCARD_GET_FIRMWARE_VERSION
The IOCTL_SMARTCARD_GET_FIRMWARE_VERSION enables
Get Firmware Version
command.
9.3.5.1.
Firmware Version
To acquire device firmware version, take the third element of the received buffer and shift it by 8 bits.
Set the result to an OR operation together with the fourth element of the received buffer.
Example: Firmware_Version = (Common.RecvBuff[2] << 8) | Common.RecvBuff[3]);
9.3.5.2.
LCD
To acquire the device’s LCD, take the fifth element of the received buffer and shift it by 8 bits. Set the
result to an OR operation together with the sixth element of the received buffer.
Input:
hCard
Reference value returned from
SCardConnect
Shift
lpOutBuffer[2]
by 8 bits
Set OR operation with the shifted
lpOutBuffer[2]
and
lpOutBuffer[3]
value
Shift
lpOutBuffer[4]
by 8 bits
Set OR operation with the shifted
lpOutBuffer[4]
and
lpOutBuffer[5]
value