I have a Win32 Service App, which registers an opened device handle for
removed check. This App works fine in XP-x64. but not in Vista-x64.
The Vista-x64 send the SERVICE_CONTROL_DEVICEEVENT /
DBT_DEVICEREMOVECOMPLETE with the value in the DEV_BROADCAST_HANDLE parameter
:
dbch_size --> sizeof(DEV_BROADCAST_HANDLE)
dbch_devicetype --> DBT_DEVTYP_HANDLE
dbch_handle ---> NULL
dbch_hdevnotify ---> NULL
This makes me to have no way to determent which handle I registered has
been removed.
Is there anyway to solve this problem?