I wrote a bunch of unit tests to cover the windows registry reading/writing. They use the CRegKey ATL api.
These worked fine on my desktop machine of XP Pro, but when the tests came to run on the build machine - a Windows 2008 x64 Server - the tests fail with ERROR_ACCESS_DENIED
when trying to create a key via Create.
The user who is logged into the build machine belongs to the administrator group.
Google brings up a list of how to create a registry in notepad and msdn keeps giving me missing pages when I click on links.
What I need to know is what I need to do enable the tests to pass when running on the server? I guess it requires security attributes but I have never delved into this so I don't know where to begin. Any help would be appreciated.