FNFCIREAD macro (fci.h)
The FNFCIREAD macro provides the declaration for the application-defined callback function to read data from a file in an FCI context.
Syntax
void FNFCIREAD(
fn
);
Parameters
fn
An application-defined value used to identify the open file.
Return value
None
Remarks
The function accepts parameters similar to _read with the addition to err and pv.
Examples
FNFCIREAD(fnFileRead)
{
DWORD dwBytesRead = 0;
UNREFERENCED_PARAMETER(pv);
if( ReadFile((HANDLE)hf, memory, cb, &dwBytesRead, NULL) == FALSE )
{
dwBytesRead = (DWORD)-1;
*err = GetLastError();
}
return dwBytesRead;
}
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | fci.h |