Registry Confusion

Just starting out? Need help? Post your questions and find answers here.
Summers
User
User
Posts: 15
Joined: Tue Sep 30, 2003 3:20 pm

Registry Confusion

Post by Summers »

If I may just use some of Paul's code:

result.l=WriteRegKey(#HKEY_LOCAL_MACHINE,"SOFTWARE\Test Program Name","Test","TestValue")

The problem I have, and not just seen in the above example - is the naming of each part. Above, and according to the comments in the file, is that "Software\etc..." is the KEY, "Test" is the SubKey and "TestValue" is the value. According to my RegEdit 8) "Software" is the Key, leading through a heap of SubKeys if required, "Software\something\else\here" so "Test" becomes "String Value" and "TestValue" becomes "Value Data"

Hope someone is following this... 8O
Basically RegEdit doesn't seem to name them as coders do.
Who is right, or am I totally reading every wrong?

On a side note, any reference to DelRegKey i see in snippets seems to only allow 2 parameters, eg:

DelRegKey(#HKEY_LOCAL_MACHINE,"SOFTWARE\Test")

Which effectively wipes out a whole key and not a single value contained within a key..?