PDA

View Full Version : Would like to call RegisterDeviceNotification()



jxmot
4th September 2008, 03:35
Greetings,

I'm currently investigating the use of QTService component and/or creating a QT GUI application. The problem is that I need to call RegisterDeviceNotification() to be notified when a device is either added or removed (see http://msdn.microsoft.com/en-us/library/aa363431.aspx for more info). The problem is that I can't determine how to access the window handle or the service status handle. I fully realize that I'll end up with a windows-only app, but that's OK. I just really need to handle the WM_DEVICECHANGE notifications.

Thanks in advance!
jim

jacek
4th September 2008, 22:11
See QWidget::winId().