ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

fdi.h File Reference
#include <pshpack4.h>
#include <pshpack1.h>
#include <poppack.h>

Go to the source code of this file.

Data Structures

struct  ERF
struct  FDICABINETINFO
struct  FDIDECRYPT
struct  FDINOTIFICATION
struct  FDISPILLFILE

Defines

#define INCLUDED_TYPES_FCI_FDI   1
#define CB_MAX_CHUNK   32768U
#define CB_MAX_DISK   0x7fffffffL
#define CB_MAX_FILENAME   256
#define CB_MAX_CABINET_NAME   256
#define CB_MAX_CAB_PATH   256
#define CB_MAX_DISK_NAME   256
#define tcompMASK_TYPE   0x000F /* Mask for compression type */
#define tcompTYPE_NONE   0x0000 /* No compression */
#define tcompTYPE_MSZIP   0x0001 /* MSZIP */
#define tcompTYPE_QUANTUM   0x0002 /* Quantum */
#define tcompTYPE_LZX   0x0003 /* LZX */
#define tcompBAD   0x000F /* Unspecified compression type */
#define tcompMASK_LZX_WINDOW   0x1F00 /* Mask for LZX Compression Memory */
#define tcompLZX_WINDOW_LO   0x0F00 /* Lowest LZX Memory (15) */
#define tcompLZX_WINDOW_HI   0x1500 /* Highest LZX Memory (21) */
#define tcompSHIFT_LZX_WINDOW   8 /* Amount to shift over to get int */
#define tcompMASK_QUANTUM_LEVEL   0x00F0 /* Mask for Quantum Compression Level */
#define tcompQUANTUM_LEVEL_LO   0x0010 /* Lowest Quantum Level (1) */
#define tcompQUANTUM_LEVEL_HI   0x0070 /* Highest Quantum Level (7) */
#define tcompSHIFT_QUANTUM_LEVEL   4 /* Amount to shift over to get int */
#define tcompMASK_QUANTUM_MEM   0x1F00 /* Mask for Quantum Compression Memory */
#define tcompQUANTUM_MEM_LO   0x0A00 /* Lowest Quantum Memory (10) */
#define tcompQUANTUM_MEM_HI   0x1500 /* Highest Quantum Memory (21) */
#define tcompSHIFT_QUANTUM_MEM   8 /* Amount to shift over to get int */
#define tcompMASK_RESERVED   0xE000 /* Reserved bits (high 3 bits) */
#define CompressionTypeFromTCOMP(tc)   ((tc) & tcompMASK_TYPE)
#define CompressionLevelFromTCOMP(tc)   (((tc) & tcompMASK_QUANTUM_LEVEL) >> tcompSHIFT_QUANTUM_LEVEL)
#define CompressionMemoryFromTCOMP(tc)   (((tc) & tcompMASK_QUANTUM_MEM) >> tcompSHIFT_QUANTUM_MEM)
#define TCOMPfromTypeLevelMemory(t, l, m)
#define LZXCompressionWindowFromTCOMP(tc)   (((tc) & tcompMASK_LZX_WINDOW) >> tcompSHIFT_LZX_WINDOW)
#define TCOMPfromLZXWindow(w)
#define _A_NAME_IS_UTF   0x80
#define _A_EXEC   0x40
#define FNALLOC(fn)   void * __cdecl fn(ULONG cb)
#define FNFREE(fn)   void __cdecl fn(void *pv)
#define FNOPEN(fn)   INT_PTR __cdecl fn(char *pszFile, int oflag, int pmode)
#define FNREAD(fn)   UINT __cdecl fn(INT_PTR hf, void *pv, UINT cb)
#define FNWRITE(fn)   UINT __cdecl fn(INT_PTR hf, void *pv, UINT cb)
#define FNCLOSE(fn)   int __cdecl fn(INT_PTR hf)
#define FNSEEK(fn)   LONG __cdecl fn(INT_PTR hf, LONG dist, int seektype)
#define FNFDIDECRYPT(fn)   int __cdecl fn(PFDIDECRYPT pfdid)
#define FNFDINOTIFY(fn)
#define cpuUNKNOWN   (-1) /* FDI does detection */
#define cpu80286   (0) /* '286 opcodes only */
#define cpu80386   (1) /* '386 opcodes used */

Typedefs

typedef ULONG CHECKSUM
typedef ULONG UOFF
typedef ULONG COFF
typedef struct ERFPERF
typedef unsigned short TCOMP
typedef voidHFDI
typedef struct FDICABINETINFOPFDICABINETINFO
typedef struct FDIDECRYPTPFDIDECRYPT
typedef void *(__cdeclPFNALLOC )(ULONG cb)
typedef void(__cdeclPFNFREE )(void *pv)
typedef int oflag
typedef int int pmode
typedef voidpv
typedef void UINT cb
typedef UINT(__cdeclPFNWRITE )(INT_PTR hf, void *pv, UINT cb)
typedef int(__cdeclPFNCLOSE )(INT_PTR hf)
typedef LONG dist
typedef LONG int seektype
typedef int(__cdeclPFNFDIDECRYPT )(PFDIDECRYPT pfdid)
typedef struct FDINOTIFICATIONPFDINOTIFICATION
typedef INT_PTR(__cdeclPFNFDINOTIFY )(FDINOTIFICATIONTYPE fdint, PFDINOTIFICATION pfdin)
typedef struct FDISPILLFILEPFDISPILLFILE

Enumerations

enum  FDIERROR {
  FDIERROR_NONE, FDIERROR_CABINET_NOT_FOUND, FDIERROR_NOT_A_CABINET, FDIERROR_UNKNOWN_CABINET_VERSION,
  FDIERROR_CORRUPT_CABINET, FDIERROR_ALLOC_FAIL, FDIERROR_BAD_COMPR_TYPE, FDIERROR_MDI_FAIL,
  FDIERROR_TARGET_FILE, FDIERROR_RESERVE_MISMATCH, FDIERROR_WRONG_CABINET, FDIERROR_USER_ABORT
}
enum  FDIDECRYPTTYPE { fdidtNEW_CABINET, fdidtNEW_FOLDER, fdidtDECRYPT }
enum  FDINOTIFICATIONTYPE {
  fdintCABINET_INFO, fdintPARTIAL_FILE, fdintCOPY_FILE, fdintCLOSE_FILE_INFO,
  fdintNEXT_CABINET, fdintENUMERATE
}

Functions

typedef INT_PTR (__cdecl *PFNOPEN)(char *pszFile
typedef UINT (__cdecl *PFNREAD)(INT_PTR hf
typedef LONG (__cdecl *PFNSEEK)(INT_PTR hf
HFDI __cdecl FDICreate (PFNALLOC, PFNFREE, PFNOPEN, PFNREAD, PFNWRITE, PFNCLOSE, PFNSEEK, int, PERF)
BOOL __cdecl FDIIsCabinet (HFDI, INT_PTR, PFDICABINETINFO)
BOOL __cdecl FDICopy (HFDI, char *, char *, int, PFNFDINOTIFY, PFNFDIDECRYPT, void *pvUser)
BOOL __cdecl FDIDestroy (HFDI)
BOOL __cdecl FDITruncateCabinet (HFDI, char *, USHORT)

Generated on Sat May 26 2012 05:40:07 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.