How to know all the disk present on the system?

Hi all,
Is there a way to know all the detected drives present on the
system, in user mode? (physicaldrive0, physicaldrive1 & so on…)

Thanks in advance…
Vipul.

Wrong list for usermode. Ever tried searching the web or reading threw
the MSDN?

QueryDosDevice;
GetLogicalDriveStrings;
GetDriveType;

Next time you have a usermode question, post it to a programming group
that deals with usermode stuff.

Go and do your research on those api’s now.

vipul jain wrote:

Hi all,
Is there a way to know all the detected drives present on
the system, in user mode? (physicaldrive0, physicaldrive1 & so on…)

Thanks in advance…
Vipul.
— Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the
List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Have a look in the AddFilter sample in the DDK, that shows how to
enumerate disks or volumes using the Setup API in user mode.

Mark.

At 10:18 AM 5/6/2006, vipul jain wrote:

Hi all,
Is there a way to know all the detected drives present
on the system, in user mode? (physicaldrive0, physicaldrive1 & so on…)

Thanks in advance…
Vipul.