.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH FCICreate 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBFCICreate\fR (CABINET.10) .SH SYNOPSIS HFCI FCICreate ( PERF \fIperf\fR, PFNFCIFILEPLACED \fIpfnfiledest\fR, PFNFCIALLOC \fIpfnalloc\fR, PFNFCIFREE \fIpfnfree\fR, PFNFCIOPEN \fIpfnopen\fR, PFNFCIREAD \fIpfnread\fR, PFNFCIWRITE \fIpfnwrite\fR, PFNFCICLOSE \fIpfnclose\fR, PFNFCISEEK \fIpfnseek\fR, PFNFCIDELETE \fIpfndelete\fR, PFNFCIGETTEMPFILE \fIpfnfcigtf\fR, PCCAB \fIpccab\fR, void* \fIpv\fR ) .SH DESCRIPTION .PP FCICreate is provided with several callbacks and returns a handle which can be used to create cabinet files. .SH PARAMS \fIperf\fR \fB[IO]\fR A pointer to an \fBERF\fR structure. When FCICreate returns an error condition, error information may be found here as well as from GetLastError. .PP \fIpfnfiledest\fR \fB[In]\fR A pointer to a function which is called when a file is placed. Only useful for subsequent cabinet files. .PP \fIpfnalloc\fR \fB[In]\fR A pointer to a function which allocates ram. Uses the same interface as malloc. .PP \fIpfnfree\fR \fB[In]\fR A pointer to a function which frees ram. Uses the same interface as free. .PP \fIpfnopen\fR \fB[In]\fR A pointer to a function which opens a file. Uses the same interface as _open. .PP \fIpfnread\fR \fB[In]\fR A pointer to a function which reads from a file into a caller-provided buffer. Uses the same interface as _read. .PP \fIpfnwrite\fR \fB[In]\fR A pointer to a function which writes to a file from a caller-provided buffer. Uses the same interface as _write. .PP \fIpfnclose\fR \fB[In]\fR A pointer to a function which closes a file handle. Uses the same interface as _close. .PP \fIpfnseek\fR \fB[In]\fR A pointer to a function which seeks in a file. Uses the same interface as _lseek. .PP \fIpfndelete\fR \fB[In]\fR A pointer to a function which deletes a file. .PP \fIpfnfcigtf\fR \fB[In]\fR A pointer to a function which gets the name of a temporary file. .PP \fIpccab\fR \fB[In]\fR A pointer to an initialized \fBCCAB\fR structure. .PP \fIpv\fR \fB[In]\fR A pointer to an application-defined notification function which will be passed to other \fBFCI\fR functions as a parameter. .PP .SH RETURNS .PP On success, returns an \fBFCI\fR handle of type \fBHFCI\fR. On failure, the \fBNULL\fR file handle is returned. Error info can be retrieved from \fIperf\fR. .SH INCLUDES .PP fci.h .SH IMPLEMENTATION .PP Declared in \fB"fci.h"\fR. .PP Implemented in \fB"dlls/cabinet/fci.c"\fR. .PP Debug channel \fB"cabinet"\fR.