在Service程序里,是用SERVICE_CONTROL_DEVICEEVENT来替代WM_DEVICECHANGE的处理。我现在想在SERVICE_CONTROL_DEVICEEVENT中处理DBT_DEVTYP_VOLUME,于是就碰到问题了。要收到SERVICE_CONTROL_DEVICEEVENT,必须调用RegisterDeviceNotification(摘自msdn的HandlerEx说明)SERVICE_CONTROL_DEVICEEVENT:Notifies a service of device events. (The service must have registered to receive these notifications using the RegisterDeviceNotification function.)但是(摘自msdn的RegisterDeviceNotification说明)Volume notifications are also broadcast to top-level windows, so the function fails if dbch_devicetype is DBT_DEVTYP_VOLUME.于是SERVICE_CONTROL_DEVICEEVENT就不能处理DBT_DEVTYP_VOLUME了,我的理解是否正确?正确应该怎么做?