USB-Notifier

Monitor USB connectivity when new device attached or removed from the system.

alt text

Win32 Objects And Structures

– SP_DEVINFO_DATA
– HDEVINFO
– DEVPROPTYPE
– DEV_BROADCAST_DEVICEINTERFACE
– WNDCLASSEX

Win32 Functions

  • SetupDiGetClassDevs
  • SetupDiEnumDeviceInfo
  • SetupDiGetDeviceRegistryPropertyA
  • RegisterDeviceNotification
  • RegisterClassEx
  • RegisterDeviceNotification
  • CreateWindowEx

TODO:

  • add support to other classes guid.

GitHub

View Github