private static void ObserveThread()
 {
     Win32Wrapper.OutputDebugString("[ChangeClipboardService] start thread");
     while (true)
     {
         if (Clipboard.ContainsText())
         {
             driveToUNC(Clipboard.GetText());
         }
         Thread.Sleep(50);
     }
 }
Exemple #2
0
 protected override void OnStop()
 {
     thread.Abort();
     Win32Wrapper.OutputDebugString("[ChangeClipboardService] OnStop");
 }
Exemple #3
0
 protected override void OnStart(string[] args)
 {
     Win32Wrapper.OutputDebugString("[ChangeClipboardService] OnStart");
     thread.Start();
 }
 private static string driveToUNC(string path)
 {
     Win32Wrapper.OutputDebugString("[ChangeClipboardService] get " + path);
     return(null);
 }
 public static void StartObserving()
 {
     Win32Wrapper.OutputDebugString("[ChangeClipboardService] start observing");
     ObserveThread();
 }
 private void serviceProcessInstaller1_AfterInstall(object sender, InstallEventArgs e)
 {
     Win32Wrapper.OutputDebugString("[ChangeClipboardSercive] Process Installed");
 }