+
+gboolean
+_gtk_win32_theme_color_resolve (const char *theme_class,
+ gint id,
+ GdkRGBA *color)
+{
+#ifdef G_OS_WIN32
+ DWORD dcolor;
+
+ if (use_xp_theme && get_theme_sys_color != NULL)
+ {
+ HTHEME theme = _gtk_win32_lookup_htheme_by_classname (theme_class);
+
+ /* if theme is NULL, it will just return the GetSystemColor()
+ value */
+ dcolor = get_theme_sys_color (theme, id);
+ }
+ else
+ dcolor = GetSysColor (id);
+
+ color->alpha = 1.0;
+ color->red = GetRValue (dcolor) / 255.0;
+ color->green = GetGValue (dcolor) / 255.0;
+ color->blue = GetBValue (dcolor) / 255.0;
+#else
+ gdk_rgba_parse (color, "pink");
+#endif
+ return TRUE;
+}
+
+const char *
+_gtk_win32_theme_get_default (void)
+{
+#ifdef G_OS_WIN32
+ _gtk_win32_theme_init ();
+
+ if (use_xp_theme)
+ return (os_version.dwMajorVersion >= 6) ? "gtk-win32" : "gtk-win32-xp";
+#endif
+ return "gtk-win32-classic";
+}
+