Lockblock – Argox PT-9130 User Manual

Page 168

Advertising
background image

PT-90 Mobile Computer SDK Programming Manual 161

LockBlock

Lock specific block on ISO 15693 tag.

int LockBlock

{

int

iBlock

,

char

lpFlag[]

,

char

lpAddressUID[]

,

}

Parameters

iBlock

[in] The block index of ISO 15693 tag. Please refer to tag respective document.

lpFlag

[in] Set request flag, please refer to table below and

RFID Request Flags

. This parameter displayed in base

hexadecimal notation.

Bit 8

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

0

Option_flag Address_flag

Select_flag

0

0

0

0

lpAddressUID

[in] The unique identifier of ISO 15693 tag. This parameter apply determined by the Address_flag, please

refer to ISO 15693 document.

Returned Values

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

Remarks

When applies this function, the block will lock and be unable to restore on ISO 15693 tag.

Example

char cUID[40];

Inventory15693("04", "", cUID);

if(LockBlock(8, "20", cUID) != 0)

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