|
查了WINERROR.H
// MessageId: ERROR_BAD_ARGUMENTS
// MessageText:
// One or more arguments are not correct.
#define ERROR_BAD_ARGUMENTS 160L
错误发生处
DWORD dwIoControlCode = (g_fLegacyBlockDriver) ? DISK_IOCTL_READ : IOCTL_DISK_READ;
fResult = DeviceIoControl(
g_hStore,
dwIoControlCode,
&sgSgReq,
sizeof(sgSgReq),
NULL,
0,
&dwBytesReturned,
NULL);
if (fResult) {
DEBUGMSG(ZONE_COMMENT, (_T(
"%s IOCTL_DISK_READ passed; %u bytes read\r\n"
), pszFname, dwBytesReturned));
}
else {
DWORD dwError = GetLastError();
DEBUGMSG(ZONE_ERROR, (_T(
"%s IOCTL_DISK_READ failed; error = %u\r\n"
), pszFname, dwError));
goto EXIT;
} |
|