beautypg.com

Writemifareblock – Argox PT-9130 User Manual

Page 175

background image

PT-90 Mobile Computer SDK Programming Manual 168

WriteMifareBlock

Write data of single block to ISO 14443A mifare S50/S70 tag.

int WriteMifareBlock

{

int

iKeyType

,

char

lpKey[]

,

int

iBlock

,

char

lpData[]

}

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.

lpData

[in] The block data, 32byte.

Returned Values

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

Example

if(WriteMifareBlock(0, "FFFFFFFFFFFF", 8, "11111111112222222222333333333344") != 0)

AfxMessageBox(_T("Write 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