Hi,

My application reads the ProxyServer string value from registry. When I run it directly, by clicking the exe, it works.

But when I run the application as a process that spawns from a service it is not querying values from registry.

RegOpenKeyEx works but RegQueryValueEx is not working and
FormatMessage gives "operation completed successfully".

Why?