Author: gadamopoulos
Date: Thu Jan 1 11:55:50 2015
New Revision: 65930
URL:
http://svn.reactos.org/svn/reactos?rev=65930&view=rev
Log:
[MSGINA]
- Implement initializing themes as msdn suggests. We don't have shsvcs.dll yet but it
doesn't harm to make our gina themes ready.
See
http://support.microsoft.com/kb/KbView/322047
Modified:
trunk/reactos/dll/win32/msgina/msgina.c
Modified: trunk/reactos/dll/win32/msgina/msgina.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/msgina.c?…
==============================================================================
--- trunk/reactos/dll/win32/msgina/msgina.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/msgina.c [iso-8859-1] Thu Jan 1 11:55:50 2015
@@ -259,6 +259,28 @@
return TRUE;
}
+typedef DWORD (WINAPI *pThemeWait)(DWORD dwTimeout);
+typedef BOOL (WINAPI *pThemeWatch)(void);
+
+static void
+InitThemeSupport()
+{
+ HMODULE hDll = LoadLibraryW(L"shsvcs.dll");
+ pThemeWait themeWait;
+ pThemeWatch themeWatch;
+
+ if(!hDll)
+ return;
+
+ themeWait = (pThemeWait) GetProcAddress(hDll, (LPCSTR)2);
+ themeWatch = (pThemeWatch) GetProcAddress(hDll, (LPCSTR)1);
+
+ if(themeWait && themeWatch)
+ {
+ themeWait(5000);
+ themeWatch();
+ }
+}
/*
* @implemented
@@ -274,6 +296,8 @@
PGINA_CONTEXT pgContext;
UNREFERENCED_PARAMETER(pvReserved);
+
+ InitThemeSupport();
pgContext = (PGINA_CONTEXT)LocalAlloc(LMEM_FIXED | LMEM_ZEROINIT,
sizeof(GINA_CONTEXT));
if(!pgContext)