James Hawkins : msi: Add a stub implementation of MsiDetermineApplicablePatches.
Alexandre Julliard
julliard at winehq.org
Thu Oct 9 07:43:07 CDT 2008
Module: wine
Branch: master
Commit: 1484c6272da3a014f92ba429b2bf61b9c6bbb3ad
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1484c6272da3a014f92ba429b2bf61b9c6bbb3ad
Author: James Hawkins <jhawkins at codeweavers.com>
Date: Wed Oct 8 23:07:19 2008 -0500
msi: Add a stub implementation of MsiDetermineApplicablePatches.
---
dlls/msi/msi.c | 18 ++++++++++++++++++
dlls/msi/msi.spec | 4 ++--
include/msi.h | 27 +++++++++++++++++++++++++++
3 files changed, 47 insertions(+), 2 deletions(-)
diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c
index a35f460..c233411 100644
--- a/dlls/msi/msi.c
+++ b/dlls/msi/msi.c
@@ -372,6 +372,24 @@ done:
return r;
}
+UINT WINAPI MsiDetermineApplicablePatchesA(LPCSTR szProductPackagePath,
+ DWORD cPatchInfo, PMSIPATCHSEQUENCEINFOA pPatchInfo)
+{
+ FIXME("(%s, %d, %p): stub!\n", debugstr_a(szProductPackagePath),
+ cPatchInfo, pPatchInfo);
+
+ return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
+UINT WINAPI MsiDetermineApplicablePatchesW(LPCWSTR szProductPackagePath,
+ DWORD cPatchInfo, PMSIPATCHSEQUENCEINFOW pPatchInfo)
+{
+ FIXME("(%s, %d, %p): stub!\n", debugstr_w(szProductPackagePath),
+ cPatchInfo, pPatchInfo);
+
+ return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
static UINT msi_open_package(LPCWSTR product, MSIINSTALLCONTEXT context,
MSIPACKAGE **package)
{
diff --git a/dlls/msi/msi.spec b/dlls/msi/msi.spec
index 925cfde..db7aa90 100644
--- a/dlls/msi/msi.spec
+++ b/dlls/msi/msi.spec
@@ -270,8 +270,8 @@
274 stdcall MsiSourceListAddMediaDiskW(wstr wstr long long long wstr wstr)
275 stub MsiSourceListClearMediaDiskA
276 stub MsiSourceListClearMediaDiskW
-277 stub MsiDetermineApplicablePatchesA
-278 stub MsiDetermineApplicablePatchesW
+277 stdcall MsiDetermineApplicablePatchesA(str long ptr)
+278 stdcall MsiDetermineApplicablePatchesW(wstr long ptr)
279 stub MsiMessageBoxExA
280 stub MsiMessageBoxExW
281 stdcall MsiSetExternalUIRecord(ptr long ptr ptr)
diff --git a/include/msi.h b/include/msi.h
index cf125ef..0def6cb 100644
--- a/include/msi.h
+++ b/include/msi.h
@@ -201,6 +201,29 @@ typedef struct _MSIFILEHASHINFO {
ULONG dwData[4];
} MSIFILEHASHINFO, *PMSIFILEHASHINFO;
+typedef enum tagMSIPATCHDATATYPE
+{
+ MSIPATCH_DATATYPE_PATCHFILE = 0,
+ MSIPATCH_DATATYPE_XMLPATH = 1,
+ MSIPATCH_DATATYPE_XMLBLOB = 2,
+} MSIPATCHDATATYPE, *PMSIPATCHDATATYPE;
+
+typedef struct tagMSIPATCHSEQUENCEINFOA
+{
+ LPCSTR szPatchData;
+ MSIPATCHDATATYPE ePatchDataType;
+ DWORD dwOrder;
+ UINT uStatus;
+} MSIPATCHSEQUENCEINFOA, *PMSIPATCHSEQUENCEINFOA;
+
+typedef struct tagMSIPATCHSEQUENCEINFOW
+{
+ LPCWSTR szPatchData;
+ MSIPATCHDATATYPE ePatchDataType;
+ DWORD dwOrder;
+ UINT uStatus;
+} MSIPATCHSEQUENCEINFOW, *PMSIPATCHSEQUENCEINFOW;
+
#define MAX_FEATURE_CHARS 38
/* Strings defined in msi.h */
@@ -607,6 +630,10 @@ UINT WINAPI MsiInstallMissingComponentA(LPCSTR, LPCSTR, INSTALLSTATE);
UINT WINAPI MsiInstallMissingComponentW(LPCWSTR, LPCWSTR, INSTALLSTATE);
#define MsiInstallMissingComponent WINELIB_NAME_AW(MsiInstallMissingComponent)
+UINT WINAPI MsiDetermineApplicablePatchesA(LPCSTR, DWORD, PMSIPATCHSEQUENCEINFOA);
+UINT WINAPI MsiDetermineApplicablePatchesW(LPCWSTR, DWORD, PMSIPATCHSEQUENCEINFOW);
+#define MsiDetermineApplicablePatches WINELIB_NAME_AW(MsiDetermineApplicablePatches)
+
/* Non Unicode */
UINT WINAPI MsiCloseHandle(MSIHANDLE);
UINT WINAPI MsiCloseAllHandles(void);
More information about the wine-cvs
mailing list