码迷,mamicode.com
首页 > Windows程序 > 详细

[Windows] 如何用编程的方式格式化硬盘

时间:2019-03-19 18:27:31      阅读:199      评论:0      收藏:0      [点我收藏+]

标签:asp   tps   http   body   height   inf   ros   硬盘   copy   

If memory serves, you‘re looking for SHFormatDrive().

 

Sounds like you are looking for Disk Management Control Codes.

answered Oct 7 ‘10 at 11:10
技术图片

Luke

 

ThI have ended up using a combination of WMI & DeviceIoControl with the Disk Management Control Codes. This looks to be able to do everything that I want, except that currently I am having some issues with using the Win32_Volume Format method in C++, I am constantly getting a WBEM_E_INVALID_METHOD_PARAMETERS error. – Zac Shenker Oct 12 ‘10 at 4:36
 
https://stackoverflow.com/questions/3879294/windows-c-c-drive-init-partition-format

[Windows] 如何用编程的方式格式化硬盘

标签:asp   tps   http   body   height   inf   ros   硬盘   copy   

原文地址:https://www.cnblogs.com/liujx2019/p/10560352.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!