用VC可以实现U盘分区和格式化吗?
格式做了部分!但是有个参数不知道如何获取?
typedef int (WINAPI *SHFORMATDRIVE)(HWND, int, int, int);
SHFORMATDRIVE SHFormatDrive;
void CFormatDemoDlg::OnBtnFormat()
{
// TODO: Add your control notification handler code here
HINSTANCE hShell32 = ::LoadLibrary("shell32.dll");
if(hShell32)
{
SHFormatDrive = (SHFORMATDRIVE)::GetProcAddress(hShell32, "SHFormatDrive");
if(SHFormatDrive)
{
int iResult = SHFormatDrive(Handle, 0, 0, 0);
}
}
}