mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[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 svn path=/trunk/; revision=65930
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user