Hi Members
How to read MBR table for FAT and NTFS?I am new in programing as well as forum,so please give me tutorial link or example?
Forum ever reply help me.
Printable View
Hi Members
How to read MBR table for FAT and NTFS?I am new in programing as well as forum,so please give me tutorial link or example?
Forum ever reply help me.
Could you say why you need it (MBR)?
You can just open the raw disk device:
Code:CFile f,w;
unsigned char buf[512];
f.Open(L"\\\\.\\PHYSICALDRIVE0",0);
f.Read(buf,512);
f.Close();
the interpretation is just the same as when you would be able to read sectors explicitely as well. you would "need to know" how to interpret it then also.
opening the disk as a physical volums essentially puts all the sectors of the disk one after the other and you can access it linearly using the known file functions. It takes the cylinder/track/sector calculations out of the issue so it's a lot simpler at least. But interpretation still is the same.
What does MBR ( http://en.wikipedia.org/wiki/Master_boot_record ) have to do with File Allocation Table? with deleted folder and files? :confused: