Exemple #1
0
 private Mixer(IntPtr hMixer)
 {
     this.hMixer = hMixer;
     nativeWindow = EventDispatchingNativeWindow.Instance;
     nativeWindow.EventHandler += ednw_EventHandler;
     mixerGetDevCapsA(hMixer, ref mc, Marshal.SizeOf(mc));
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 public Hotkey()
 {
     nativeWindow = EventDispatchingNativeWindow.Instance;
     nativeWindow.EventHandler += nw_EventHandler;
     lock(myStaticLock)
     {
         hotkeyIndex = ++hotkeyCounter;
     }
     hWnd = nativeWindow.Handle;
 }
 /// <summary>
 /// Creates a new clipboard notifier.
 /// </summary>
 public ClipboardNotifier()
 {
     if (instantiated)
     {
         // use new windows if more than one instance is used.
         System.Diagnostics.Debug.WriteLine("WARNING: More than one ClipboardNotifier used!");
         ednw = new EventDispatchingNativeWindow();
     }
     else
     {
         ednw = EventDispatchingNativeWindow.Instance;
         instantiated = true;
     }
     ednw.EventHandler += clipboardEventHandler;
     hWnd = ednw.Handle;
     nextHWnd = SetClipboardViewer(hWnd);
 }