From: Juan Segura on
Hello:

I don't know if it is the correct forum, sorry if I'm wrong.

I need to mount and dismount physical drives, like \\.\Physicaldrive0 for
example, for a backup software.
The idea is to dismount the usb drive after the backup for a safe extraction
(this is the less problem), and mount it before start the backup. All of this
without human intervention.
I develop in c#, but I call Kernel32.dll APIs.
Some ideas?

Thanks, and sorry for my bad English!

--
Juan Segura
www.sd-a.com
juan(a)sd-a.com
From: Maxim S. Shatskih on
> The idea is to dismount the usb drive after the backup for a safe extraction
> (this is the less problem)

You need to eject the drive using SetupDiXxx or CM_xxx APIs.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim(a)storagecraft.com
http://www.storagecraft.com