23.12.2012 Views

Digital Forensics in Small Devices: RFID Tag Investigation

Digital Forensics in Small Devices: RFID Tag Investigation

Digital Forensics in Small Devices: RFID Tag Investigation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

private void AsyncReadMethod(System.IntPtr cyDevice, str<strong>in</strong>g <strong>Tag</strong>ID)<br />

{<br />

}<br />

if (cyDevice == hReader)<br />

{<br />

}<br />

lst<strong>Tag</strong>IDs.Items.Add(<strong>Tag</strong>ID);<br />

// Our delegate that gets called by the RfidUsb class<br />

void OnAsyncRead(System.IntPtr cyDevice, Str<strong>in</strong>gBuilder str<strong>Tag</strong>ID)<br />

{ // Note that the callback is made from the <strong>RFID</strong> DLLs worker thread,<br />

}<br />

// and it <strong>in</strong>vokes this delegate on a Thread from the Thread Pool.<br />

// So we don't have direct access to the Form here, we have to use<br />

// another delegate to get to the Form.<br />

this.Invoke(new AsyncReadDelegate(AsyncReadMethod),<br />

new Object[] { cyDevice, str<strong>Tag</strong>ID.ToStr<strong>in</strong>g() });<br />

private void btnOK_Click(object sender, EventArgs e)<br />

{<br />

}<br />

//this.Close();<br />

save_log_to_b<strong>in</strong>();<br />

private void tmrHalfSec_Tick(object sender, EventArgs e)<br />

{<br />

if (hReader != IntPtr.Zero)<br />

{<br />

try<br />

{<br />

u<strong>in</strong>t dwNumEntries;<br />

30

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!