Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FNFCICLOSE macro

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

Syntax


int FNFCICLOSE(
   INT_PTR  hf,
   int FAR  *err,
   void FAR *pv
);

Parameters

hf

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

err

Pointer to the error code value. This value is used to provide extended error information in the ERF structure used to create the FCI context.

pv

Pointer to an application-defined value.

Return value

The indicated callback function returns 0 if successful; otherwise -1.

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


Requirements

Header

Fci.h

See also

FCICreate

 

 

Show: