Alpha Sirius Posted May 19, 2007 Share Posted May 19, 2007 When the subject is windows I'm out of the charge... But I wanna know how to access a block device (Floppy, Hard Drive) under windows without using low level programing. If it was *unix I could simply open the device I want, read the sector I need, close the device, and stay with the sector on buffer. (fopen, fread, fclose) I need because I`m working in a way to easily modify my active partition (using GUI), so I can switch system without have to modify my boot sector code (install grub) So I need raw access to the MBR sector 0 (for who don`t know) to modify the booting bit (0x80) from offset 0x1BE to 0x1CE. I've got the sources in a kind of primary way, so if way one wanna take a look... mbr_reader.zip Link to comment Share on other sites More sharing options...
Recommended Posts