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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

{<br />

// Temporarily stop the timer while we download<br />

tmrHalfSec.Enabled = false;<br />

// Clear the exist<strong>in</strong>g display<br />

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

txtNumDownloaded.Clear();<br />

btnDownloadLog.Text = "Download<strong>in</strong>g...";<br />

this.Refresh();<br />

Cursor.Current = Cursors.WaitCursor;<br />

try<br />

{<br />

{4:00}/{5:00}/{6:00}",<br />

fMoreLogEntries = usb<strong>RFID</strong>.LogGetFirst(hReader, ref LogItem);<br />

// First entry got OK, now we loop call<strong>in</strong>g LogGetNext till<br />

// we get to the end of the log<br />

while (fMoreLogEntries)<br />

{<br />

if ((LogItem.ftCreationTime.dwHighDateTime != 0) &&<br />

{<br />

}<br />

(LogItem.ftCreationTime.dwLowDateTime != 0))<br />

RfidUsb.NativeTimeMethods.FileTimeToLocalFileTime<br />

(ref LogItem.ftCreationTime, out ftLocalTime);<br />

RfidUsb.NativeTimeMethods.FileTimeToSystemTime<br />

(ref ftLocalTime, out stTime);<br />

// now create the str<strong>in</strong>g with tag ID and local time<br />

strLogEntry = LogItem.szIDBuffer;<br />

strLogEntry = Str<strong>in</strong>g.Format("{0}\t{1:00}:{2:00}:{3:00}<br />

32

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

Saved successfully!

Ooh no, something went wrong!