Read Registry value

This is a discussion on Read Registry value within the Windows Programming forums, part of the Platform Specific Boards category; I got a problem with reading a value from the registry.Ive check MSDN what function to use, and i tried ...

Read Registry value

I got a problem with reading a value from the registry.Ive check MSDN what function to use, and i tried RegGetValue, RegQueryalueEx, but RegGetValue is declared, and RegQueryValue returns something what is not right.What function do i need to use?