Get the pDO of a non pnp device

Does a non pnp device have a pDO?
If true, how can I get it from my driver?
I need to access the driver key of the device, so I need the pDO.

Jason Tang

> I need to access the driver key of the device, so I need the pDO.

You do not need a PDO for it. Just open CurrentControlSet\Services\YourDriver\Parameters.

Max

The most correct thing you can do is to use the second
paramether to your DriverEntry routine, the RegistryPath.
It is a path to the
\Registry\System\CurrentControlSet\Services\YourServiceKey,
where YourServiceKey is an actual name of the key from where
the driver was started.

Paul

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of jasontang
Sent: Friday, April 19, 2002 6:26 PM
To: NT Developers Interest List
Subject: [ntdev] Get the pDO of a non pnp device

Does a non pnp device have a pDO?
If true, how can I get it from my driver?
I need to access the driver key of the device, so I need the pDO.

Jason Tang


You are currently subscribed to ntdev as: xxxxx@compelson.com
To unsubscribe send a blank email to %%email.unsub%%

you need to be a little careful here as the entry under Services doesn’t
have to correspond to your driver name … users could configure your
driver with any service name.

the registry path for your service entry is handed to the driver in
DriverEntry. It’s not stored in the driver object so you can’t easily
retrieve the service key for another driver without its help, though you
could guess at its service name :slight_smile:

-p

-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Friday, April 19, 2002 12:10 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Get the pDO of a non pnp device

I need to access the driver key of the device, so I need the pDO.

You do not need a PDO for it. Just open
CurrentControlSet\Services\YourDriver\Parameters.

Max


You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to %%email.unsub%%