Getting the key of a directory in the registry
How to get the key of a especific directory in the registry of windows XP?
I'm using Delphi
HKEY_CURRENT_USER\Software\Microsof开发者_如何学运维t\Windows\ShellNoRoam\Bags
There are no directories in the registry. The registry contains keys and values. The values have names and data. The keys are like directories, though.
If you want to inspect the contents of a key, you can use the TRegistry
class. Set its RootKey
property to HKey_Current_User
, and use its OpenKeyReadOnly
method to open the subkey. Then you can use the various Read
methods to read the data of any value.
If you're not sure what the type is of a data entry, you can use the GetDataType or
GetDataInfo` methods.
To read a list of all the data entries' names, you can use GetValueNames
.
All of those are documented in the help, and now that you know their names, it should be easier for you to find many examples.
精彩评论