remove registry entries under Enum in Win2k

Hi,

Can any body tell me how to remove registry entries under
local_machine\currentControlSet\Enum in Win2k? Looks win2k has some security
stuff and doesn’t allow an app to remove some registries as easy as in
Win9x.

thanks

James

> Can any body tell me how to remove registry entries under

local_machine\currentControlSet\Enum in Win2k? Looks win2k has some
security
stuff and doesn’t allow an app to remove some registries as easy as in
Win9x.

You must use regedt32.exe and change the security permission before you can make
any changes.

mathias

From what I understood, there should be no reason why you need to delete
these keys.

What do you want to delete registry entries under the \enum key?

For those registry entries added by your program. You could use a
Co-Installer ( Documented in the DDK ) to manually delete the entries
created by your install program. The Co-Install uses API calls that have
sufficient privileges.

KeithGa

-----Original Message-----
From: Zhou, James [mailto:xxxxx@asia.adaptec.com]
Sent: Wednesday, March 22, 2000 2:38 AM
To: NT Developers Interest List
Subject: [ntdev] remove registry entries under Enum in Win2k

Hi,

Can any body tell me how to remove registry entries under
local_machine\currentControlSet\Enum in Win2k? Looks win2k has some security
stuff and doesn’t allow an app to remove some registries as easy as in
Win9x.

thanks

James


You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

KeithGa,

Thanks for the help.

The reason I am doing this is that sometimes users would screw up the system
and need some tools to clean up.

James

-----Original Message-----
From: Keith Garner [mailto:xxxxx@microsoft.com]
Sent: Wednesday, March 22, 2000 3:43 PM
To: NT Developers Interest List
Cc: ‘xxxxx@asia.adaptec.com’
Subject: [ntdev] RE: remove registry entries under Enum in Win2k

From what I understood, there should be no reason why you need to delete
these keys.

What do you want to delete registry entries under the \enum key?

For those registry entries added by your program. You could use a
Co-Installer ( Documented in the DDK ) to manually delete the entries
created by your install program. The Co-Install uses API calls that have
sufficient privileges.

KeithGa

-----Original Message-----
From: Zhou, James [mailto:xxxxx@asia.adaptec.com]
Sent: Wednesday, March 22, 2000 2:38 AM
To: NT Developers Interest List
Subject: [ntdev] remove registry entries under Enum in Win2k

Hi,

Can any body tell me how to remove registry entries under
local_machine\currentControlSet\Enum in Win2k? Looks win2k has some security
stuff and doesn’t allow an app to remove some registries as easy as in
Win9x.

thanks

James


You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)


You are currently subscribed to ntdev as: xxxxx@asia.adaptec.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

Well if you’re developing pnp products, the only documented procedure for
cleaning up the enum key is to do a clean install of NT, which is a bit of
overkill when you really just want to clean out cruft left by your earlier
attempts to get things right.

I learned that you need only change the security on the Enum Key itself, and
that in turn cascades down throughout the subtree. Works for me.

-----Original Message-----
From: Keith Garner [mailto:xxxxx@microsoft.com]
Sent: Wednesday, March 22, 2000 6:43 PM
To: NT Developers Interest List
Cc: ‘xxxxx@asia.adaptec.com’
Subject: [ntdev] RE: remove registry entries under Enum in Win2k

From what I understood, there should be no reason why you
need to delete
these keys.

What do you want to delete registry entries under the \enum key?

For those registry entries added by your program. You could use a
Co-Installer ( Documented in the DDK ) to manually delete the entries
created by your install program. The Co-Install uses API
calls that have
sufficient privileges.

KeithGa

-----Original Message-----
From: Zhou, James [mailto:xxxxx@asia.adaptec.com]
Sent: Wednesday, March 22, 2000 2:38 AM
To: NT Developers Interest List
Subject: [ntdev] remove registry entries under Enum in Win2k

Hi,

Can any body tell me how to remove registry entries under
local_machine\currentControlSet\Enum in Win2k? Looks win2k
has some security
stuff and doesn’t allow an app to remove some registries as easy as in
Win9x.

thanks

James


You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)


You are currently subscribed to ntdev as: xxxxx@stratus.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

While we’re on the subject, does anyone know what the ‘Enum’ key is for.
What does it do, why is it there?

“Roddy, Mark”

com> cc:
Sent by: Subject: [ntdev] RE: remove registry entries under Enum in Win2k
xxxxx@lis
ts.osr.com

23/03/00 13:17
Please respond to
“NT Developers
Interest List”

Well if you’re developing pnp products, the only documented procedure for
cleaning up the enum key is to do a clean install of NT, which is a bit of
overkill when you really just want to clean out cruft left by your earlier
attempts to get things right.

I learned that you need only change the security on the Enum Key itself,
and
that in turn cascades down throughout the subtree. Works for me.

> -----Original Message-----
> From: Keith Garner [mailto:xxxxx@microsoft.com]
> Sent: Wednesday, March 22, 2000 6:43 PM
> To: NT Developers Interest List
> Cc: ‘xxxxx@asia.adaptec.com’
> Subject: [ntdev] RE: remove registry entries under Enum in Win2k
>
>
> From what I understood, there should be no reason why you
> need to delete
> these keys.
>
> What do you want to delete registry entries under the \enum key?
>
> For those registry entries added by your program. You could use a
> Co-Installer ( Documented in the DDK ) to manually delete the entries
> created by your install program. The Co-Install uses API
> calls that have
> sufficient privileges.
>
> KeithGa
>
> -----Original Message-----
> From: Zhou, James [mailto:xxxxx@asia.adaptec.com]
> Sent: Wednesday, March 22, 2000 2:38 AM
> To: NT Developers Interest List
> Subject: [ntdev] remove registry entries under Enum in Win2k
>
>
> Hi,
>
> Can any body tell me how to remove registry entries under
> local_machine\currentControlSet\Enum in Win2k? Looks win2k
> has some security
> stuff and doesn’t allow an app to remove some registries as easy as in
> Win9x.
>
> thanks
>
> James
>
> —
> You are currently subscribed to ntdev as: xxxxx@microsoft.com
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>
> —
> You are currently subscribed to ntdev as: xxxxx@stratus.com
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>


You are currently subscribed to ntdev as: xxxxx@normanuk.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

> While we’re on the subject, does anyone know what the ‘Enum’ key is for.

What does it do, why is it there?

A PnP device list.

Max

But there are services in there as well as devices. What does PnP have to
do with services?

Is there any MS documentation on the Enum key anywhere?

Simon.

“Maxim S. Shatskih”

com> cc:
Sent by: Subject: [ntdev] RE: remove registry entries under Enum in Win2k
xxxxx@lis
ts.osr.com

24/03/00 07:08
Please respond to
“NT Developers
Interest List”

> While we’re on the subject, does anyone know what the ‘Enum’ key is for.
> What does it do, why is it there?

A PnP device list.

Max


You are currently subscribed to ntdev as: xxxxx@normanuk.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

> But there are services in there as well as devices. What does PnP have to

do with services?

This was a legacy from some very strange elements of PnP in NT4.
No services in Enum on Win98.

Is there any MS documentation on the Enum key anywhere?

No. But - IoOpenDeviceRegistryKey() for PLUGPLAY_REGKEY_DEVICE
will open the key under the Enum.
The syntax is Enum\enumerator\device\instance - this is a device registry
key.

Max