Creating a registry key at Device Instance level

Dear Developers,

I want to create a registry key at the Device Instance level each time my
device is connected. i.e., at:

HKLM \ SYSTEM\CurrentControlSet\Enum<pupid><pop inst id>\Device
Parameters

preferably through the INF file used to install the device. My problem is
that the instance ID can change and it can not be explicitly
specified in the INF file.

Is there any way to do this simply? Do I have to write a co-installer to
perform this ?

regards,


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hello,

I’m not familiar with the nomenclature you used below (PupID/PoP Inst ID),
but I suspect the key you want to access is the key that’s used if you
specify HKR in a DDInstall.HW section’s AddReg section. Search the DDK docs
for DDInstall.HW for more information on using this section.

-Tim

Timothy A. Johns — xxxxx@driverdev.com
Driver Development Corporation — 800.841.0092
Bring Up Your Hardware — Fast. www.driverdev.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of
xxxxx@scmmicro.co.in
Sent: Tuesday, May 08, 2001 6:24 AM
To: NT Developers Interest List
Subject: [ntdev] Creating a registry key at Device Instance level

Dear Developers,

I want to create a registry key at the Device Instance level each time my
device is connected. i.e., at:

HKLM \ SYSTEM\CurrentControlSet\Enum<pupid><pop inst id>\Device
> Parameters
>
> preferably through the INF file used to install the device. My problem is
> that the instance ID can change and it can not be
> explicitly
> specified in the INF file.
>
> Is there any way to do this simply? Do I have to write a co-installer to
> perform this ?
>
> regards,
>
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@driverdev.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> Dear Developers,

I want to create a registry key at the Device Instance level each time my
device is connected. i.e., at:

HKLM \ SYSTEM\CurrentControlSet\Enum<pupid><pop inst id>\Device
> Parameters
>
> preferably through the INF file used to install the device. My problem is

The INF file cannot do this at all - it is executed only once when device is
installed, not each time it is connected.
You will need to do this from the driver code by IoOpenDeviceRegistryKey.

Max


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com