Well I did more searching on the function. The RegQueryValue() will only return you the DEFAULT value of a key and not the others. I've found a post on this forum that might help you. I've experimented with it and it worked but need a little tweaking to what you want. Anyway, check it out:
http://www.codeguru.com/cgi-bin/bbs/...age=0&Limit=25

-Cool Bizs