none
Read/write to device specifc Registry setting RRS feed

  • Question

  •  Driver related question  so perhaps not the best forum....

    An existing driver is configured by data found in HKLM\System\CurrentControlset\Enum registry entry for the device This data can be manipulated by a control panel application the vendor also provides. I would like to create a user mode application that could read/write some additional data in that same registry entry. I realize the Enum branch is special and protected, API's like SetupDiOpenDevRegKey() seem to be for device drivers and not available in a user mode app.

    Is there support for a user mode app to read/write in this Enum registry branch?


    Thursday, October 25, 2012 9:42 PM

Answers

  • SetupDiOpenRegKey is for user space, your user mode application can use this API.


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    Thursday, October 25, 2012 9:46 PM

All replies

  • SetupDiOpenRegKey is for user space, your user mode application can use this API.


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    Thursday, October 25, 2012 9:46 PM
  • thanks. My user mode app already exists, a VS 2008 project, which I would like to extend.  I see SetupDiOpenRegKey in the WDK help, what sort of application do I need to write to be able to use SetupDiOpenRegKey, a user mode driver built in WDK environment?
    Thursday, October 25, 2012 10:02 PM
  • Your VS2008 stuff will work fine.  You will need to add the libraries and include files.


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    Thursday, October 25, 2012 10:21 PM