- 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

svn path=/trunk/; revision=65930
This commit is contained in:
Giannis Adamopoulos 2015-01-01 11:55:50 +00:00
parent 4ee6f68f4d
commit 514b38fec2

View file

@ -259,6 +259,28 @@ GetRegistrySettings(PGINA_CONTEXT pgContext)
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
@ -275,6 +297,8 @@ WlxInitialize(
UNREFERENCED_PARAMETER(pvReserved);
InitThemeSupport();
pgContext = (PGINA_CONTEXT)LocalAlloc(LMEM_FIXED | LMEM_ZEROINIT, sizeof(GINA_CONTEXT));
if(!pgContext)
{