Hello Guys
How to Determine which drive is bootable and which is a system drive. For example i have two drives on my machine physicaldrive0 and physicaldrive1. I determine the System Drive of my Machine by Calling GetSystemDirectory() and then determining whether its c: or d: or whatever. Then i do a deviceiocontrol to determine which physicaldrive the partition c: or d: belongs to. That gives me the physicaldrive with which the system has booted. But Consider the case of two drives say physicaldrive0 and physicaldrive1. I may have used physicaldrive0 for booting but my active partition that is c: is in physicaldrive1 and hence i get physicaldrive1 as system drive. How to determine the bootable drive?
Just as a note , You can get the scenario of bootable and system drives when u have two harddisks and u install a fresh copy of windows by selecting physicaldrive1. At that instant Windows formats physicaldrive0 as well and copies boot.ini,autoexec.bat,io.sys etc,, on to physicaldrive0 and rest of the stuff onto physicaldrive1.
Thank you very much and waiting for ur replies
Regards
Kandukondein