Am using the following code:: but bool variable returns 0.
hMcFile=(HANDLE)(file.handle());
bRet = ReadFile( hMcFile,
buffer + sizeof(ATA_PASS_THROUGH_EX),
segFileSize,
&actualBytes,
NULL);
Am using the following code:: but bool variable returns 0.
hMcFile=(HANDLE)(file.handle());
bRet = ReadFile( hMcFile,
buffer + sizeof(ATA_PASS_THROUGH_EX),
segFileSize,
&actualBytes,
NULL);
what does the code before the first line do? You can get error info from GetLastError()
If file is an instance of QFile, then handle() does not return a suitable Win32 file handle, so you can not use Win32 functions with that handle.
Documentation quote: "This is a small positive integer, suitable for use with C library functions such as fdopen() and fcntl()."
ErrorCode is 0 only..
Bookmarks