mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 07:26:47 +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
|
@ -259,6 +259,28 @@ GetRegistrySettings(PGINA_CONTEXT pgContext)
|
||||||
return TRUE;
|
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
|
* @implemented
|
||||||
|
@ -275,6 +297,8 @@ WlxInitialize(
|
||||||
|
|
||||||
UNREFERENCED_PARAMETER(pvReserved);
|
UNREFERENCED_PARAMETER(pvReserved);
|
||||||
|
|
||||||
|
InitThemeSupport();
|
||||||
|
|
||||||
pgContext = (PGINA_CONTEXT)LocalAlloc(LMEM_FIXED | LMEM_ZEROINIT, sizeof(GINA_CONTEXT));
|
pgContext = (PGINA_CONTEXT)LocalAlloc(LMEM_FIXED | LMEM_ZEROINIT, sizeof(GINA_CONTEXT));
|
||||||
if(!pgContext)
|
if(!pgContext)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue