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.

FNFCIDELETE macro

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

Syntax


void FNFCIDELETE(
  [in] LPSTR    pszFile,
       int FAR  *err,
       void FAR *pv
);

Parameters

pszFile [in]

The name of the file to be deleted.

err

Pointer to the error code value. This value will be 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 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

Header

Fci.h

See also

FCICreate

 

 

Show: