coolvic...@yahoo.co.in wrote:
Is there a way to get list of all Windows OS installed on different
partitions?
I mean is there any API or other other method that can be used in VC++
To be clear, suppose if C is having Xp installed and D is having Vista
Installed then function must return C and D as the partitions having
Windows Installed.
Not directly. The Windows installer, for example, looks at every
top-level
directory in every partition looking for some important file, like
\xxx\system32\ntoskrnl.exe. That's probably the quickest method.
You can learn which partitions contain bootable systems by looking at
c:\boot.ini (on XP) or using the BCD WMI interface (on Vista), but if
you're running XP, I don't know if you can read the BCD info.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
Thanks for your response.
reading raw disk sectors and checking if its bootable or not. I do