USB Safe Removal

  • Thread starter Thread starter Anthony Rios
  • Start date Start date
A

Anthony Rios

Hello all,
I have developed a simple application which loads and accesses a
mass-storage device in 2k/XP. Now, I would like to
transfer that code over to a service. Everything seems to have transferred
well except for the safe removal code. It seems
the call to CM_Request_Device_Eject() was failing due to the lack of
interactive logon. After some research, I found a
suggestion to use CM_Query_And_Remove_SubTree() because it does not do the
interactive logon check. After trying
this, I now get code 0x34 (CR_CALL_NOT_IMPLEMENTED?) returned from
CM_Query_And_Remove_SubTree().

Any ideas of what I can do here? The problem is simple: How can I perform
a safe removal from a service?

Thanks for you attention.

Tony
 
Back
Top