doubt in dual boot

I want to list all the drives in the system other than the os drive.
I use GetSystemDirectory and GetWindowsDirectory functions to filter the os drives.
My list was perfect in a single boot system.
In case of dual boot system where I have 2 OS drives the my list should filter both OS drives. But it doesnt happen like that.
Is there a way to do this. Any registry key to look or any API.

Try to read register key
\Registry\Machine\System\CurrentControlSet\Control\SystemBootDevice
to get current boot up device.

Thanks

Wayne

On 2009-4-28 14:19, xxxxx@yahoo.co.in wrote:

type=“cite”>

I want to list all the drives in the system other than the os drive.
I use GetSystemDirectory and GetWindowsDirectory functions to filter the os drives.
My list was perfect in a single boot system.
In case of dual boot system where I have 2 OS drives the my list should filter both OS drives. But it doesnt happen like that.
Is there a way to do this. Any registry key to look or any API.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online athttp://www.osronline.com/page.cfm?name=ListServer

Can IoGetBootDiskInformation help?


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

wrote in message news:xxxxx@ntdev…
>I want to list all the drives in the system other than the os drive.
> I use GetSystemDirectory and GetWindowsDirectory functions to filter the os drives.
> My list was perfect in a single boot system.
> In case of dual boot system where I have 2 OS drives the my list should filter both OS drives. But it doesnt happen like that.
> Is there a way to do this. Any registry key to look or any API.
>
>

You might want to read about Volume Management the SDK. In particular, I would take a look at
GetLogicalDrives()/GetLogicalDriveStrings().

http://msdn.microsoft.com/en-us/library/aa365728(VS.85).aspx [Volume Management]
http://msdn.microsoft.com/en-us/library/aa364972(VS.85).aspx [GetLogicalDrives()]
http://msdn.microsoft.com/en-us/library/aa364975(VS.85).aspx [GetLogicalDriveStrings()]

This assumes that all you want is a list of mounted drives (letters); if you want to know about
partitions and so forth, this won’t do that (I think that would involve the Mount Manager API, but I
really don’t know).

Good luck,

mm

xxxxx@yahoo.co.in wrote:

I want to list all the drives in the system other than the os drive.
I use GetSystemDirectory and GetWindowsDirectory functions to filter the os drives.
My list was perfect in a single boot system.
In case of dual boot system where I have 2 OS drives the my list should filter both OS drives. But it doesnt happen like that.
Is there a way to do this. Any registry key to look or any API.

Thanks for the info.
I wanted to do this stuff in the application side.
so I guess IoGetBootDiskInformation will not help me.
I will try out if any thing other is there or not.

THanks