WMI lets you do this without knowing the key by specifying
WMIREG_FLAG_INSTANCE_PDO when you register the instance with wmi
d
"Kid" wrote in message
news:BD52F2E4-99C0-4CD0-AE27-...
But I found root\wmi Monitor Brightness event use hardware key path based
name as its instance
ID, do you know how can they approach it ?
What do you mean create an interface , which function can I use ?
I would like to use the software key as my instance ID, it is unique too and
we can get it by
WdfDeviceAllocAndQueryProperty function with
property=DevicePropertyDriverKeyName .
How do you think about software key ?
"Maxim S. Shatskih" wrote:
> > Is there some way to get device key (hardware key) path in kernel mode ?
>
> No ways.
>
> For instance IDs, create a device interface on your device and use its
> string as an ID, this is the classic way.
>
> --
> Maxim S. Shatskih
> Windows DDK MVP
>
> http://www.storagecraft.com
>
> .
>