SetupDiCallClassInstaller with appropriate function code. Look at DEVCON DDK
sample, which is a command-line Device Manager.
Note that for many cases, the disk disable is impossible without a reboot - the
machine will start with disk disabled after reboot.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
http://www.storagecraft.com
"shak" <> wrote in message
news:015401c3998f$4d0d34b0$...
> Hi All,
>
> How to Enable/Disable Disk drives programmatically. like
> we do manually from Device Manager.
>
> Thanks, Shak