2,643
社区成员
发帖
与我相关
我的任务
分享
BOOL DeviceIoControl(
(HANDLE) hDevice, // handle to device
IOCTL_DISK_FORMAT_TRACKS, // dwIoControlCode
(LPVOID) lpInBuffer, // input buffer
(DWORD) nInBufferSize, // size of input buffer
(LPVOID) lpOutBuffer, // output buffer
(DWORD) nOutBufferSize, // size of output buffer
(LPDWORD) lpBytesReturned, // number of bytes returned
(LPOVERLAPPED) lpOverlapped // OVERLAPPED structure
);
DWORD SHFormatDrive(
HWND hwnd,
UINT drive,//0 for A:, 2 for C:,...
UINT fmtID,//SHFMT_ID_DEFAULT only
UINT options//SHFMT_OPT_FULL取消快格,进行全格
//SHFMT_OPT_SYSONLY 创建ms-dos启动盘
);