Sweden-Number/dlls/cabinet/fdi.c

120 lines
3.2 KiB
C
Raw Normal View History

/*
* 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"
#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)
{
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);
return NULL;
}
/***********************************************************************
2002-12-02 20:00:59 +01:00
* FDIIsCabinet (CABINET.21)
*/
BOOL __cdecl FDIIsCabinet(
HFDI hfdi,
INT_PTR hf,
PFDICABINETINFO pfdici)
{
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);
return FALSE;
}
/***********************************************************************
2002-12-02 20:00:59 +01:00
* FDICopy (CABINET.22)
*/
BOOL __cdecl FDICopy(
HFDI hfdi,
char *pszCabinet,
char *pszCabPath,
int flags,
PFNFDINOTIFY pfnfdin,
PFNFDIDECRYPT pfnfdid,
void *pvUser)
{
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);
return FALSE;
}
/***********************************************************************
2002-12-02 20:00:59 +01:00
* FDIDestroy (CABINET.23)
*/
BOOL __cdecl FDIDestroy(HFDI hfdi)
{
FIXME("(hfdi == ^%p): stub\n", hfdi);
2002-12-02 20:00:59 +01:00
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
/***********************************************************************
* FDICreate (CABINET.20)
*/
BOOL __cdecl FDITruncateCabinet(
HFDI hfdi,
char *pszCabinetName,
USHORT iFolderToDelete)
{
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);
return FALSE;
}