tags:

views:

573

answers:

1

Does anyone have any example code that shows how to identify the system boot harddisk, and read/write the mbr from the harddisk in windows xp and vista?

I know createfile can be used. But I do not know how to properly identify which device is the boot device.

Like how do you find out which ones you are meant to use? \.\Volume{GUID}\ or \?\Device\HarddiskVolumeX etc?

A: 

you could try looking through the source of rawwrite for windows http://www.chrysocome.net/rawwrite

Spudd86
Unfortuently there is some trick to it that was added for nt6, rawwrite doesnt work on vista or windows7.