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.

Re: IoOpenDeviceRegistryKey fails during StartDevice by Maxim

Maxim
Thu May 18 09:13:42 CDT 2006

> ntStatus = IoOpenDeviceRegistryKey(
> pDeviceObject,

This device object must be a PDO.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com