The max that we could dream of doing would be to make a Windows version of libparted http://www.gnu.org/software/parted/api/modules.html As well as do some of the ms-sys work: http://linux.die.net/man/1/ms-sys