Ok, I see. Trying to write code to use across windows version now there is a headache. Personally I try and stay away from the registry. And wasn't Microsoft suppose to be moving away from the registry with Vista on. Or did that not happen?
Anyway, I'd probably write two function StringFromRegKey and RegKeyFromString which would basically be your if statement.
If the registry key values are imported from a MS dll then the will probably stay the same across version. They are pretty good about not changing the lower level stuff like that.
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick
|