James Hawkins : msi: Add a stub for MsiGetFeatureCost.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Aug 16 06:15:54 CDT 2006


Module: wine
Branch: master
Commit: 485484deace78519bf7309030400fab0f4d3d2ca
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=485484deace78519bf7309030400fab0f4d3d2ca

Author: James Hawkins <truiken at gmail.com>
Date:   Tue Aug 15 14:56:19 2006 -0700

msi: Add a stub for MsiGetFeatureCost.

---

 dlls/msi/install.c |   24 ++++++++++++++++++++++++
 dlls/msi/msi.spec  |    4 ++--
 include/msiquery.h |    8 ++++++++
 3 files changed, 34 insertions(+), 2 deletions(-)

diff --git a/dlls/msi/install.c b/dlls/msi/install.c
index 249102f..f80f68a 100644
--- a/dlls/msi/install.c
+++ b/dlls/msi/install.c
@@ -634,6 +634,30 @@ UINT WINAPI MsiGetFeatureStateW(MSIHANDL
 }
 
 /***********************************************************************
+* MsiGetFeatureCostA   (MSI.@)
+*/
+UINT WINAPI MsiGetFeatureCostA(MSIHANDLE hInstall, LPCSTR szFeature,
+                  MSICOSTTREE iCostTree, INSTALLSTATE iState, INT *piCost)
+{
+    FIXME("(%ld %s %i %i %p): stub\n", hInstall, debugstr_a(szFeature),
+          iCostTree, iState, piCost);
+    if (piCost) *piCost = 0;
+    return ERROR_SUCCESS;
+}
+
+/***********************************************************************
+* MsiGetFeatureCostW   (MSI.@)
+*/
+UINT WINAPI MsiGetFeatureCostW(MSIHANDLE hInstall, LPCWSTR szFeature,
+                  MSICOSTTREE iCostTree, INSTALLSTATE iState, INT *piCost)
+{
+    FIXME("(%ld %s %i %i %p): stub\n", hInstall, debugstr_w(szFeature),
+          iCostTree, iState, piCost);
+    if (piCost) *piCost = 0;
+    return ERROR_SUCCESS;
+}
+
+/***********************************************************************
  * MsiSetComponentStateA (MSI.@)
  */
 UINT WINAPI MsiSetComponentStateA(MSIHANDLE hInstall, LPCSTR szComponent,
diff --git a/dlls/msi/msi.spec b/dlls/msi/msi.spec
index d718fd2..295ba7b 100644
--- a/dlls/msi/msi.spec
+++ b/dlls/msi/msi.spec
@@ -46,8 +46,8 @@
 50 stdcall MsiGetComponentStateA(long str ptr ptr)
 51 stdcall MsiGetComponentStateW(long wstr ptr ptr)
 52 stdcall MsiGetDatabaseState(long)
-53 stub MsiGetFeatureCostA
-54 stub MsiGetFeatureCostW
+53 stdcall MsiGetFeatureCostA(long str long long ptr)
+54 stdcall MsiGetFeatureCostW(long wstr long long ptr)
 55 stub MsiGetFeatureInfoA
 56 stub MsiGetFeatureInfoW
 57 stdcall MsiGetFeatureStateA(long str ptr ptr)
diff --git a/include/msiquery.h b/include/msiquery.h
index ed99b85..57f7577 100644
--- a/include/msiquery.h
+++ b/include/msiquery.h
@@ -37,6 +37,14 @@ typedef enum tagMSICOLINFO
     MSICOLINFO_TYPES = 1
 } MSICOLINFO;
 
+typedef enum tagMSICOSTTREE
+{
+    MSICOSTTREE_SELFONLY = 0,
+    MSICOSTTREE_CHILDREN = 1,
+    MSICOSTTREE_PARENTS  = 2,
+    MSICOSTTREE_PRODUCT  = 3,
+} MSICOSTTREE;
+
 typedef enum tagMSIMODIFY
 {
     MSIMODIFY_REFRESH = 0,




More information about the wine-cvs mailing list