BlinkStickDotNet.WinUsbDeviceMonitor.MyForm.WndProc C# (CSharp) Method

WndProc() protected method

protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message
return void
			protected override void WndProc(ref Message m)
			{
				if (m.Msg == WM_DEVICECHANGE
				    && (m.WParam.ToInt32() == DBT_DEVICEARRIVAL
				    || m.WParam.ToInt32() == DBT_DEVICEREMOVECOMPLETE
				    || m.WParam.ToInt32() == DBT_DEVNODES_CHANGED))
				{
                    if (this.Enabled)
                        Monitor.OnDeviceListChanged();
				}
				
				base.WndProc(ref m);
			}
		
WinUsbDeviceMonitor.MyForm