Using advapi32.dll:LogonUserA() to impersonate a remote machine's local user
问题 I need to be able to run RegLoadKey() on a remote machine, and it may be that my machine and the remote machine are not in the same domain. If they are, the below code works OK and I can impersonate a user that has admin privileges on the machine. Otherwise, if we're talking about local users, according to this discussion I found... http://www.eggheadcafe.com/conversation.aspx?messageid=34224301&threadid=34224226 ...There has to be a local user on my machine with the same username and