I am trying to read data from registry using RegQueryValueEx API, the return value is ERROR_NOT_FOUND always! I don't know what's wrong. I managed to open the desired Key and retrieve its handle using RegOpenKeyEx API. How can I solve this?! I am coding in VB, any help?