FCICreate Function Home
FCICreate Function

Creates an FCI context.

Syntax

HFCI FCICreate(
    PERF perf,
    PFNFCIFILEPLACED pfnfiledest,
    PFNFCIALLOC pfnalloc,
    PFNFCIFREE pfnfree,
    PFNFCIOPEN pfnopen,
    PFNFCIREAD pfnread,
    PFNFCIWRITE pfnwrite,
    PFNFCICLOSE pfnclose,
    PFNFCISEEK pfnseek,
    PFNFCIDELETE pfndelete,
    PFNFCIGETTEMPFILE pfnfcigtf,
    PCCAB pccab,
    void FAR pv
);


Parameters

perf

A pointer to an error structure.

pfnfiledest

The function to call when a file is placed.

pfnalloc

The memory allocation function.

pfnfree

The memory freeing function.

pfnopen

The function to open a file.

pfnread

The function to read data from a file.

pfnwrite

The function to write data to a file.

pfnclose

The function to close a file.

pfnseek

The function to seek to a new position in a file.

pfndelete

The function to delete a file.

pfnfcigtf

The function to obtain a temporary file name.

pccab

The parameters for creating a cabinet.

pv

The client context parameter.

Return Value

If the function succeeds, it returns a non-NULL HFCI context pointer; otherwise, it returns NULL and the error structure pointed to by perf is filled out.

Remarks

The Cabinet SDK is available as a download from Microsoft Cabinet SDK and documentation is posted at Microsoft Cabinet Format.

Requirements

HeaderFci.h
LibraryCabinet.lib
DLLCabinet.dll

See Also

FCIAddFile
FCIDestroy
FCIFlushFolder

Build date: 11/12/2009

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View