Author: gadamopoulos
Date: Sat May 14 18:45:37 2011
New Revision: 51744
URL:
http://svn.reactos.org/svn/reactos?rev=51744&view=rev
Log:
fix indentation
Modified:
branches/GSoC_2011/ThemesSupport/dll/win32/uxtheme/themehooks.c
Modified: branches/GSoC_2011/ThemesSupport/dll/win32/uxtheme/themehooks.c
URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2011/ThemesSupport/dll/win…
==============================================================================
--- branches/GSoC_2011/ThemesSupport/dll/win32/uxtheme/themehooks.c [iso-8859-1]
(original)
+++ branches/GSoC_2011/ThemesSupport/dll/win32/uxtheme/themehooks.c [iso-8859-1] Sat May
14 18:45:37 2011
@@ -30,22 +30,22 @@
ThemeDefWindowProcW(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
{
return ThemeDefWindowProcAW(hWnd,
- Msg,
- wParam,
- lParam,
- user32ApiHook.DefWindowProcW,
- FALSE);
+ Msg,
+ wParam,
+ lParam,
+ user32ApiHook.DefWindowProcW,
+ FALSE);
}
static LRESULT CALLBACK
ThemeDefWindowProcA(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
{
return ThemeDefWindowProcAW(hWnd,
- Msg,
- wParam,
- lParam,
- user32ApiHook.DefWindowProcA,
- TRUE);
+ Msg,
+ wParam,
+ lParam,
+ user32ApiHook.DefWindowProcA,
+ TRUE);
}
BOOL CALLBACK
@@ -53,29 +53,29 @@
{
/* Sanity checks for the caller */
if (!puah || State != uahLoadInit)
- {
- return TRUE;
- }
+ {
+ return TRUE;
+ }
+
+ /* Store the original functions from user32 */
+ user32ApiHook = *puah;
- /* Store the original functions from user32 */
- user32ApiHook = *puah;
-
- puah->DefWindowProcA = ThemeDefWindowProcA;
- puah->DefWindowProcW = ThemeDefWindowProcW;
+ puah->DefWindowProcA = ThemeDefWindowProcA;
+ puah->DefWindowProcW = ThemeDefWindowProcW;
puah->DefWndProcArray.MsgBitArray = gabDWPmessages;
puah->DefWndProcArray.Size = UAHOWP_MAX_SIZE;
- UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_CREATE);
- UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_DESTROY);
+ UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_CREATE);
+ UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_DESTROY);
UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_THEMECHANGED);
- UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_NCPAINT);
- UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_NCACTIVATE);
- UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_NCMOUSEMOVE);
- UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_MOUSEMOVE);
- UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_NCMOUSELEAVE);
- UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_NCHITTEST);
- UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_NCLBUTTONDOWN);
- UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_NCLBUTTONDBLCLK);
+ UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_NCPAINT);
+ UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_NCACTIVATE);
+ UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_NCMOUSEMOVE);
+ UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_MOUSEMOVE);
+ UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_NCMOUSELEAVE);
+ UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_NCHITTEST);
+ UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_NCLBUTTONDOWN);
+ UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_NCLBUTTONDBLCLK);
return TRUE;
}
@@ -86,42 +86,42 @@
BOOL WINAPI
ThemeHooksInstall()
{
- PVOID lpFunc;
- OSVERSIONINFO osvi;
-
- lpFunc = GetProcAddress(GetModuleHandle("user32.dll"),
"RegisterUserApiHook");
-
+ PVOID lpFunc;
+ OSVERSIONINFO osvi;
+
+ lpFunc = GetProcAddress(GetModuleHandle("user32.dll"),
"RegisterUserApiHook");
+
ZeroMemory(&osvi, sizeof(OSVERSIONINFO));
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
- GetVersionEx(&osvi);
-
- if ( osvi.dwMajorVersion == 5 && osvi.dwMinorVersion == 1)
- {
- PREGISTER_UAH_WINXP lpfuncxp = (PREGISTER_UAH_WINXP)lpFunc;
- return lpfuncxp(hDllInst, ThemeInitApiHook);
- }
- else if ( osvi.dwMajorVersion == 5 && osvi.dwMinorVersion == 2)
- {
- PREGISTER_UUAH_WIN2003 lpfunc2003 = (PREGISTER_UUAH_WIN2003)lpFunc;
- USERAPIHOOKINFO uah;
-
- uah.m_size = sizeof(uah);
- uah.m_dllname1 = L"uxtheme.dll";
- uah.m_funname1 = L"ThemeInitApiHook";
- uah.m_dllname2 = NULL;
- uah.m_funname2 = NULL;
-
- return lpfunc2003(&uah);
- }
- else
- {
- UNIMPLEMENTED;
- return FALSE;
- }
+ GetVersionEx(&osvi);
+
+ if ( osvi.dwMajorVersion == 5 && osvi.dwMinorVersion == 1)
+ {
+ PREGISTER_UAH_WINXP lpfuncxp = (PREGISTER_UAH_WINXP)lpFunc;
+ return lpfuncxp(hDllInst, ThemeInitApiHook);
+ }
+ else if ( osvi.dwMajorVersion == 5 && osvi.dwMinorVersion == 2)
+ {
+ PREGISTER_UUAH_WIN2003 lpfunc2003 = (PREGISTER_UUAH_WIN2003)lpFunc;
+ USERAPIHOOKINFO uah;
+
+ uah.m_size = sizeof(uah);
+ uah.m_dllname1 = L"uxtheme.dll";
+ uah.m_funname1 = L"ThemeInitApiHook";
+ uah.m_dllname2 = NULL;
+ uah.m_funname2 = NULL;
+
+ return lpfunc2003(&uah);
+ }
+ else
+ {
+ UNIMPLEMENTED;
+ return FALSE;
+ }
}
BOOL WINAPI
ThemeHooksRemove()
{
- return UnregisterUserApiHook();
+ return UnregisterUserApiHook();
}