Skip to content

Latest commit

 

History

History
83 lines (69 loc) · 1.79 KB

nf-fci-fnfciwrite.md

File metadata and controls

83 lines (69 loc) · 1.79 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:fci.FNFCIWRITE
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.
FNFCIWRITE
FNFCIWRITE macro [Windows API]
fci/FNFCIWRITE
winprog.fnfciwrite
winprog\fnfciwrite.htm
winprog
ca4c3b5b-1ed5-4f12-8317-c1e1dac5f816
12/05/2018
FNFCIWRITE, FNFCIWRITE macro [Windows API], fci/FNFCIWRITE, winprog.fnfciwrite
fci.h
Windows
Windows
19H1
FNFCIWRITE
fci/FNFCIWRITE
c++
APIRef
kbSyntax
HeaderDef
fci.h
FNFCIWRITE

-description

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

-parameters

-param fn

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

-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;
}

-see-also

FCICreate