Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTFSD

Before Posting...

Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


[USN] meaning of MajorVersion and MinorVersion field in USN_RECORD_V3

utkarshvadar3utkarshvadar3 Member Posts: 1

We are trying to shift from using USN_RECORD_V2 to USN_RECORD_V3 to fetch USN records, wanted to know the meaning of MajorVersion in USN_RECORD_V3.
Can I get answers to these questions?

  1. What is the meaning of the MajorVersion field in USN_RECORD_V3/USN_RECORD_V2?
  2. Will the MajorVersion field always be 2 for USN_RECORD_V2 and 3 for USN_RECORD_V3?
  3. How does the MajorVersion value change based on the version of change journal software used, and can changes saved with version 3 be retrieved as version 3 and version 2?

Comments

  • Dejan_MaksimovicDejan_Maksimovic Member - All Emails Posts: 589

    < What is the meaning of the MajorVersion field in USN_RECORD_V3/USN_RECORD_V2?
    Same as for all USN records - it tells you which version the record represents, so you know what structure to typecast to. Expect that only one version is present, and expect both v2 and v3 to be found on any system.

    Will the MajorVersion field always be 2 for USN_RECORD_V2 and 3 for USN_RECORD_V3?

    FWIK, yes. And it would break a lot of things if not :)

    How does the MajorVersion value change based on the version of change journal software used, and can changes saved with version 3 be retrieved as version 3 and version 2?

    AFAIK, only the saved version can be retrieved, because the journal can be massive and conversion takes a lot of time. Yet, software can typecast to the right structure at runtime, without any loss.

    Regards, Dejan.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Kernel Debugging 16-20 October 2023 Live, Online
Developing Minifilters 13-17 November 2023 Live, Online
Internals & Software Drivers 4-8 Dec 2023 Live, Online
Writing WDF Drivers 10-14 July 2023 Live, Online