I'm building a windows service. I need to write some entries to the registry. I used the SDK functions RegOpenKey, RegSetValue etc...but the registry is not getting updated :-( Thing is that the same piece of code works fine when I run it as an EXE or as a DLL! There is no exceptions thrown also ! Ne idea about this one?