how to get drive list without using COM?
-
hi all, can anybody help me to get physical drive list and details without using the COM. thanks.
Please use GetLogicalDriveStrings() or GetLogicalDrives(). GetDriveType() can be used to get details of the drive. GetDiskFreeSpace() can be used to retreive information about the specified disk, including the amount of free space on the disk.
-
hi all, can anybody help me to get physical drive list and details without using the COM. thanks.
Please use GetLogicalDriveStrings() or GetLogicalDrives().
-
Please use GetLogicalDriveStrings() or GetLogicalDrives(). GetDriveType() can be used to get details of the drive. GetDiskFreeSpace() can be used to retreive information about the specified disk, including the amount of free space on the disk.
-
hi all, can anybody help me to get physical drive list and details without using the COM. thanks.
GetLogicalDrives() enumerates all mounted disk partitions, not physical drives. You can enumerate the drive letters with (or without) GetLogicalDrives, then call QueryDosDevice() to find out which physical drive the letter is mapped to. Alternatively, you can decode the information in the registry at HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices stackoverflow answer.
-
hi all, can anybody help me to get physical drive list and details without using the COM. thanks.
Have you considered
DeviceIoControl(IOCTL_DISK_GET_PARTITION_INFO)
?"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous