PyHDEVNOTIFY = RegisterDeviceNotification(handle, filter , flags )

Registers the device or type of device for which a window will receive notifications.


handle : PyHANDLE

The handle to a window or a service

filter : buffer

A buffer laid out like one of the DEV_BROADCAST_* structures, generally built by one of the win32gui_struct helpers.

flags : int

Win32 API References

Search for RegisterDeviceNotification at msdn, google or google groups.