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
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.
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
Use... RegOpenKeyEx() , RegDeleteValue() , and RegCloseKey()
Next time use google and msdn you would have found the answer in 2 minutes.
I did .... well sorry if my question annoyed you ... but thanks the thing I was confused about was with the terms subkeys and values
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
hey thanks I search google now looking how to delete values
So that problem is solved thanks
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks