Hi, All!
The second parameter of AddDevice routine is, of course,
the “PhysicalDeviceObject”. This Physical device object has
its own key in the registry.
I don’t know registry key name corresponding to the physical device
object.
What is the simpliest way to obtain the name of this key
from “middlestack” driver AddDevice routine?
Actually I have only pointer to DEVICE_OBJECT of the physical
device object and the name of the service key in the registry for
my own driver.
Thanks for any suggestions.
SH.
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
Sorry to trouble you.
I have found the answer.
IoOpenDeviceRegistryKey(…);
SH.
From: “Shaggy Head”
>Reply-To: “NT Developers Interest List”
>To: “NT Developers Interest List”
>Subject: [ntdev] Parameters from W2k registry.
>Date: Tue, 25 Jun 2002 15:19:47 +0400
>
>Hi, All!
>The second parameter of AddDevice routine is, of course,
>the “PhysicalDeviceObject”. This Physical device object has
>its own key in the registry.
>I don’t know registry key name corresponding to the physical device
>object.
>What is the simpliest way to obtain the name of this key
>from “middlestack” driver AddDevice routine?
>Actually I have only pointer to DEVICE_OBJECT of the physical
>device object and the name of the service key in the registry for
>my own driver.
>Thanks for any suggestions.
>SH.
>
>
>Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
>
>
>—
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to %%email.unsub%%
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
> The second parameter of AddDevice routine is, of course,
the “PhysicalDeviceObject”. This Physical device object has
its own key in the registry.
I don’t know registry key name corresponding to the physical device
object.
What is the simpliest way to obtain the name of this key
from “middlestack” driver AddDevice routine?
You do not need the name, just call IoOpenDeviceRegistryKey.
Max