Release 20030408.
[wine/gsoc-2012-control.git] / dlls / cabinet / fdi.c
blobc735ea85fb3639b75b8e5dcd2ecff43f8373eab8
1 /*
2 * File Decompression Interface
4 * Copyright 2002 Patrik Stridvall
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #include "config.h"
23 #include "windef.h"
24 #include "winbase.h"
25 #include "winerror.h"
26 #include "fdi.h"
28 #include "wine/debug.h"
30 WINE_DEFAULT_DEBUG_CHANNEL(cabinet);
32 /***********************************************************************
33 * FDICreate (CABINET.20)
35 HFDI __cdecl FDICreate(
36 PFNALLOC pfnalloc,
37 PFNFREE pfnfree,
38 PFNOPEN pfnopen,
39 PFNREAD pfnread,
40 PFNWRITE pfnwrite,
41 PFNCLOSE pfnclose,
42 PFNSEEK pfnseek,
43 int cpuType,
44 PERF perf)
46 FIXME("(pfnalloc == ^%p, pfnfree == ^%p, pfnopen == ^%p, pfnread == ^%p, pfnwrite == ^%p, \
47 pfnclose == ^%p, pfnseek == ^%p, cpuType == %d, perf == ^%p): stub\n",
48 pfnalloc, pfnfree, pfnopen, pfnread, pfnwrite, pfnclose, pfnseek,
49 cpuType, perf);
51 perf->erfOper = FDIERROR_NONE;
52 perf->erfType = 0;
53 perf->fError = TRUE;
55 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
56 return NULL;
60 /***********************************************************************
61 * FDIIsCabinet (CABINET.21)
63 BOOL __cdecl FDIIsCabinet(
64 HFDI hfdi,
65 INT_PTR hf,
66 PFDICABINETINFO pfdici)
68 FIXME("(hfdi == ^%p, hf == ^%d, pfdici == ^%p): stub\n", hfdi, hf, pfdici);
70 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
71 return FALSE;
74 /***********************************************************************
75 * FDICopy (CABINET.22)
77 BOOL __cdecl FDICopy(
78 HFDI hfdi,
79 char *pszCabinet,
80 char *pszCabPath,
81 int flags,
82 PFNFDINOTIFY pfnfdin,
83 PFNFDIDECRYPT pfnfdid,
84 void *pvUser)
86 FIXME("(hfdi == ^%p, pszCabinet == ^%p, pszCabPath == ^%p, flags == %0d, \
87 pfnfdin == ^%p, pfnfdid == ^%p, pvUser == ^%p): stub\n",
88 hfdi, pszCabinet, pszCabPath, flags, pfnfdin, pfnfdid, pvUser);
90 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
91 return FALSE;
94 /***********************************************************************
95 * FDIDestroy (CABINET.23)
97 BOOL __cdecl FDIDestroy(HFDI hfdi)
99 FIXME("(hfdi == ^%p): stub\n", hfdi);
101 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
102 return FALSE;
105 /***********************************************************************
106 * FDICreate (CABINET.20)
108 BOOL __cdecl FDITruncateCabinet(
109 HFDI hfdi,
110 char *pszCabinetName,
111 USHORT iFolderToDelete)
113 FIXME("(hfdi == ^%p, pszCabinetName == %s, iFolderToDelete == %hu): stub\n",
114 hfdi, debugstr_a(pszCabinetName), iFolderToDelete);
116 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
118 return FALSE;