Author: gadamopoulos Date: Fri Dec 19 14:21:18 2014 New Revision: 65752 URL: http://svn.reactos.org/svn/reactos?rev=65752&view=rev Log: [UXTHEME] * Implement a few functions needed by windows themeui.dll
Modified: trunk/reactos/dll/win32/uxtheme/themehooks.c trunk/reactos/dll/win32/uxtheme/uxtheme.spec Modified: trunk/reactos/dll/win32/uxtheme/themehooks.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/uxtheme/themehooks.c?rev=65752&r1=65751&r2=65752&view=diff ============================================================================== --- trunk/reactos/dll/win32/uxtheme/themehooks.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/uxtheme/themehooks.c [iso-8859-1] Fri Dec 19 14:21:18 2014 @@ -399,4 +399,44 @@ UXTHEME_broadcast_msg (NULL, WM_THEMECHANGED); return ret; -} +} + +INT WINAPI ClassicSystemParametersInfoW(UINT uiAction, UINT uiParam, PVOID pvParam, UINT fWinIni) +{ + if (gbThemeHooksActive) + { + return user32ApiHook.SystemParametersInfoW(uiAction, uiParam, pvParam, fWinIni); + } + + return SystemParametersInfoW(uiAction, uiParam, pvParam, fWinIni); +} + +INT WINAPI ClassicSystemParametersInfoA(UINT uiAction, UINT uiParam, PVOID pvParam, UINT fWinIni) +{ + if (gbThemeHooksActive) + { + return user32ApiHook.SystemParametersInfoA(uiAction, uiParam, pvParam, fWinIni); + } + + return SystemParametersInfoA(uiAction, uiParam, pvParam, fWinIni); +} + +INT WINAPI ClassicGetSystemMetrics(int nIndex) +{ + if (gbThemeHooksActive) + { + return user32ApiHook.GetSystemMetrics(nIndex); + } + + return GetSystemMetrics(nIndex); +} + +BOOL WINAPI ClassicAdjustWindowRectEx(LPRECT lpRect, DWORD dwStyle, BOOL bMenu, DWORD dwExStyle) +{ + if (gbThemeHooksActive) + { + return user32ApiHook.AdjustWindowRectEx(lpRect, dwStyle, bMenu, dwExStyle); + } + + return AdjustWindowRectEx(lpRect, dwStyle, bMenu, dwExStyle); +} Modified: trunk/reactos/dll/win32/uxtheme/uxtheme.spec URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/uxtheme/uxtheme.spec?rev=65752&r1=65751&r2=65752&view=diff ============================================================================== --- trunk/reactos/dll/win32/uxtheme/uxtheme.spec [iso-8859-1] (original) +++ trunk/reactos/dll/win32/uxtheme/uxtheme.spec [iso-8859-1] Fri Dec 19 14:21:18 2014 @@ -40,10 +40,10 @@ 40 stdcall EnableThemeDialogTexture(ptr long) 41 stdcall EnableTheming(long) 42 stdcall GetCurrentThemeName(wstr long wstr long wstr long) -43 stub -noname ClassicGetSystemMetrics -44 stub -noname ClassicSystemParametersInfoA -45 stub -noname ClassicSystemParametersInfoW -46 stub -noname ClassicAdjustWindowRectEx +43 stdcall -noname ClassicGetSystemMetrics(long) +44 stdcall -noname ClassicSystemParametersInfoA(long long ptr long) +45 stdcall -noname ClassicSystemParametersInfoW(long long ptr long) +46 stdcall -noname ClassicAdjustWindowRectEx(ptr long long long) 47 stdcall DrawThemeBackgroundEx(ptr ptr long long ptr ptr) 48 stub -noname GetThemeParseErrorInfo 49 stdcall GetThemeAppProperties()