Thank you for your interest.

I need to intercept WM_DEVICECHANGE in my C++ class. The purpose of this class was to let everyone use a HID device more easily (a wrapper for the HID apis)

So I am asking myself: why a device change event should be monitored via windows? Why do I have to use a win32 window (or a mfc window) to intercept the device change message? Isn't it stupid? A console application won't be able to use my HID class and communicate with a device without having a window associated, right? That's absolutely stupid, there must be something I don't really know in-depth