Good day! I write a windows service, which detects USB Flash drive connection and do something with connected drive. And now after tests i need to reprocess devices after wake up from sleep mode. I solve this problem when service work as windows program. To solve i additionally process `DBT_DEVNODES_CHANGED`, but service don't receive this message, it receives only `DBT_DEVICE_ARRIVAL` and `DBT_DEVICEREMOVECOMPLETE`. I also tried to check all messages handled by service except `SERVICE_CONTROL_DEVICEEVENT` and `SERVICE_CONTROL_STOP` when system is going to sleep and i don't get any message. 

How can I determine when the system is waking up?