I have logged into a machine with a user who is only a domain user, and used
api RegConnectRegistry and then RegOpenKeyEx to query another machine's
registry in the same domain, but RegOpenKeyEx returns access denied. I have
tried giving the local administrator and domain administrator credentials
using NetUseAdd and WNetAddConnection2, but both cannot work.
This only happened in Vista or Windows Server 2008. And only happened when I
logged in with a domain user.
Could anyone help me?