Esempio n. 1
0
 private void RegisterForWindowMethod(SimConnect connection)
 {
     msgSrc.RegisterForMessage(0x402).MessageReceived += (s, e) => connection.ReceiveMessage();
 }
 public void Dispose() => source.RegisterForMessage(wmDeviceChanged).MessageReceived -= CheckMessage;
 public DetectThumbDrive(IWindowMessageSource source)
 {
     messageSource = source.RegisterForMessage(WmDeviceChanged);
     messageSource.MessageReceived += DeviceStatusChanged;
 }
 public MonitorForDeviceArrival(IWindowMessageSource source)
 {
     this.source = source;
     source.RegisterForMessage(wmDeviceChanged).MessageReceived += CheckMessage;
 }
 public ClipboardNotification(IWindowMessageSource messageSource)
 {
     NativeMethods.AddClipboardFormatListener(messageSource.SourceWindowHWnd);
     messageSource.RegisterForMessage(NativeMethods.WM_CLIPBOARDUPDATE).MessageReceived += OnClipboardUpdate;
 }