Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The FNREAD macro provides the declaration for the application-defined callback function to read data from a file in an FDI context.
Syntax
void FNREAD(
[in] fn
);
Parameters
[in] fn
An application-defined value used to identify the open file.
Return value
None
Remarks
The function accepts parameters similar to _read.
Examples
FNREAD(fnFileRead)
{
DWORD dwBytesRead = 0;
if ( ReadFile((HANDLE)hf, pv, cb, &dwBytesRead, NULL) == FALSE )
{
dwBytesRead = (DWORD)-1L;
}
return dwBytesRead;
}
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | fdi.h |