2011-10-31 19:05:49 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2011 André Hentschel
|
|
|
|
*
|
|
|
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
2012-07-21 16:25:39 +00:00
|
|
|
#include <appcompatapi.h>
|
|
|
|
|
2011-10-31 19:05:49 +00:00
|
|
|
#include "wine/debug.h"
|
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(apphelp);
|
|
|
|
|
2011-11-04 16:57:47 +00:00
|
|
|
/* FIXME: don't know where to place that enum */
|
|
|
|
typedef enum _PATH_TYPE {
|
|
|
|
DOS_PATH,
|
|
|
|
NT_PATH
|
|
|
|
} PATH_TYPE;
|
|
|
|
|
|
|
|
/* FIXME: don't know where to place that typedef */
|
|
|
|
typedef HANDLE PDB;
|
2014-04-04 04:57:10 +00:00
|
|
|
typedef HANDLE HSDB;
|
2015-02-05 18:15:06 +00:00
|
|
|
typedef DWORD TAGID;
|
|
|
|
|
|
|
|
/* FIXME: don't know where to place that define */
|
|
|
|
#define TAGID_NULL 0x0
|
2011-11-04 16:57:47 +00:00
|
|
|
|
2011-11-04 16:55:41 +00:00
|
|
|
BOOL WINAPI ApphelpCheckInstallShieldPackage( void* ptr, LPCWSTR path )
|
|
|
|
{
|
|
|
|
FIXME("stub: %p %s\n", ptr, debugstr_w(path));
|
|
|
|
return TRUE;
|
|
|
|
}
|
2011-11-04 16:57:47 +00:00
|
|
|
|
2011-11-04 16:57:55 +00:00
|
|
|
BOOL WINAPI ApphelpCheckMsiPackage( void* ptr, LPCWSTR path )
|
|
|
|
{
|
|
|
|
FIXME("stub: %p %s\n", ptr, debugstr_w(path));
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2011-11-04 16:57:47 +00:00
|
|
|
PDB WINAPI SdbCreateDatabase( LPCWSTR path, PATH_TYPE type )
|
|
|
|
{
|
|
|
|
FIXME("stub: %s %u\n", debugstr_w(path), type);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return NULL;
|
|
|
|
}
|
2011-11-08 16:41:00 +00:00
|
|
|
|
|
|
|
BOOL WINAPI ApphelpCheckShellObject( REFCLSID clsid, BOOL shim, ULONGLONG *flags )
|
|
|
|
{
|
2012-07-21 16:25:39 +00:00
|
|
|
TRACE("(%s, %d, %p)\n", debugstr_guid(clsid), shim, flags);
|
|
|
|
if (flags) *flags = 0;
|
2011-11-08 16:41:00 +00:00
|
|
|
return TRUE;
|
|
|
|
}
|
2013-12-02 23:58:46 +00:00
|
|
|
|
|
|
|
BOOL WINAPI ShimFlushCache( HWND hwnd, HINSTANCE instance, LPCSTR cmdline, int cmd )
|
|
|
|
{
|
|
|
|
FIXME("stub: %p %p %s %u\n", hwnd, instance, debugstr_a(cmdline), cmd);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return TRUE;
|
|
|
|
}
|
2014-04-04 04:57:10 +00:00
|
|
|
|
|
|
|
HSDB WINAPI SdbInitDatabase(DWORD flags, LPCWSTR path)
|
|
|
|
{
|
2022-02-07 22:10:51 +00:00
|
|
|
FIXME("stub: %08lx %s\n", flags, debugstr_w(path));
|
2014-04-04 04:57:10 +00:00
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return NULL;
|
|
|
|
}
|
2015-02-04 19:28:01 +00:00
|
|
|
|
|
|
|
PDB WINAPI SdbOpenDatabase(LPCWSTR path, PATH_TYPE type)
|
|
|
|
{
|
|
|
|
FIXME("stub: %s %08x\n", debugstr_w(path), type);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return NULL;
|
|
|
|
}
|
2015-02-05 18:15:06 +00:00
|
|
|
|
|
|
|
TAGID WINAPI SdbGetFirstChild(PDB pdb, TAGID parent)
|
|
|
|
{
|
2022-02-07 22:10:51 +00:00
|
|
|
FIXME("stub: %p %ld\n", pdb, parent);
|
2015-02-05 18:15:06 +00:00
|
|
|
return TAGID_NULL;
|
|
|
|
}
|
2015-02-05 18:25:55 +00:00
|
|
|
|
|
|
|
void WINAPI SdbCloseDatabase(PDB pdb)
|
|
|
|
{
|
|
|
|
FIXME("stub: %p\n", pdb);
|
|
|
|
}
|
2016-06-27 02:10:08 +00:00
|
|
|
|
|
|
|
void WINAPI SdbGetAppPatchDir(HSDB hsdb, WCHAR *path, DWORD size)
|
|
|
|
{
|
2022-02-07 22:10:51 +00:00
|
|
|
FIXME("stub: %p %p %ld\n", hsdb, path, size);
|
2016-06-27 02:10:08 +00:00
|
|
|
if (size && path) *path = 0;
|
|
|
|
}
|