Hemant Kulkarni
17 years ago
am developing a software where I store the Instance ID of every disk in the
system. How can I get the Instance ID from a disk number? e.g I want Instance
ID of DIsk0 DIsk1 etc.?
here is what I am doing
1] SetupDiClassGuidsFromNameA("DiskDrive",***);
to get the GUID for disk drives
2]SetupDiEnumDeviceInf(***) to enumrate all the disks.This gives me Instance
ID's of all the disks after using SetupDiGetDeviceInstanceId()
but how can I get the device instance ID of spesific disk(like Disk0)?
system. How can I get the Instance ID from a disk number? e.g I want Instance
ID of DIsk0 DIsk1 etc.?
here is what I am doing
1] SetupDiClassGuidsFromNameA("DiskDrive",***);
to get the GUID for disk drives
2]SetupDiEnumDeviceInf(***) to enumrate all the disks.This gives me Instance
ID's of all the disks after using SetupDiGetDeviceInstanceId()
but how can I get the device instance ID of spesific disk(like Disk0)?