Please I need help about how I can check if the user and the password are correct when login in a remote desktop. I have already write this code to connect but what I really need it's just check if the login is correct.
This is my method:
I'm Using MSTSC Lib
public void test(string sr, string us, string pwd)
{
rdp.Server = sr;
rdp.UserName = us;
IMsTscNonScriptable secured = (IMsTscNonScriptable)rdp.GetOcx();
secured.ClearTextPassword = pwd;
rdp.Connect();
MessageBox.Show(rdp.Connected.ToString());
}
Thanks for your help in advance