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