mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +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:
parent
4ee6f68f4d
commit
514b38fec2
1 changed files with 24 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue