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.

FNFCIFILEPLACED macro

The FNFCIFILEPLACED macro provides the declaration for the application-defined callback function to notify when a file is placed in the cabinet.

Syntax


void FNFCIFILEPLACED(
       PCCAB    *pccab,
  [in] LPSTR    pszFile,
       long     cbFile,
       BOOL     fContinuation,
       void FAR *pv
);

Parameters

pccab

Pointer to the CCAB structure containing the parameters of the cabinet on which the file has been stored.

pszFile [in]

The name of the file in the cabinet.

cbFile

The length of the file in bytes.

fContinuation

A boolean value that is TRUE if the data added is a segment of a continued file.

pv

Pointer to an application-defined value.

Return value

The indicated callback function returns an application-defined value. However, a value of -1 indicates an error.

Examples


FNFCIFILEPLACED(fnFilePlaced)
{
    UNREFERENCED_PARAMETER(pv);

    if ( fContinuation == FALSE ) 
    {
        printf("The file \"%s\" (Size: %d) has been added to cabinet \"%s\"\n",
               pszFile,        
               cbFile,
               pccab->szCab);
    }

    return 0;
}


Requirements

Header

Fci.h

 

 

Show: