Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTDEV

Before Posting...

Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


remove registry entries under Enum in Win2k

OSR_Community_UserOSR_Community_User Member Posts: 110,217
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

Comments

  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    > 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
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    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:[email protected]]
    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: [email protected]
    To unsubscribe send a blank email to $subst('Email.Unsub')
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    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:[email protected]]
    Sent: Wednesday, March 22, 2000 3:43 PM
    To: NT Developers Interest List
    Cc: '[email protected]'
    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:[email protected]]
    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: [email protected]
    To unsubscribe send a blank email to $subst('Email.Unsub')

    ---
    You are currently subscribed to ntdev as: [email protected]
    To unsubscribe send a blank email to $subst('Email.Unsub')
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    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:[email protected]]
    > Sent: Wednesday, March 22, 2000 6:43 PM
    > To: NT Developers Interest List
    > Cc: '[email protected]'
    > 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:[email protected]]
    > 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: [email protected]
    > To unsubscribe send a blank email to $subst('Email.Unsub')
    >
    > ---
    > You are currently subscribed to ntdev as: [email protected]
    > To unsubscribe send a blank email to $subst('Email.Unsub')
    >
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    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
    [email protected]
    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:[email protected]]
    > Sent: Wednesday, March 22, 2000 6:43 PM
    > To: NT Developers Interest List
    > Cc: '[email protected]'
    > 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:[email protected]]
    > 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: [email protected]
    > To unsubscribe send a blank email to $subst('Email.Unsub')
    >
    > ---
    > You are currently subscribed to ntdev as: [email protected]
    > To unsubscribe send a blank email to $subst('Email.Unsub')
    >

    ---
    You are currently subscribed to ntdev as: [email protected]
    To unsubscribe send a blank email to $subst('Email.Unsub')
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    > 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
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    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
    [email protected]
    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: [email protected]
    To unsubscribe send a blank email to $subst('Email.Unsub')
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    > 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
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Writing WDF Drivers 12 September 2022 Live, Online
Internals & Software Drivers 23 October 2022 Live, Online
Kernel Debugging 14 November 2022 Live, Online
Developing Minifilters 5 December 2022 Live, Online