msi: Add a stub implementation of MsiQueryComponentStateA

James Hawkins truiken at gmail.com
Mon Jun 25 18:44:47 CDT 2007


Hi,

This is needed for tests I'm sending in.

Changelog:
* 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(-)

-- 
James Hawkins
-------------- next part --------------
diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c
index 59a6f67..e828f2a 100644
--- a/dlls/msi/msi.c
+++ b/dlls/msi/msi.c
@@ -732,6 +732,17 @@ UINT WINAPI MsiEnableLogW(DWORD dwLogMod
     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)
-- 
1.4.1


More information about the wine-patches mailing list