FDITruncateCabinet function (fdi.h)
The FDITruncateCabinet function truncates a cabinet file starting at the specified folder number.
Syntax
BOOL DIAMONDAPI FDITruncateCabinet(
[in] HFDI hfdi,
[in] LPSTR pszCabinetName,
[in] USHORT iFolderToDelete
);
Parameters
[in] hfdi
A valid FDI context handle returned by the FDICreate function.
[in] pszCabinetName
The full cabinet filename.
[in] 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
Requirement | Value |
---|---|
Target Platform | Windows |
Header | fdi.h |
Library | Cabinet.lib |
DLL | Cabinet.dll |