Closed Thread
Results 1 to 7 of 7

Thread: Deleting a subkey from the registry

  1. #1
    reniery is offline Learning Programmer
    Join Date
    May 2008
    Posts
    45
    Rep Power
    0

    Deleting a subkey from the registry

    The registry for my small app looks kinda like this

    entry1 reg_sz value1
    entry2 reg_sz value2
    entry3 reg_sz value3

    How would I delete one of this subkeys ?

    So that this would be the result

    entry1 reg_sz value1
    entry3 reg_sz value3

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    May 2008
    Posts
    2,126
    Blog Entries
    1
    Rep Power
    33

    Re: Deleting a subkey from the registry

    You are intermingling the term subkey and values together. Are those three values, heiarchial in relation to eachother? Did you mean to put values, or did you actually want keys? Are they on the same level? Be more specific.

  4. #3
    reniery is offline Learning Programmer
    Join Date
    May 2008
    Posts
    45
    Rep Power
    0

    Re: Deleting a subkey from the registry

    yea sorry i meant value, and the 3 values belong to the same subkey

    So what i want to do is delete one of the values

  5. #4
    Join Date
    May 2008
    Posts
    2,126
    Blog Entries
    1
    Rep Power
    33

    Re: Deleting a subkey from the registry

    Use... RegOpenKeyEx() , RegDeleteValue() , and RegCloseKey()

    Next time use google and msdn you would have found the answer in 2 minutes.

  6. #5
    reniery is offline Learning Programmer
    Join Date
    May 2008
    Posts
    45
    Rep Power
    0

    Re: Deleting a subkey from the registry

    I did .... well sorry if my question annoyed you ... but thanks the thing I was confused about was with the terms subkeys and values

  7. #6
    Join Date
    May 2008
    Posts
    2,126
    Blog Entries
    1
    Rep Power
    33

    Re: Deleting a subkey from the registry

    It's alright. A subkey is like the little folder icons, they form the tree in the registry. Values are the actual data that is entered into subkeys.


    It's Something Like This.
    HKLM---
    |
    |
    -SubKey_1-
    |
    |
    -Subkey_2---> Value_1
    |
    |
    -SubKey_3

    *More of a staircase shape though, the spaces didn't carry over into my post. lol

  8. #7
    reniery is offline Learning Programmer
    Join Date
    May 2008
    Posts
    45
    Rep Power
    0

    Re: Deleting a subkey from the registry

    hey thanks I search google now looking how to delete values

    So that problem is solved thanks

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Registry hex to text?
    By ahmed in forum The Lounge
    Replies: 5
    Last Post: 08-09-2011, 05:37 PM
  2. How do i add the following registry keys
    By iluxon4ik in forum General Programming
    Replies: 2
    Last Post: 03-11-2010, 05:54 PM
  3. Registry Watching
    By dargueta in forum Software Security
    Replies: 4
    Last Post: 03-30-2009, 04:51 PM
  4. About EnableDHCP registry
    By chesschi in forum Managed C++
    Replies: 1
    Last Post: 01-11-2009, 10:28 PM
  5. Registry?
    By MarkA in forum Linux/Unix General
    Replies: 5
    Last Post: 12-10-2008, 05:15 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts