I have tried:
deviceIoControl function but I think this cannot work for remote machine (my sample code)
dismount function in WMI but it mount again as auto-mount is true when I tried to false the automount that function return mountpoint is available error,So How can I delete mount point in remote machine.
disabling the USB mass storage driver in device manager can dismount the USB,but can not access the device manager in remote machine that has windows 8 and after release version click here to see
i am going to try CM_Request_Device_EjectA function but to connect with remote machine CM_Connect_MachineA function cannot applied for windows 8 and after release version
I don't know what to do next.I want to do this without mostly setup or configure on remote machine.