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. read write and delete from the registry

read write and delete from the registry

Scheduled Pinned Locked Moved C / C++ / MFC
c++windows-adminquestion
4 Posts 4 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.
  • L Offline
    L Offline
    locoone
    wrote on last edited by
    #1

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control] "WaitToKillServiceTimeout"="5000" how would i make that write to the registry then read or delete it? i know i can make a .reg file but i want to use a dialog and check boxes. i am using vc++ (mfc) :~ -- modified at 22:20 Sunday 12th February, 2006

    _ L T 3 Replies Last reply
    0
    • L locoone

      [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control] "WaitToKillServiceTimeout"="5000" how would i make that write to the registry then read or delete it? i know i can make a .reg file but i want to use a dialog and check boxes. i am using vc++ (mfc) :~ -- modified at 22:20 Sunday 12th February, 2006

      _ Offline
      _ Offline
      _AnsHUMAN_
      wrote on last edited by
      #2

      Have a look at RegQueryValueEx and RegOpen.....functions Pass the [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control] to open the registry and RegSetValueEx to get and set the values Wishes. Anshuman Dandekar Dare to Dream, Care to Achieve.............

      1 Reply Last reply
      0
      • L locoone

        [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control] "WaitToKillServiceTimeout"="5000" how would i make that write to the registry then read or delete it? i know i can make a .reg file but i want to use a dialog and check boxes. i am using vc++ (mfc) :~ -- modified at 22:20 Sunday 12th February, 2006

        L Offline
        L Offline
        LivingThoughts
        wrote on last edited by
        #3

        hi also check out http://www.codeproject.com/system/akregistryex.asp[^] http://www.codeproject.com/system/simple_registry.asp[^] http://www.codeproject.com/system/registryvars.asp[^] good luck


        ۞It is on our failures that we base a new and different and better success.

        1 Reply Last reply
        0
        • L locoone

          [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control] "WaitToKillServiceTimeout"="5000" how would i make that write to the registry then read or delete it? i know i can make a .reg file but i want to use a dialog and check boxes. i am using vc++ (mfc) :~ -- modified at 22:20 Sunday 12th February, 2006

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

          try CRegKey class .. it very easy to use

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          cheers, Alok Gupta VC Forum Q&A :- I/ IV

          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