I am writing a utility to parse MFT in NTFS. So far I have written the code to get a 1024 byte MFT record and traverse its attributes. As far as I know that MFT starts allocating records to user files from record number 0x23 so I am looping from 0x23 to N number of records. I want to know that how to get to the last record of MFT? Is there some kind of an end marker? How do I know whether a certain record is last record so that I can stop looping through MFT records.
Any help would be appreciated.