User's Manual

Table Of Contents
Function interface of device driver Kemro UserID classic / eco
76 User's Manual, Version: 1.01
© KEBA 2008
9.5.12 Reading out data from a transponder
DWORD rfidReadTag (HANDLE hTag, void * pvData, DWORD dwCount, DWORD
* pdwCountRead)
Parameter Description
hTag
Handle of the transponder to be read
pvData
Buffer for the data read out. The data have the following
format, depending on the data mode in which the trans-
ponder was opened:
FLAG_OPEN_EUROMAP65: a data buffer in the form of a
T_EuromapData structure is expected. Those fields of
the structure that are activated by dwValid (at parame-
ter transfer [in]), are filled during reading out, the fields
not activated remain unaffected.
FLAG_OPEN_BINARY: a byte array of adequate size is
expected. The data are copied from the transponder into
the buffer in binary form (1:1 image)
dwCount
FLAG_OPEN_EUROMAP65: number of structures to be read,
must be permanently set on 1.
FLAG_OPEN_BINARY: number of bytes to be read.
pdwCountRead
FLAG_OPEN_EUROMAP65: number of the structures read, 1
if reading was possible, otherwise 0.
FLAG_OPEN_BINARY: number of bytes read.
This function reads the data of an opened transponder. The data are sup-
plied in the form of Euromap65 structure or as binary data depending on
how the connection to the transponder was opened.
Return:
Value Description
0
If everything is OK, otherwise descriptive error code