Ejemplo n.º 1
0
        private void Rdp_OnFatalError(object sender, AxMSTSCLib.IMsTscAxEvents_OnFatalErrorEvent e)
        {
            //0
            //An unknown error has occurred.
            //1
            //Internal error code 1.
            //2
            //An out-of - memory error has occurred.
            //3
            //A window-creation error has occurred.
            //4
            //Internal error code 2.
            //5
            //Internal error code 3.This is not a valid state.
            //6
            //Internal error code 4.
            //7
            //An unrecoverable error has occurred during client connection.
            //100
            //Winsock initialization error.

            var rdp = (AxMSTSCLib.AxMsRdpClient9NotSafeForScripting)sender;

            rdp.DisconnectedText = "连接已断开,错误码: " + e.errorCode.ToString();
        }
Ejemplo n.º 2
0
 private void m_rdpview_OnFatalError(object sender, AxMSTSCLib.IMsTscAxEvents_OnFatalErrorEvent e)
 {
     Console.WriteLine("m_rdpview_OnLogonError");
     Application.Exit();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Event-Methode:
 /// Wenn ein Fehler aufgetreten ist
 /// </summary>
 private void rdp_OnFatalError(object sender, AxMSTSCLib.IMsTscAxEvents_OnFatalErrorEvent e)
 {
     LOG.StoreErrorRdpLogMessage("Rdp-ActiveX-Control: An FatalError has been appeared - Error-Code: " + e.errorCode.ToString());
     DEBUG.ShowMessageInConsole("Rdp-ActiveX-Control: An FatalError has been appeared - Error-Code: " + e.errorCode.ToString(), DEBUG.DebugMessageType.Error);
 }
Ejemplo n.º 4
0
 private void m_rdpview_OnFatalError(object sender, AxMSTSCLib.IMsTscAxEvents_OnFatalErrorEvent e)
 {
     File.AppendAllText(@"d:\1.log", "m_rdpview_OnFatalError");
 }
Ejemplo n.º 5
0
 private void RdpConnection_OnFatalError(object sender, AxMSTSCLib.IMsTscAxEvents_OnFatalErrorEvent e)
 {
     Console.WriteLine("RdpConnection_OnFatalError: " + e.errorCode);
     Connecting = false;
 }
Ejemplo n.º 6
0
 //*************************************************************************************************************
 private void rdpControl_OnFatalError(object sender, AxMSTSCLib.IMsTscAxEvents_OnFatalErrorEvent e)
 {
     loadingCircle1.Active  = false;
     loadingCircle1.Visible = false;
 }
Ejemplo n.º 7
0
 private void RDCClient_OnFatalError(object sender, AxMSTSCLib.IMsTscAxEvents_OnFatalErrorEvent e)
 {
     MessageBox.Show(this, "Fatal error", "Error");
 }
Ejemplo n.º 8
0
 void axMsRdpClient71_OnFatalError(object sender, AxMSTSCLib.IMsTscAxEvents_OnFatalErrorEvent e)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 9
0
 private void axMsRdpClient9NotSafeForScripting1_OnFatalError(object sender, AxMSTSCLib.IMsTscAxEvents_OnFatalErrorEvent e)
 {
     MessageBox.Show(e.errorCode.ToString());
 }