From 451ef3a9c3ebc9b4cc2629750cd7c2d22cd4522e Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Wed, 2 Nov 2005 19:54:31 +0000 Subject: [PATCH] Stub implementation for MsiAdvertiseScriptA/W. --- dlls/msi/msi.c | 22 ++++++++++++++++++++++ dlls/msi/msi.spec | 4 ++-- include/msi.h | 16 ++++++++++++++++ 3 files changed, 40 insertions(+), 2 deletions(-) diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c index ff05f4e8761..820f4c365cf 100644 --- a/dlls/msi/msi.c +++ b/dlls/msi/msi.c @@ -2008,3 +2008,25 @@ UINT WINAPI MsiGetFileHashA( LPCSTR szFilePath, DWORD dwOptions, FIXME("%s %08lx %p\n", debugstr_a(szFilePath), dwOptions, pHash ); return ERROR_CALL_NOT_IMPLEMENTED; } + +/*********************************************************************** + * MsiAdvertiseScriptW [MSI.@] + */ +UINT WINAPI MsiAdvertiseScriptW( LPCWSTR szScriptFile, DWORD dwFlags, + PHKEY phRegData, BOOL fRemoveItems ) +{ + FIXME("%s %08lx %p %d\n", + debugstr_w( szScriptFile ), dwFlags, phRegData, fRemoveItems ); + return ERROR_CALL_NOT_IMPLEMENTED; +} + +/*********************************************************************** + * MsiAdvertiseScriptA [MSI.@] + */ +UINT WINAPI MsiAdvertiseScriptA( LPCSTR szScriptFile, DWORD dwFlags, + PHKEY phRegData, BOOL fRemoveItems ) +{ + FIXME("%s %08lx %p %d\n", + debugstr_a( szScriptFile ), dwFlags, phRegData, fRemoveItems ); + return ERROR_CALL_NOT_IMPLEMENTED; +} diff --git a/dlls/msi/msi.spec b/dlls/msi/msi.spec index 4d4ac2a70fc..efb3e4c5d48 100644 --- a/dlls/msi/msi.spec +++ b/dlls/msi/msi.spec @@ -169,8 +169,8 @@ 173 stdcall MsiGetComponentPathW(wstr wstr ptr ptr) 174 stdcall MsiApplyPatchA(str str long str) 175 stdcall MsiApplyPatchW(wstr wstr long wstr) -176 stub MsiAdvertiseScriptA -177 stub MsiAdvertiseScriptW +176 stdcall MsiAdvertiseScriptA(str long ptr long) +177 stdcall MsiAdvertiseScriptW(wstr long ptr long) 178 stub MsiGetPatchInfoA 179 stub MsiGetPatchInfoW 180 stdcall MsiEnumPatchesA(str long ptr ptr ptr) diff --git a/include/msi.h b/include/msi.h index 1c63f18ef37..700f1f7ab97 100644 --- a/include/msi.h +++ b/include/msi.h @@ -152,6 +152,18 @@ typedef enum tagADVERTISEFLAGS ADVERTISEFLAGS_USERASSIGN = 1 } ADVERTISEFLAGS; +typedef enum tagSCRIPTFLAGS +{ + SCRIPTFLAGS_CACHEINFO = 1, + SCRIPTFLAGS_SHORTCUTS = 4, + SCRIPTFLAGS_MACHINEASSIGN = 8, + SCRIPTFLAGS_REGDATA_APPINFO = 0x10, + SCRIPTFLAGS_REGDATA_CNFGINFO = 0x20, + SCRIPTFLAGS_VALIDATE_TRANSFORMS_LIST = 0x40, + SCRIPTFLAGS_REGDATA_CLASSINFO = 0x80, + SCRIPTFLAGS_REGDATA_EXTENSIONINFO = 0x100, +} SCRIPTFLAGS; + typedef enum tagINSTALLTYPE { INSTALLTYPE_DEFAULT = 0, @@ -540,6 +552,10 @@ UINT WINAPI MsiGetFileHashA(LPCSTR, DWORD, PMSIFILEHASHINFO); UINT WINAPI MsiGetFileHashW(LPCWSTR, DWORD, PMSIFILEHASHINFO); #define MsiGetFileHash WINELIB_NAME_AW(MsiGetFileHash) +UINT WINAPI MsiAdvertiseScriptA(LPCSTR, DWORD, PHKEY, BOOL); +UINT WINAPI MsiAdvertiseScriptW(LPCWSTR, DWORD, PHKEY, BOOL); +#define MsiAdvertiseScript WINELIB_NAME_AW(MsiAdvertiseScript) + /* Non Unicode */ UINT WINAPI MsiCloseHandle(MSIHANDLE); UINT WINAPI MsiCloseAllHandles(void);