James Hawkins : msi: Add a stub implementation of
MsiQueryComponentStateA.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Jun 26 07:12:04 CDT 2007
Module: wine
Branch: master
Commit: ee89cfca534679d72b23a79165b6a74e5fc19b40
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ee89cfca534679d72b23a79165b6a74e5fc19b40
Author: James Hawkins <truiken at gmail.com>
Date: Mon Jun 25 16:44:47 2007 -0700
msi: Add a stub implementation of MsiQueryComponentStateA.
---
dlls/msi/msi.c | 11 +++++++++++
dlls/msi/msi.spec | 2 +-
include/msi.h | 4 ++++
3 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c
index b332f0e..2042695 100644
--- a/dlls/msi/msi.c
+++ b/dlls/msi/msi.c
@@ -732,6 +732,17 @@ UINT WINAPI MsiEnableLogW(DWORD dwLogMode, LPCWSTR szLogFile, DWORD attributes)
return ERROR_SUCCESS;
}
+UINT WINAPI MsiQueryComponentStateA(LPSTR szProductCode, LPSTR szUserSid, MSIINSTALLCONTEXT dwContext, LPCSTR szComponent, INSTALLSTATE *pdwState)
+{
+ FIXME("(%s, %s, %d, %s, %p): stub!\n", debugstr_a(szProductCode), debugstr_a(szUserSid), dwContext, debugstr_a(szComponent), pdwState);
+
+ if (!pdwState)
+ return ERROR_INVALID_PARAMETER;
+
+ *pdwState = INSTALLSTATE_UNKNOWN;
+ return ERROR_UNKNOWN_PRODUCT;
+}
+
INSTALLSTATE WINAPI MsiQueryProductStateA(LPCSTR szProduct)
{
LPWSTR szwProduct = NULL;
diff --git a/dlls/msi/msi.spec b/dlls/msi/msi.spec
index 2fe63b3..c419ee7 100644
--- a/dlls/msi/msi.spec
+++ b/dlls/msi/msi.spec
@@ -242,7 +242,7 @@
246 stdcall MsiEnumProductsExW(wstr wstr long long ptr ptr ptr ptr)
247 stub MsiGetProductInfoExA
248 stub MsiGetProductInfoExW
-249 stub MsiQueryComponentStateA
+249 stdcall MsiQueryComponentStateA(str str long str ptr)
250 stub MsiQueryComponentStateW
251 stub MsiQueryFeatureStateExA
252 stub MsiQueryFeatureStateExW
diff --git a/include/msi.h b/include/msi.h
index 3fb214b..37f4b4b 100644
--- a/include/msi.h
+++ b/include/msi.h
@@ -425,6 +425,10 @@ UINT WINAPI MsiVerifyPackageA(LPCSTR);
UINT WINAPI MsiVerifyPackageW(LPCWSTR);
#define MsiVerifyPackage WINELIB_NAME_AW(MsiVerifyPackage)
+UINT WINAPI MsiQueryComponentStateA(LPSTR,LPSTR,MSIINSTALLCONTEXT,LPCSTR,INSTALLSTATE*);
+UINT WINAPI MsiQueryComponentStateW(LPWSTR,LPWSTR,MSIINSTALLCONTEXT,LPCWSTR,INSTALLSTATE*);
+#define MsiQueryComponentState WINELIB_NAME_AW(MsiQueryComponentState)
+
INSTALLSTATE WINAPI MsiQueryProductStateA(LPCSTR);
INSTALLSTATE WINAPI MsiQueryProductStateW(LPCWSTR);
#define MsiQueryProductState WINELIB_NAME_AW(MsiQueryProductState)
More information about the wine-cvs
mailing list