Hi. I have developed disk filter driver and I could monitor disk I/Os finally.
My disk filter driver is attached to “HKLM\System\CurrentControlSet\Control\Class{4D36E967-E325-11CE-BFC1-08002BE10318}” as UpperFilters. (This class is DiskDrive)
However I cannot figure out which physical drive number X is being monitored.
I logged some properties of the attached device in EvtDriverDeviceAdd function.
DriverKeyName: \Device\0000006a
Manufacturer: (Standard disk drives)
FriendlyName: VMware, VMware Virtual S SCSI Disk Device
LocationInformation: Bus Number 0, Target Id 1, LUN 0
PhysicalDeviceObjectName: {4d36e967-e325-11ce-bfc1-08002be10318}\0001
This device is \.\PhysicalDrive1
I guessed that “0001” is physical drive number but it was wrong.
How can I convert or get this device to \.\PhysicalDriveX ?
Thank you.