Search code examples
c++windowsmfcntfsfat

where to find the data structures to access NTFS/FAT with c++ programming?


I am starting out in NTFS/FAT file systems programming in c++. Such as parsing MFT journal file etc.

I have come through some very good material online such as ntfs.com and understood the theoretical concepts.

But when it comes to access NTFS/FAT file system and do some code. I wonder where can i find such material which contains all the c++ data structures to access the core of windows file systems?

Please help.


Solution

  • First, see What is a good resource to get started with Windows file system driver development?

    When you download DDK, look at source code for FAT32 kernel driver - it's very good starting point. MS doesn't provide source code for NTFS, but you can find quite good low level documentation in MSDN - but I'd definitely start with source code for FAT32.

    This book is a must for Windows driver development, even though it's old: http://www.amazon.com/Windows-File-System-Internals-Developers/dp/1565922492

    I'd also look at Dokany, a fork of the Dokan project, it gives you good insight to IFS development, https://github.com/dokan-dev/dokany