FDITruncateCabinet function

The FDITruncateCabinet function truncates a cabinet file starting at the specified folder number.

Syntax

BOOL DIAMONDAPI FDITruncateCabinet(
  HFDI   hfdi,
  LPSTR  pszCabinetName,
  USHORT iFolderToDelete
);

Parameters

hfdi

A valid FDI context handle returned by the FDICreate function.

pszCabinetName

The full cabinet filename.

iFolderToDelete

The index of the first folder to delete.

Return Value

If the function succeeds, it returns TRUE; otherwise, FALSE.

Extended error information is provided in the ERF structure used to create the FDI context.

Requirements

   
Target Platform Windows
Header fdi.h
Library Cabinet.lib
DLL Cabinet.dll

See Also

FDIIsCabinet