显示详细信息(sysinfo)rdp C#

时间:2017-09-15 11:23:40

标签: c# server rdp

我正在使用AxInterop.MSTSCLib.dll连接虚拟服务器;

try
{
    rdp.Server = txtServer.Text;
    rdp.UserName = txtUserName.Text;

    IMsTscNonScriptable secured = (IMsTscNonScriptable)rdp.GetOcx();
    secured.ClearTextPassword = txtPassword.Text;
    rdp.Connect();
}
catch (Exception Ex)
{
    MessageBox.Show("Error Connecting", "Error connecting to remote desktop " + txtServer.Text + " Error:  " + Ex.Message, MessageBoxButtons.OK, MessageBoxIcon.Error);
}

好吧,现在我想在应用程序中显示硬件规格,是否可能?(如:CPU内核,RAM)

0 个答案:

没有答案