Prev: OpenDesktop in a Windows service fails, GetLastError returns183
Next: VS 2008 - NMAKE : : macro '$@' is illegal in the context of batchrule '.c.obj'
From: Alex on 2 Apr 2008 10:36 Hi, i have enumerated "PhysicalDriveX" in CreateFile then i have tested returned value but i would find a kind of function which gives number of physical hard drives or handles to physical drive
From: Alex on 2 Apr 2008 10:42 Hi, which information can i obtain with IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS coz i need the name of hard drive too)) thanks
From: Kellie Fitton on 2 Apr 2008 11:46 On Apr 2, 7:42 am, Alex <h4cker_...(a)hotmail.com> wrote: > Hi, > which information can i obtain with IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS > coz i need the name of hard drive too)) > thanks Hi, You can use the following WMI class to get the name of the disk drive manufacturer: Win32_DiskDrive http://msdn2.microsoft.com/en-us/library/aa394132(VS.85).aspx Kellie.
From: Christian ASTOR on 2 Apr 2008 12:48 On 2 avr, 15:16, Alex <h4cker_...(a)hotmail.com> wrote: > I want to list all physical drives on my machine... > anybody knows how to do this? > > (win32 api, c++) SetupDiGetClassDevs() with &DiskClassGuid -SetupDiEnumDeviceInfo()- SetupDiGetDeviceRegistryProperty()...
From: Boris on 3 Apr 2008 01:34
"Alex" <h4cker_rus(a)hotmail.com> wrote in message news:ft013m$e81$1(a)aioe.org... > Hello! > I want to list all physical drives on my machine... > anybody knows how to do this? > > > (win32 api, c++) WMI: Win32_DiskDrive - just call WMI from C++ - it's just COM API. Boris |