Timo Kreuzer wrote:
Ok, first thanks for all The replies. It has in fact nothing to do with the presence of the Keys. I have written the appearance page of the desk.cpl, it set's the colors and writes the correct values to HKLM\Control Panel\Colors (at least on WinXP)
I just couldn't open the CurrentUserkey.
Yes, that's what I've been trying to tell the others. I guess they had a slow day and were lost watching TV or something.
@Alex: I didn't ignore you, I answered to Ged's post, that I will try to find out as soon, as I get a debug-version running. But I have found the error already: I exidently called my function from a place where there's probably no user logged on. I changed this and try a different implementation with RtlQueryRegistryValues, wich is better here.
That's exactly why you should've just done what I said. I was expecting this was the problem, and based on your print I could've told you the solution. Oh well, glad you got it working.
Best regards, Alex Ionescu