I am trying to detect a usb arrival event . I tried to override wndproc() for getting my messages. But I am facing an error by windows messages.
wndproc()
The error
You have to declare and define the values of the constants:
private const int DBT_DEVICEARRIVAL = 0x8000; private const int WM_DEVICECHANGE = 0x0219;