FNFCIGETNEXTCABINET macro (fci.h)

The FNFCIGETNEXTCABINET macro provides the declaration for the application-defined callback function to request information for the next cabinet.

Syntax

void FNFCIGETNEXTCABINET(
   fn
);

Parameters

fn

Pointer to a CCAB structure to provide the parameters for the creation of a new cabinet.

Return value

None

Remarks

The CCAB structure referenced by this function is relevant to the most recently completed cabinet. However, with each successful operation the iCab field contained within this structure will have incremented by 1. Additionally, the next cabinet will be created using the fields in this structure. The szCab, in particular, should be modified as necessary. In particular, the szCab field, which specifies the cabinet name, should be changed for each cabinet.

When creating multiple cabinets, typically the iCab field is used to create the name.

Examples

FNFCIGETNEXTCABINET(fnGetNextCabinet)
{
    HRESULT hr;

    UNREFERENCED_PARAMETER(pv);
    UNREFERENCED_PARAMETER(cbPrevCab);
    
    hr = StringCchPrintfA(pccab->szCab,
                          ARRAYSIZE(pccab->szCab),
                          "FCISample%02d.cab",
                          pccab->iCab);
        
    return ( SUCCEEDED(hr) );
}

Requirements

Requirement Value
Target Platform Windows
Header fci.h

See also

FCICreate