From e35bd050828a6e577e4aaa961375436531c1860c Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Wed, 13 Feb 2008 18:08:07 +0000 Subject: [PATCH] msi: Add stub implementation of MsiIsProductElevatedA/W. --- dlls/msi/msi.c | 22 ++++++++++++++++++++++ dlls/msi/msi.spec | 4 ++-- include/msi.h | 4 ++++ 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c index 7840a4cb8e..486cff3803 100644 --- a/dlls/msi/msi.c +++ b/dlls/msi/msi.c @@ -2513,3 +2513,25 @@ UINT WINAPI MsiAdvertiseScriptA( LPCSTR szScriptFile, DWORD dwFlags, debugstr_a( szScriptFile ), dwFlags, phRegData, fRemoveItems ); return ERROR_CALL_NOT_IMPLEMENTED; } + +/*********************************************************************** + * MsiIsProductElevatedW [MSI.@] + */ +UINT WINAPI MsiIsProductElevatedW( LPCWSTR szProduct, BOOL *pfElevated ) +{ + FIXME("%s %p - stub\n", + debugstr_w( szProduct ), pfElevated ); + *pfElevated = TRUE; + return ERROR_SUCCESS; +} + +/*********************************************************************** + * MsiIsProductElevatedA [MSI.@] + */ +UINT WINAPI MsiIsProductElevatedA( LPCSTR szProduct, BOOL *pfElevated ) +{ + FIXME("%s %p - stub\n", + debugstr_a( szProduct ), pfElevated ); + *pfElevated = TRUE; + return ERROR_SUCCESS; +} diff --git a/dlls/msi/msi.spec b/dlls/msi/msi.spec index 2294effc88..56ebfdb88f 100644 --- a/dlls/msi/msi.spec +++ b/dlls/msi/msi.spec @@ -207,8 +207,8 @@ 211 stdcall MsiSourceListAddSourceW(wstr wstr long wstr) 212 stub MsiSourceListForceResolutionA 213 stub MsiSourceListForceResolutionW -214 stub MsiIsProductElevatedA -215 stub MsiIsProductElevatedW +214 stdcall MsiIsProductElevatedA(str ptr) +215 stdcall MsiIsProductElevatedW(wstr ptr) 216 stdcall MsiGetShortcutTargetA(str ptr ptr ptr) 217 stdcall MsiGetShortcutTargetW(wstr ptr ptr ptr) 218 stdcall MsiGetFileHashA(str long ptr) diff --git a/include/msi.h b/include/msi.h index 05e5ca8c57..33851fcafe 100644 --- a/include/msi.h +++ b/include/msi.h @@ -569,6 +569,10 @@ UINT WINAPI MsiAdvertiseScriptA(LPCSTR, DWORD, PHKEY, BOOL); UINT WINAPI MsiAdvertiseScriptW(LPCWSTR, DWORD, PHKEY, BOOL); #define MsiAdvertiseScript WINELIB_NAME_AW(MsiAdvertiseScript) +UINT WINAPI MsiIsProductElevatedA(LPCSTR, BOOL *); +UINT WINAPI MsiIsProductElevatedW(LPCWSTR, BOOL *); +#define MsiIsProductElevated WINELIB_NAME_AW(MsiIsProductElevated) + /* Non Unicode */ UINT WINAPI MsiCloseHandle(MSIHANDLE); UINT WINAPI MsiCloseAllHandles(void);