Hi all,
I was trying to use ReadFile from the application to do DIRECT_IO. The
ReadFile failed with an error code 87, INVALID_PARAMETER, I can’t find
anything wrong with the parameters.
Here is my call:
bRead = ReadFile( m_hDrv, t, 1515*sizeof(unsigned char), &cbBytesRet, NULL);
m_hDrv is the HANDLE returned by CreateFile, which is successful. t is an
unsigned char array.
Any comments on what could be wrong?
Thanks!
–z