winapi c - read/write mbr of system drive

Posted by kiasecto on Stack Overflow See other posts from Stack Overflow or by kiasecto
Published on 2009-08-03T08:47:28Z Indexed on 2010/03/17 2:01 UTC
Read the original article Hit count: 607

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about winapi

Related posts about c