USB Safe Removal

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top