UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:fdi.FNWRITE |
FNWRITE macro (fdi.h) |
The FNWRITE macro provides the declaration for the application-defined callback function to write data to a file in an FDI context. |
|
winprog\fnwrite.htm |
winprog |
e15d4293-2955-48cd-b8c9-77669a1e6436 |
12/05/2018 |
FNWRITE, FNWRITE macro [Windows API], fdi/FNWRITE, winprog.fnwrite |
fdi.h |
Windows |
Windows |
19H1 |
|
|
|
|
|
|
The FNWRITE macro provides the declaration for the application-defined callback function to write data to a file in an FDI context.
An application-defined value used to identify the open file.
The function accepts parameters similar to _write.
FNWRITE(fnFileWrite)
{
DWORD dwBytesWritten = 0;
if ( WriteFile((HANDLE)hf, pv, cb, &dwBytesWritten, NULL) == FALSE )
{
dwBytesWritten = (DWORD)-1;
}
return dwBytesWritten;
}