加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

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

发布时间:2020-12-14 02:25:25 所属栏目:Windows 来源:网络整理
导读:If memory serves,you‘re looking for SHFormatDrive() . share improve this answer answered Feb 8 ‘10 at 18:19 Jerry Coffin ? ? Use the Format method of the Win32_Volume class. Details here. share improve this answer answered Aug 29 ‘11 at

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

share improve this answer

?

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读