Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > How to Enable/Disable Disk drives programmatically

Reply
Thread Tools Display Modes

How to Enable/Disable Disk drives programmatically

 
 
shak
Guest
Posts: n/a

 
      10-23-2003
Hi All,

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

Thanks, Shak
 
Reply With Quote
 
 
 
 
Maxim S. Shatskih
Guest
Posts: n/a

 
      10-24-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

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



 
Reply With Quote
 
Eliyas Yakub [MSFT]
Guest
Posts: n/a

 
      10-24-2003
http://support.microsoft.com/default...;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" <> wrote in message
news:015401c3998f$4d0d34b0$...
> Hi All,
>
> How to Enable/Disable Disk drives programmatically. like
> we do manually from Device Manager.
>
> Thanks, Shak



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enable/Disable NIC from command line? harryajh Windows Vista General Discussion 4 09-20-2007 04:22 PM
Where is in IE 7 enable/disable javascript? Jack Windows Vista General Discussion 3 04-06-2007 12:44 AM
"Enable Advanced Performace" for disk drives DylanM Windows Vista Performance 2 02-04-2007 01:15 PM
UAC: Is there a GPO option to disable/enable UAC? tavis Windows Vista Security 3 07-06-2006 04:56 AM
RE: Enable/disable UniDrv Duplex UI Ashwin [MS] Windows Vista Drivers 0 08-11-2003 06:49 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59