Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Wed, 02 Apr 2008 10:05:15 +0200,    group: microsoft.public.win32.programmer.gdi        back       


List Physical Drives (c++ | WINAPI)   
Hello!
I want to list all physical drives on my machine...
anybody knows how to do this?


(win32 api, c++)
date: Wed, 02 Apr 2008 10:05:15 +0200   author:   CAHEK

Re: List Physical Drives (c++ | WINAPI)   
On Apr 2, 1:05 am, CAHEK  wrote:
> Hello!
> I want to list all physical drives on my machine...
> anybody knows how to do this?
>
> (win32 api, c)


Hi,

You can use the following APIs to get the currently available disk
drives on your machine:

	GetLogicalDrives()

	GetLogicalDriveStrings()

	GetDriveType()

http://msdn2.microsoft.com/en-us/library/aa364972.aspx

http://msdn2.microsoft.com/en-us/library/aa364975.aspx

http://msdn2.microsoft.com/en-us/library/aa364939.aspx

Kellie.
date: Wed, 2 Apr 2008 07:33:40 -0700 (PDT)   author:   Kellie Fitton

Re: List Physical Drives (c++ | WINAPI)   
CAHEK wrote:
> Hello!
> I want to list all physical drives on my machine...
> anybody knows how to do this?
>
>
> (win32 api, c++)

You're looking for the list that shows up in Device Manager, right?

SetupDi* will do that, perhaps SetupDiCreateDeviceInfoList is what you are 
looking for
date: Mon, 7 Apr 2008 12:08:39 -0500   author:   Ben Voigt [C++ MVP] am

Re: List Physical Drives (c++ | WINAPI)   
Hi!
Could u explain me how can i filter medias for display
just hard drives? I can't find any exemple and i never uded
SedupDi functions...
date: Tue, 08 Apr 2008 10:36:55 +0200   author:   CAHEK

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us