2002-11-19 01:47:12 +01:00
|
|
|
/*
|
|
|
|
* File Decompression Interface
|
|
|
|
*
|
|
|
|
* Copyright 2002 Patrik Stridvall
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include "windef.h"
|
2002-12-02 20:00:59 +01:00
|
|
|
#include "winbase.h"
|
|
|
|
#include "winerror.h"
|
2002-11-19 01:47:12 +01:00
|
|
|
#include "fdi.h"
|
|
|
|
|
|
|
|
#include "wine/debug.h"
|
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(cabinet);
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* FDICreate (CABINET.20)
|
|
|
|
*/
|
|
|
|
HFDI __cdecl FDICreate(
|
|
|
|
PFNALLOC pfnalloc,
|
|
|
|
PFNFREE pfnfree,
|
|
|
|
PFNOPEN pfnopen,
|
|
|
|
PFNREAD pfnread,
|
|
|
|
PFNWRITE pfnwrite,
|
|
|
|
PFNCLOSE pfnclose,
|
|
|
|
PFNSEEK pfnseek,
|
|
|
|
int cpuType,
|
|
|
|
PERF perf)
|
|
|
|
{
|
2002-12-19 22:16:56 +01:00
|
|
|
FIXME("(pfnalloc == ^%p, pfnfree == ^%p, pfnopen == ^%p, pfnread == ^%p, pfnwrite == ^%p, \
|
|
|
|
pfnclose == ^%p, pfnseek == ^%p, cpuType == %d, perf == ^%p): stub\n",
|
2002-12-02 20:00:59 +01:00
|
|
|
pfnalloc, pfnfree, pfnopen, pfnread, pfnwrite, pfnclose, pfnseek,
|
|
|
|
cpuType, perf);
|
|
|
|
|
|
|
|
perf->erfOper = FDIERROR_NONE;
|
|
|
|
perf->erfType = 0;
|
|
|
|
perf->fError = TRUE;
|
|
|
|
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
2002-11-19 01:47:12 +01:00
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
2002-12-02 20:00:59 +01:00
|
|
|
* FDIIsCabinet (CABINET.21)
|
2002-11-19 01:47:12 +01:00
|
|
|
*/
|
|
|
|
BOOL __cdecl FDIIsCabinet(
|
|
|
|
HFDI hfdi,
|
|
|
|
INT_PTR hf,
|
|
|
|
PFDICABINETINFO pfdici)
|
|
|
|
{
|
2002-12-19 22:16:56 +01:00
|
|
|
FIXME("(hfdi == ^%p, hf == ^%d, pfdici == ^%p): stub\n", hfdi, hf, pfdici);
|
2002-12-02 20:00:59 +01:00
|
|
|
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
2002-11-19 01:47:12 +01:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2002-12-02 20:00:59 +01:00
|
|
|
* FDICopy (CABINET.22)
|
2002-11-19 01:47:12 +01:00
|
|
|
*/
|
|
|
|
BOOL __cdecl FDICopy(
|
|
|
|
HFDI hfdi,
|
|
|
|
char *pszCabinet,
|
|
|
|
char *pszCabPath,
|
|
|
|
int flags,
|
|
|
|
PFNFDINOTIFY pfnfdin,
|
|
|
|
PFNFDIDECRYPT pfnfdid,
|
|
|
|
void *pvUser)
|
|
|
|
{
|
2002-12-19 22:16:56 +01:00
|
|
|
FIXME("(hfdi == ^%p, pszCabinet == ^%p, pszCabPath == ^%p, flags == %0d, \
|
|
|
|
pfnfdin == ^%p, pfnfdid == ^%p, pvUser == ^%p): stub\n",
|
2002-12-02 20:00:59 +01:00
|
|
|
hfdi, pszCabinet, pszCabPath, flags, pfnfdin, pfnfdid, pvUser);
|
|
|
|
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
2002-11-19 01:47:12 +01:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2002-12-02 20:00:59 +01:00
|
|
|
* FDIDestroy (CABINET.23)
|
2002-11-19 01:47:12 +01:00
|
|
|
*/
|
|
|
|
BOOL __cdecl FDIDestroy(HFDI hfdi)
|
|
|
|
{
|
2002-12-19 22:16:56 +01:00
|
|
|
FIXME("(hfdi == ^%p): stub\n", hfdi);
|
2002-12-02 20:00:59 +01:00
|
|
|
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
2002-11-19 01:47:12 +01:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* FDICreate (CABINET.20)
|
|
|
|
*/
|
|
|
|
BOOL __cdecl FDITruncateCabinet(
|
|
|
|
HFDI hfdi,
|
|
|
|
char *pszCabinetName,
|
|
|
|
USHORT iFolderToDelete)
|
|
|
|
{
|
2002-12-19 22:16:56 +01:00
|
|
|
FIXME("(hfdi == ^%p, pszCabinetName == %s, iFolderToDelete == %hu): stub\n",
|
|
|
|
hfdi, debugstr_a(pszCabinetName), iFolderToDelete);
|
2002-12-02 20:00:59 +01:00
|
|
|
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
|
2002-11-19 01:47:12 +01:00
|
|
|
return FALSE;
|
|
|
|
}
|