Sometimes the command AmtCallStatus s = computer.Remote.SendRemoteControl(0x11, 0x157, 0x0, 0x0, 0x0, 0x0); doesnt work.
somebody can help me?
This is the code that i use:
AmtSystem computer = Singleton.GetConnection(ip,login,senha);
form.GetLabel().Text = "Conectado";
if (computer == null || computer.State != AmtSystemObjState.Connected || computer.Remote == null)
{
form.GetLabel().Text = "Falha";
return;
}
if (computer.AmtRev == 1) { }
Thread.Sleep(100);
AmtCallStatus s = computer.Remote.SendRemoteControl(0x11, 0x157, 0x0, 0x0, 0x0, 0x0);
if (s == AmtCallStatus.SUCCESS)
{
form.GetLabel().Text = "Comando executado com sucesso";
}
else
{
form.GetLabel().Text = "Comando falhou "+s.ToString();
}
Thread.Sleep(12000);
computer.Disconnect();
Sometimes the command AmtCallStatus s = computer.Remote.SendRemoteControl(0x11, 0x157, 0x0, 0x0, 0x0, 0x0); doesnt work
For more complete information about compiler optimizations, see our Optimization Notice.


