If memory serves, you‘re looking for SHFormatDrive()
.
[Windows] 如何用编程的方式格式化硬盘
Posted liujx2019
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[Windows] 如何用编程的方式格式化硬盘相关的知识,希望对你有一定的参考价值。
Sounds like you are looking for Disk Management Control Codes.
answered Oct 7 ‘10 at 11:10
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] 如何用编程的方式格式化硬盘的主要内容,如果未能解决你的问题,请参考以下文章
如何用硬盘安装《红帽企业级Linux AS版》(Redhat Enterprise Linux AS v5.4)rhel-server-5.4-i386-dvd。