Hi everybody!
I need to get data from "Device Parameters" registry key during the
StartDevice to get the number of subdevices I have to install during
this StartDevice call...
I make this call:
ntStatus = IoOpenDeviceRegistryKey(
pDeviceObject,
PLUGPLAY_REGKEY_DEVICE,
STANDARD_RIGHTS_READ,
&hKey);
... but I get a 0xc0000010 (STATUS_INVALID_DEVICE_REQUEST) error.
However pDeviceObject seems to be OK since I am able to create
subdevices later in StartDevice.
Any idea?
Many thanks!
Phil.