Beispiel #1
0
 void SetText(SetClipboardTextEvent e)
 {
     /* Throwing access violations :/
      * Thread thread = new Thread(() =>
      * {
      *  if (OpenClipboard(IntPtr.Zero))
      *  {
      *      var ptr = Marshal.StringToHGlobalUni(e.Text);
      *      SetClipboardData(13, ptr);
      *      CloseClipboard();
      *      Marshal.FreeHGlobal(ptr);
      *  }
      * });
      * thread.SetApartmentState(ApartmentState.STA);
      * thread.Start();
      */
 }
Beispiel #2
0
 void SetText(SetClipboardTextEvent e) /* TODO */ }