コード例 #1
0
 public void MyThreadFunc()   //thread'imize gösterdiğimiz fonksiyon
 {
     while (true)             //thread sürekli çalışsın
     {
         Thread.Sleep(10000); //10 saniye bekleme süresi
         if (kontrol.Equals("1"))
         {
             CreateProcessAsUserWrapper.LaunchChildProcess(@"C:\Users\Acer\Desktop\ileriProgramlamaFinalProje\bildirim\bildirim\bin\Debug\bildirim.exe");
         }
     }
 }
コード例 #2
0
        // This thread function would launch a child process
        // in the interactive session of the logged-on user.
        public static void MyThreadFuncStop()
        {
            // System.Diagnostics.Debugger.Launch();

            CreateProcessAsUserWrapper.LaunchChildProcess(AppDomain.CurrentDomain.BaseDirectory + "ScreenCaptureServiceHelper.exe", "-q"); //"C:\\Windows\\notepad.exe");
        }
コード例 #3
0
 public static void StartRInstances_SeparateProcess(string strFileName)
 {
     // Start the R process
     CreateProcessAsUserWrapper.LaunchChildProcess(strFileName, null);
 }