Subscribe to StCroixSkipper's Blog        RSS Feed
- - - - -

An Answer To My USB CYCLE_PORT Question

Icon Leave Comment
Posting the question on the Microsoft WDK forum and getting an answer hasn't been very satisfying. While waiting for an answer I've continued to try this/try that to see if I could stumble upon the answer writing code. Not the best way to proceed. You would think with all the chatter about improving the WDK documentation on the forum,...
- - - - -

Working With USB Devices in C#

Icon Leave Comment
I've been investing a fair amount of time lately understanding the SetupDiApi and dealing with USB devices at the IOCTL level using DeviceIoContro() and operations like CYCLE_PORT. I've found numerous posts on the web but almost all run into a problem or two that seems never to be solved. There is a documentation error, for example, in...
* * * * -

StCroixSkipper's USN Journal Explorer v1.3

Icon 5 Comments
I've made several changes this last week. First, I did a bad thing calling long running functions in the UI thread. So I've put these long running functions, the ones that collect all the files, folders and USN Journal Entries, in a separate thread. Now you no longer get the "Application not responding" message.

I've also...
- - - - -

StCroixSkipper's USN Journal Explorer v1.2

Icon 3 Comments
I've added a button, 'List Files' to allow you to list and display all the files on a volume that match a filter string.

I enumerate through the entire Master File Table to find all the files whose extensions match those in the filter. Why would I want to read the Master File Table rather than enumerating through the disk with...
- - - - -

StCroixSkipper's USN Journal Explorer 1.1

Icon 5 Comments
I've changed a couple of things.
1. if you didn't save the USN Journal State before you tried to 'View Changes', it appeared that the app received an error accessing the USN Journal. What actually happened was that no saved usn state was available and I sent a USN Journal ID of zero to the DeviceIoControl() function which...
- - - - -

Added Code To Get Path (StCroixSkipper's UsnJournalExplorer) UsnEntryDetail.cs

Icon Leave Comment
I've added the code to calculate and display the path in the detail window. I had to change Win32Api.cs, NtfsUsnJournal.cs and UsnEntryDetail.cs.

Note: I haven't dealt with the edge case where the UsnEntry I'm processing points to a directory that has already been deleted.

Here is the new UsnEntryDetail.cs file:
...
- - - - -

Added Code To Get Path (StCroixSkipper's UsnJournalExplorer) NtfsUsnJournal.cs

Icon Leave Comment
I've added the code to calculate and display the path in the detail window. I had to change Win32Api.cs, NtfsUsnJournal.cs and UsnEntryDetail.cs.

Note: I haven't dealt with the edge case where the UsnEntry I'm processing points to a directory that has already been deleted.

Here is the new NtfsUsnJournal.cs file:
...
- - - - -

Added Code To Get Path (StCroixSkipper's USN Journal Explorer) Win32Api.cs

Icon Leave Comment
I've added the code to calculate and display the path in the detail window. I had to change Win32Api.cs, NtfsUsnJournal.cs and UsnEntryDetail.cs.

Note: I haven't dealt with the edge case where the UsnEntry I'm processing points to a directory that has already been deleted.

Here is the what the Win32Api.cs file looks like:
...
- - - - -

StCroixSkipper's USN Journal Explorer Version 1.0 With Final Third of the Code.

Icon 1 Comments
the VolumeSelectDialog.xaml.cs file:
...
- - - - -

StCroixSkipper's USN Journal Explorer Version 1.0 With Second Third of the Code.

Icon Leave Comment
I the first half was a success. Here is the second half.

and the Win32Api.cs file:
...

  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »

June 2018

S M T W T F S
     12
3456789
10111213141516
17 181920212223
24252627282930

Tags

    Recent Entries

    Search My Blog

    1 user(s) viewing

    1 Guests
    0 member(s)
    0 anonymous member(s)

    Categories