FNFCIDELETE macro (fci.h)

The FNFCIDELETE macro provides the declaration for the application-defined callback function to delete a file in the FCI context.

Syntax

void FNFCIDELETE(
  [in]  fn
);

Parameters

[in] fn

The name of the file to be deleted.

Return value

None

Remarks

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

Examples

FNFCIDELETE(fnFileDelete)
{
    INT iResult = 0;

    UNREFERENCED_PARAMETER(pv);

    if ( DeleteFileA(pszFile) == FALSE)
    {
        *err = GetLastError();
        iResult = -1;
    }

    return iResult;
}


Requirements

Requirement Value
Target Platform Windows
Header fci.h

See also

FCICreate