CM_Create_DevNode() & PCI\HW_ID\Instance

As part of a driver installation App, I want to create the reg entry
for a PCI adapter on Win98. My understanding is that a correct entry
in the Enum\PCI is essential & should have the ID as
“Enum\PCI\HW_ID\Instance”.

The problem here is that the ‘Instance’ in the ID above is dependant on
the slot & as such is not available beforehand. How does one obtain this
information at run time (before the driver is installed) for a PnP device?

Also CM_Create_DevNode() needs the Parent dev node as well. How do we get
it?

Any info would be greatly appreciated.

Thanks.

Still a very bad idea! Even if it is used on Win98 only.


Udo Eberhardt
Thesycon GmbH, Germany
xxxxx@thesycon.de
www.thesycon.de

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of xxxxx@hotmail.com
Sent: Tuesday, January 28, 2003 5:58 PM
To: NT Developers Interest List
Subject: [ntdev] CM_Create_DevNode() & PCI\HW_ID\Instance

As part of a driver installation App, I want to create the reg entry
for a PCI adapter on Win98. My understanding is that a correct entry
in the Enum\PCI is essential & should have the ID as
“Enum\PCI\HW_ID\Instance”.

The problem here is that the ‘Instance’ in the ID above is
dependant on
the slot & as such is not available beforehand. How does one obtain this
information at run time (before the driver is installed) for a PnP device?

Also CM_Create_DevNode() needs the Parent dev node as well.
How do we get
it?

Any info would be greatly appreciated.

Thanks.


You are currently subscribed to ntdev as: xxxxx@thesycon.de
To unsubscribe send a blank email to xxxxx@lists.osr.com