|
wince5.0上怎么用ScanVolumeEx()
[复制链接]
hive乱了,想用ScanVolumeEx修复一下,但是ScanVolumeEx执行只花费了一个tick,并且返回的数据SCAN_RESULTS全是0,我调用的有问题吗? 我的代码如下:
typedef DWORD ( *PFN_MY_SCANVOLUMEEX)(HANDLE hVolume, PSCAN_PARAMS psp);
PFN_MY_SCANVOLUMEEX pfnScanVolumeEx = NULL;
pfnScanVolumeEx = (PFN_MY_SCANVOLUMEEX)GetProcAddress(DLL_handler, TEXT("ScanVolumeEx"));
SCAN_PARAMS sp;
memset(&sp,0,sizeof(SCAN_PARAMS));
sp.cbSize = sizeof(SCAN_PARAMS);
sp.pfnProgress = NULL;
sp.pfnMessage = NULL;
sp.so.dwFlags = FATUTIL_SCAN_VERIFY_FIX;
sp.so.dwFatToUse = 1; //这里该用什么参数???
DismountPartition(hPart);
DWORD ret = pfnScanVolumeEx(hPart, &sp);
MountPartition(hPart);
|
|