Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Edit the Enum Section of the registry

Edit the Enum Section of the registry

Scheduled Pinned Locked Moved C / C++ / MFC
questionwindows-admin
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tareqsiraj
    wrote on last edited by
    #1

    Hi all, I'm developing a filter driver for an audio device and for installation, i'm using and custom made application instead of an inf. For installing the filter driver, I need to insert the service name into the HKLM\CurrentControlSet\Enum\\\. But as i understand, this is a protected area of windows registry and needs permission to be added for the current user. How do i do this in my program? RegOpenKeyEx() fails opening this key. Something like this has been done in an application i ran across a couple of weeks ago (cant seem to find it right now... i think it was from numega). Is there any other suggestions on installing the filter driver? thank you. -Tareq

    A 1 Reply Last reply
    0
    • T tareqsiraj

      Hi all, I'm developing a filter driver for an audio device and for installation, i'm using and custom made application instead of an inf. For installing the filter driver, I need to insert the service name into the HKLM\CurrentControlSet\Enum\\\. But as i understand, this is a protected area of windows registry and needs permission to be added for the current user. How do i do this in my program? RegOpenKeyEx() fails opening this key. Something like this has been done in an application i ran across a couple of weeks ago (cant seem to find it right now... i think it was from numega). Is there any other suggestions on installing the filter driver? thank you. -Tareq

      A Offline
      A Offline
      Antti Keskinen
      wrote on last edited by
      #2

      Have you tried installing the filter driver by using an .inf file ? Why can't you use the .inf file ? I believe you can't write to this area of the registry directly, but your application could try calling RegSrv32 to register the filter driver from it's DLL when it is started, and removing it upon exit ? Leaving it there is also an option, and you might write a setup program that registers the filter driver if it is not yet registered. And remove it when the application is removed from a system. If you find the name of the application you mentioned, post it here as well. -Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.

      T 2 Replies Last reply
      0
      • A Antti Keskinen

        Have you tried installing the filter driver by using an .inf file ? Why can't you use the .inf file ? I believe you can't write to this area of the registry directly, but your application could try calling RegSrv32 to register the filter driver from it's DLL when it is started, and removing it upon exit ? Leaving it there is also an option, and you might write a setup program that registers the filter driver if it is not yet registered. And remove it when the application is removed from a system. If you find the name of the application you mentioned, post it here as well. -Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.

        T Offline
        T Offline
        tareqsiraj
        wrote on last edited by
        #3

        Found this source code that gives you the key for the enum section or subsections. Now looking for a way to be able to write there. http://www.sysinternals.com/ntw2k/source/accessenum.shtml[^] -Tareq

        1 Reply Last reply
        0
        • A Antti Keskinen

          Have you tried installing the filter driver by using an .inf file ? Why can't you use the .inf file ? I believe you can't write to this area of the registry directly, but your application could try calling RegSrv32 to register the filter driver from it's DLL when it is started, and removing it upon exit ? Leaving it there is also an option, and you might write a setup program that registers the filter driver if it is not yet registered. And remove it when the application is removed from a system. If you find the name of the application you mentioned, post it here as well. -Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.

          T Offline
          T Offline
          tareqsiraj
          wrote on last edited by
          #4

          Got it to work using SetupDiSetDeviceRegistryProperty() ... didnt know of this. -Tareq

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups