To unmount drive programmatically call DokanUnmount method exported
from Dokan.dll
In your case I'd suggest writign Windows Shell context menu extension
which will call that method. Or you can write .EXE which will be
invoked from context menu and will just call that method. In this case
you don't need to mess with shell interfaces and registrations.
Cheers,
Slavko.