Win 2000 SP4
I use a service application to call CM_Request_Device_Eject on an USB
stick as soon as the WM_DEVICECHANGE DBT_DEVICE_ARRIVAL was received.
CM_Request_Device_Eject returns CR_ACCESS_DENIED with an empty veto
buffer. GetLastError talks about an overlapped IO in progress.
Trying repeatedly for 40 secs sleeping 200 msecs each time does not
change anything.
It works fine for a normal application.