QueryDosDevice

Hi

Environment:

  • Windows Server 2003 x64 Enterprise Edition
  • Server is connected to a RAID Subsystem that has 256 LUs.

I am calling QueryDosDevice (win32 api) function from VC program to
get all physicaldrives (First parameter is NULL).

QueryDosDevice returns only 173 PhysicalDrive (not in serial order)
information. I am expecting QueryDosDevice to return all 256 PhysicalDrive
information.

I checked the buffer size passed to QueryDosDevice. It is
32Kbyte. Enough size. QueryDosDevice return value is 23612.

But If I pass “\.\physicaldrive255” (this is not returned with NULL as
a first parameter) as first parameter then it returns correct info.

MMC (Disk Manager) is showing all 256 disks.

Is there any known issue for QueryDosDevice?

How to get all the 256 disks with NULL as a first parameter to
QueryDosDevice function?

Thanks,
KPR