Logging in to different domain using LogonUser API

31 views Asked by At

Calling LogonUser before a Winforms application starts running. So if the credentials are correct the application starts and if they are wrong the application wont start.

So this working fine with the user credentials for the domain my system belongs to. I was trying to make this work for a different user in a different domain by entering username in the format domain\username or username@domain. But its not working. Please suggest the right way to implement this.

0

There are 0 answers