I'm writing a code vb.net (MS visual basic express)
my code is working as following:
1. it detects USB device arrival, and get the drive letter.
2. Using drive letter, it can do some functions on the device.
3. I need a pre-made function that safely remove the external USB device after finish from step2.
It been two weeks of searching for such code with no luck. I've found many codes but non did work for me since most of them give errors in MS visual basic express 2008.
these two codes gave less errors. However, after correcting errors using the editor's suggestions they didn't work as they supposed to!
So, help be to find suitable (and WORKING) code that disconnects the removable device with the following properties:
1. Target OS = Windows XP
2. Target language = VB.net (MS Visual Basic Express 2008)