- hUxtheme = LoadLibraryA("uxtheme.dll");
- if(!hUxtheme) {
- trace("Could not load uxtheme.dll\n");
- return FALSE;
- }
- if (hUxtheme)
- {
- UXTHEME_GET_PROC(CloseThemeData)
- UXTHEME_GET_PROC(GetCurrentThemeName)
- UXTHEME_GET_PROC(GetWindowTheme)
- UXTHEME_GET_PROC(IsAppThemed)
- UXTHEME_GET_PROC(IsThemeActive)
- UXTHEME_GET_PROC(IsThemePartDefined)
- UXTHEME_GET_PROC(OpenThemeData)
- UXTHEME_GET_PROC(OpenThemeDataEx)
- UXTHEME_GET_PROC(SetWindowTheme)
- }
- /* The following functions should be available, if not return FALSE. The Vista functions will
- * be checked (at some point in time) within the single tests if needed. All used functions for
- * now are present on WinXP, W2K3 and Wine.
- */
- if (!pCloseThemeData || !pGetCurrentThemeName ||
- !pGetWindowTheme || !pIsAppThemed ||
- !pIsThemeActive || !pIsThemePartDefined ||
- !pOpenThemeData || !pSetWindowTheme)
- {
- FreeLibrary(hUxtheme);
- return FALSE;
- }
-
- return TRUE;