Readmifareblock – Argox PT-9130 User Manual

Page 174

Advertising
background image

PT-90 Mobile Computer SDK Programming Manual 167

ReadMifareBlock

Read data of single block from ISO 14443A mifare S50/S70 tag.

int ReadMifareBlock

{

int

iKeyType

,

char

lpKey[]

,

int

iBlock

,

char

lpOutData[]

}

Parameters

iKeyType

[in] The key type. This parameter must be one of the values in the table below.

Value

Key type

0

Key A

1

Key B

lpKey

[in] The key string, 12 byte.

iBlock

[in] The block index of mifare S50/S70 tag. Please refer to tag respective document.

lpOutData

[out] Receive the block data.

Returned Values

Returning zero if the operation is successful, otherwise, indicates failure.

Example

char cData[128];

if(ReadMifareBlock(0, "FFFFFFFFFFFF", 8, cData) != 0)

AfxMessageBox(_T("Read mifare block fail"));

Requirements

OS Versions: Windows CE 6.0 or beyond.

Header: RFID.h

Link Library: RFID.lib

Link DLL: RFID.dll
Device: PT90

Advertising