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