I register for device notification by specifying
DEVICE_NOTIFY_WINDOW_HANDLE and the ClassGuid.
#1 is the ClassGuid from the inf file the correct guid to register for?
#2 in my handler I have this code under WM_DEVICECHANGE
PDEV_BROADCAST_HDR pHdr = reinterpret_cast<PDEV_BROADCAST_HDR>(lParam);
if( pHdr && pHdr->dbch_devicetype == DBT_DEVTYP_DEVICEINTERFACE )
pHdr is always NULL
So I am a litle confused as to what I can do. Without Phdr
I really cannot even say it was the device I was looking for
or if it was removed or arrived.
Thanks for any suggestions.
--
Mike Pulice
http://www.puliceworx.com