Skip to content

Latest commit

 

History

History
80 lines (67 loc) · 1.68 KB

nf-fdi-fnwrite.md

File metadata and controls

80 lines (67 loc) · 1.68 KB
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.
FNWRITE
FNWRITE macro [Windows API]
fdi/FNWRITE
winprog.fnwrite
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
FNWRITE
fdi/FNWRITE
c++
APIRef
kbSyntax
HeaderDef
fdi.h
FNWRITE

-description

The FNWRITE macro provides the declaration for the application-defined callback function to write data to a file in an FDI context.

-parameters

-param fn [in]

An application-defined value used to identify the open file.

-remarks

The function accepts parameters similar to _write.

Examples

FNWRITE(fnFileWrite)
{
    DWORD dwBytesWritten = 0;

    if ( WriteFile((HANDLE)hf, pv, cb, &dwBytesWritten, NULL) == FALSE )
    {
        dwBytesWritten = (DWORD)-1;
    }

    return dwBytesWritten;
}

-see-also

FDICreate