Commit 2e24400c authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

Stubs for MsiUseFeature.

parent b8d6b310
...@@ -1441,7 +1441,10 @@ INSTALLSTATE WINAPI MsiQueryFeatureStateA(LPCSTR szProduct, LPCSTR szFeature) ...@@ -1441,7 +1441,10 @@ INSTALLSTATE WINAPI MsiQueryFeatureStateA(LPCSTR szProduct, LPCSTR szFeature)
INSTALLSTATE WINAPI MsiQueryFeatureStateW(LPCWSTR szProduct, LPCWSTR szFeature) INSTALLSTATE WINAPI MsiQueryFeatureStateW(LPCWSTR szProduct, LPCWSTR szFeature)
{ {
FIXME("%s %s\n", debugstr_w(szProduct), debugstr_w(szFeature)); FIXME("%s %s\n", debugstr_w(szProduct), debugstr_w(szFeature));
return INSTALLSTATE_UNKNOWN; /*
* Iterates all the features components and the features parents components
*/
return INSTALLSTATE_LOCAL;
} }
UINT WINAPI MsiGetFileVersionA(LPCSTR szFilePath, LPSTR lpVersionBuf, UINT WINAPI MsiGetFileVersionA(LPCSTR szFilePath, LPSTR lpVersionBuf,
...@@ -1707,11 +1710,42 @@ UINT WINAPI MsiGetFeatureUsageA(LPCSTR szProduct, LPCSTR szFeature, ...@@ -1707,11 +1710,42 @@ UINT WINAPI MsiGetFeatureUsageA(LPCSTR szProduct, LPCSTR szFeature,
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
} }
UINT WINAPI MsiUseFeatureExW(LPCWSTR szProduct, LPCWSTR szFeature, INSTALLSTATE WINAPI MsiUseFeatureExW(LPCWSTR szProduct, LPCWSTR szFeature,
DWORD dwInstallMode, DWORD dwReserved) DWORD dwInstallMode, DWORD dwReserved)
{ {
FIXME("%s %s %li %li\n", debugstr_w(szProduct), debugstr_w(szFeature), FIXME("%s %s %li %li\n", debugstr_w(szProduct), debugstr_w(szFeature),
dwInstallMode, dwReserved); dwInstallMode, dwReserved);
/*
* Polls all the components of the feature to find install state and then
* writes:
* Software\\Microsoft\\Windows\\CurrentVersion\\
* Installer\\Products\\<squishguid>\\<feature>
* "Usage"=dword:........
*/
return INSTALLSTATE_LOCAL;
}
INSTALLSTATE WINAPI MsiUseFeatureExA(LPCSTR szProduct, LPCSTR szFeature,
DWORD dwInstallMode, DWORD dwReserved)
{
FIXME("%s %s %li %li\n", debugstr_a(szProduct), debugstr_a(szFeature),
dwInstallMode, dwReserved);
return INSTALLSTATE_LOCAL;
}
INSTALLSTATE WINAPI MsiUseFeatureW(LPCWSTR szProduct, LPCWSTR szFeature)
{
FIXME("%s %s\n", debugstr_w(szProduct), debugstr_w(szFeature));
return INSTALLSTATE_LOCAL;
}
INSTALLSTATE WINAPI MsiUseFeatureA(LPCSTR szProduct, LPCSTR szFeature)
{
FIXME("%s %s\n", debugstr_a(szProduct), debugstr_a(szFeature));
return INSTALLSTATE_LOCAL; return INSTALLSTATE_LOCAL;
} }
...@@ -1769,17 +1803,33 @@ UINT WINAPI MsiCreateAndVerifyInstallerDirectory(void) ...@@ -1769,17 +1803,33 @@ UINT WINAPI MsiCreateAndVerifyInstallerDirectory(void)
} }
UINT WINAPI MsiGetShortcutTargetA( LPCSTR szShortcutTarget, UINT WINAPI MsiGetShortcutTargetA( LPCSTR szShortcutTarget,
LPSTR szProductCode, LPSTR szFeatureId, LPSTR szProductCode, LPSTR szFeatureId,
LPSTR szComponentCode) LPSTR szComponentCode )
{ {
FIXME("\n"); FIXME("\n");
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
} }
UINT WINAPI MsiGetShortcutTargetW( LPCWSTR szShortcutTarget, UINT WINAPI MsiGetShortcutTargetW( LPCWSTR szShortcutTarget,
LPWSTR szProductCode, LPWSTR szFeatureId, LPWSTR szProductCode, LPWSTR szFeatureId,
LPWSTR szComponentCode) LPWSTR szComponentCode )
{ {
FIXME("\n"); FIXME("\n");
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
} }
UINT WINAPI MsiReinstallFeatureW( LPCWSTR szProduct, LPCWSTR szFeature,
DWORD dwReinstallMode )
{
FIXME("%s %s %li\n", debugstr_w(szProduct), debugstr_w(szFeature),
dwReinstallMode);
return ERROR_SUCCESS;
}
UINT WINAPI MsiReinstallFeatureA( LPCSTR szProduct, LPCSTR szFeature,
DWORD dwReinstallMode )
{
FIXME("%s %s %li\n", debugstr_a(szProduct), debugstr_a(szFeature),
dwReinstallMode);
return ERROR_SUCCESS;
}
...@@ -123,10 +123,10 @@ ...@@ -123,10 +123,10 @@
123 stdcall MsiRecordSetStreamW(long long wstr) 123 stdcall MsiRecordSetStreamW(long long wstr)
124 stdcall MsiRecordSetStringA(long long str) 124 stdcall MsiRecordSetStringA(long long str)
125 stdcall MsiRecordSetStringW(long long wstr) 125 stdcall MsiRecordSetStringW(long long wstr)
126 stub MsiReinstallFeatureA 126 stdcall MsiReinstallFeatureA(str str long)
127 stub MsiReinstallFeatureFromDescriptorA 127 stub MsiReinstallFeatureFromDescriptorA
128 stub MsiReinstallFeatureFromDescriptorW 128 stub MsiReinstallFeatureFromDescriptorW
129 stub MsiReinstallFeatureW 129 stdcall MsiReinstallFeatureW(wstr wstr long)
130 stdcall MsiReinstallProductA(str long) 130 stdcall MsiReinstallProductA(str long)
131 stdcall MsiReinstallProductW(wstr long) 131 stdcall MsiReinstallProductW(wstr long)
132 stub MsiSequenceA 132 stub MsiSequenceA
...@@ -151,8 +151,8 @@ ...@@ -151,8 +151,8 @@
151 stdcall MsiSummaryInfoPersist(long) 151 stdcall MsiSummaryInfoPersist(long)
152 stdcall MsiSummaryInfoSetPropertyA(long long long long ptr str) 152 stdcall MsiSummaryInfoSetPropertyA(long long long long ptr str)
153 stdcall MsiSummaryInfoSetPropertyW(long long long long ptr wstr) 153 stdcall MsiSummaryInfoSetPropertyW(long long long long ptr wstr)
154 stub MsiUseFeatureA 154 stdcall MsiUseFeatureA(str str)
155 stub MsiUseFeatureW 155 stdcall MsiUseFeatureW(wstr wstr)
156 stdcall MsiVerifyPackageA(str) 156 stdcall MsiVerifyPackageA(str)
157 stdcall MsiVerifyPackageW(wstr) 157 stdcall MsiVerifyPackageW(wstr)
158 stdcall MsiViewClose(long) 158 stdcall MsiViewClose(long)
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
189 stdcall MsiConfigureProductExA(str long long str) 189 stdcall MsiConfigureProductExA(str long long str)
190 stdcall MsiConfigureProductExW(wstr long long wstr) 190 stdcall MsiConfigureProductExW(wstr long long wstr)
191 stub MsiInvalidateFeatureCache 191 stub MsiInvalidateFeatureCache
192 stub MsiUseFeatureExA 192 stdcall MsiUseFeatureExA(str str long long)
193 stdcall MsiUseFeatureExW(wstr wstr long long) 193 stdcall MsiUseFeatureExW(wstr wstr long long)
194 stdcall MsiGetFileVersionA(str str ptr str ptr) 194 stdcall MsiGetFileVersionA(str str ptr str ptr)
195 stdcall MsiGetFileVersionW(wstr wstr ptr wstr ptr) 195 stdcall MsiGetFileVersionW(wstr wstr ptr wstr ptr)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment