Windows apps
Collapse the table of content
Expand the table of content
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.

FNCLOSE macro

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

Syntax


void FNCLOSE(
  [in] INT_PTR hf
);

Parameters

hf [in]

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

Return value

On success, the indicated callback function returns 0; otherwise -1.

Remarks

The function accepts parameters similar to _close.

Examples


FNCLOSE(fnFileClose)
{
    return ( CloseHandle((HANDLE)hf) == TRUE ) ? 0 : -1;
}


Requirements

Header

Fdi.h

 

 

Show:
© 2017 Microsoft