Question: I am trying to make a program that when a usb is plugged into the computer it will lock the usb, so it is not accessable, and then when the user enters the correct password the usb will be accessable.

Is this possible?

Any help would be appreciated,
Thanks.

Answer: 
I found several articles by googling "[usb policy c#](http://www.google.com/search?q=usb+policy+c%23)". [Here's the first one](http://knol.google.com/k/developing-usb-storage-device-protection-tool-with-c#) and it looks straightforward. The results also showed some CodeProject hits, which you can usually download and learn from.
I've noticed in other secure USB thumb drives that the encrypted, inaccessible portion is *not* considered a removable device (it shows up as another hard drive). The part that launches the executable to "login" to the encrypted drive *is* on a removable device.

FYI the device is a [Imation PivotPlus](http://www.imation.com/en-us/Imation-Products/USB-Flash-Drives--Accessories/Pivot-Plus-Flash-Drive/).