Not sure though why you would need to scan the registry if you know the specific location of the value and the key.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.