Hi All,

How to Enable/Disable Disk drives programmatically. like
we do manually from Device Manager.

Thanks, Shak

Re: How to Enable/Disable Disk drives programmatically by Eliyas

Eliyas
Fri Oct 24 12:00:30 CDT 2003

http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q311272

--
-Eliyas
This posting is provided "AS IS" with no warranties, and confers no rights.
http://www.microsoft.com/whdc/hwdev/driver/kb-drv.mspx
"shak" <kpf@netcell.com> wrote in message
news:015401c3998f$4d0d34b0$a401280a@phx.gbl...
> Hi All,
>
> How to Enable/Disable Disk drives programmatically. like
> we do manually from Device Manager.
>
> Thanks, Shak



Re: How to Enable/Disable Disk drives programmatically by Maxim

Maxim
Fri Oct 24 11:40:35 CDT 2003

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
maxim@storagecraft.com
http://www.storagecraft.com


"shak" <kpf@netcell.com> wrote in message
news:015401c3998f$4d0d34b0$a401280a@phx.gbl...
> Hi All,
>
> How to Enable/Disable Disk drives programmatically. like
> we do manually from Device Manager.
>
> Thanks, Shak