Skip to content

Latest commit

 

History

History
83 lines (69 loc) · 1.77 KB

nf-fci-fnfciclose.md

File metadata and controls

83 lines (69 loc) · 1.77 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.FNFCICLOSE
FNFCICLOSE macro (fci.h)
The FNFCICLOSE macro provides the declaration for the application-defined callback function to close a file in an FCI context.
FNFCICLOSE
FNFCICLOSE macro [Windows API]
fci/FNFCICLOSE
winprog.fnfciclose
winprog\fnfciclose.htm
winprog
c4edf6ca-0b16-4e30-933b-934f8930c6d6
12/05/2018
FNFCICLOSE, FNFCICLOSE macro [Windows API], fci/FNFCICLOSE, winprog.fnfciclose
fci.h
Windows
Windows
19H1
FNFCICLOSE
fci/FNFCICLOSE
c++
APIRef
kbSyntax
HeaderDef
fci.h
FNFCICLOSE

-description

The FNFCICLOSE macro provides the declaration for the application-defined callback function to close a file in an FCI context.

-parameters

-param fn

Specifies an application-defined value that identifies an open file.

-remarks

The function accepts parameters similar to _close, with the addition of err and pv.

Examples

FNFCICLOSE(fnFileClose)
{
    INT iResult = 0; 

    UNREFERENCED_PARAMETER(pv);
    
    if ( CloseHandle((HANDLE)hf) == FALSE)
    {
        *err = GetLastError();
        iResult = -1;
    }

    return iResult;
}

-see-also

FCICreate