FDICopy function

The FDICopy function extracts files from cabinets.

Syntax


BOOL FDICopy(
  _In_     HFDI          hfdi,
  _In_     LPSTR         pszCabinet,
  _In_     LPSTR         pszCabPath,
  _In_     INT           flags,
  _In_     PFNFDINOTIFY  pfnfdin,
  _In_     PFNFDIDECRYPT pfnfdid,
  _In_opt_ void FAR      *pvUser
);

Parameters

hfdi [in]

A valid FDI context handle returned by the FDICreate function.

pszCabinet [in]

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 [in]

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 [in]

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

pfnfdin [in]

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 [in]

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

pvUser [in, optional]

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.

Example

For an example, see Extracting Files from a Cabinet.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Header

Fdi.h

Library

Cabinet.lib

DLL

Cabinet.dll

See also

FDICreate

 

 

Show: