FDICopy function (fdi.h)

The FDICopy function extracts files from cabinets.

Syntax

BOOL DIAMONDAPI FDICopy(
  [in]           HFDI          hfdi,
  [in]           LPSTR         pszCabinet,
  [in]           LPSTR         pszCabPath,
  [in]           int           flags,
  [in]           PFNFDINOTIFY  pfnfdin,
  [in]           PFNFDIDECRYPT pfnfdid,
  [in, optional] void          *pvUser
);

Parameters

[in] hfdi

A valid FDI context handle returned by the FDICreate function.

[in] pszCabinet

The name of the cabinet file, excluding any path information, from which to extract files. If a file is split over multiple cabinets, FDICopy allows for subsequent cabinets to be opened.

[in] pszCabPath

The pathname of the cabinet file, but not including the name of the file itself. For example, "C:\MyCabs".

The contents of pszCabinet are appended to pszCabPath to create the full pathname of the cabinet.

[in] flags

No flags are currently defined and this parameter should be set to zero.

[in] pfnfdin

Pointer to an application-defined callback notification function to update the application on the status of the decoder. The function should be declared using the FNFDINOTIFY macro.

[in] pfnfdid

Not currently used by FDI. This parameter should be set to NULL.

[in, optional] pvUser

Pointer to an application-specified value to pass to the notification function.

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
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header fdi.h
Library Cabinet.lib
DLL Cabinet.dll

See also

FDICreate