FDICopy function

The FDICopy function extracts files from cabinets.

Syntax

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

Parameters

hfdi

A valid FDI context handle returned by the FDICreate function.

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.

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.

flags

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

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.

pfnfdid

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

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

   
Windows version Windows 2000 Professional [desktop apps | UWP apps] Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header fdi.h
Library Cabinet.lib
DLL Cabinet.dll

See Also

FDICreate