- Implement WlxScreenSaverNotify. I decided to return a hardcoded FALSE because RegQueryValueExW always reads "1", although there is a "0" written in the registry. Will fix it later.

svn path=/trunk/; revision=58363
This commit is contained in:
Eric Kohl 2013-02-24 19:44:41 +00:00
parent be0ee09c4c
commit 48dd686b85
3 changed files with 62 additions and 17 deletions

View file

@ -186,6 +186,67 @@ WlxInitialize(
return pGinaUI->Initialize(pgContext); return pGinaUI->Initialize(pgContext);
} }
/*
* @implemented
*/
BOOL
WINAPI
WlxScreenSaverNotify(
PVOID pWlxContext,
BOOL *pSecure)
{
#if 0
WCHAR szBuffer[2];
HKEY hKey;
DWORD bufferSize = sizeof(szBuffer);
DWORD varType = REG_SZ;
LONG rc;
TRACE("(%p %p)\n", pWlxContext, pSecure);
*pSecure = TRUE;
/*
* Policy setting:
* HKLM\Software\Policies\Microsoft\Windows\Control Panel\Desktop : ScreenSaverIsSecure
* User setting:
* HKCU\Control Panel\Desktop : ScreenSaverIsSecure
*/
rc = RegOpenKeyExW(HKEY_CURRENT_USER,
L"Control Panel\\Desktop",
0,
KEY_QUERY_VALUE,
&hKey);
TRACE("RegOpenKeyExW: %ld\n", rc);
if (rc == ERROR_SUCCESS)
{
rc = RegQueryValueExW(hKey,
L"ScreenSaverIsSecure",
NULL,
&varType,
(LPBYTE)szBuffer,
&bufferSize);
TRACE("RegQueryValueExW: %ld\n", rc);
if (rc == ERROR_SUCCESS)
{
TRACE("szBuffer: \"%S\"\n", szBuffer);
*pSecure = _wtoi(szBuffer);
}
RegCloseKey(hKey);
}
TRACE("*pSecure: %ld\n", *pSecure);
#endif
*pSecure = FALSE;
return TRUE;
}
/* /*
* @implemented * @implemented
*/ */

View file

@ -1,6 +1,7 @@
#define WIN32_NO_STATUS #define WIN32_NO_STATUS
#include <stdarg.h> #include <stdarg.h>
#include <stdlib.h>
#include <windef.h> #include <windef.h>
#include <winbase.h> #include <winbase.h>
#include <wincon.h> #include <wincon.h>

View file

@ -82,23 +82,6 @@ WlxShutdown(
} }
/*
* @unimplemented
*/
BOOL WINAPI
WlxScreenSaverNotify(
PVOID pWlxContext,
BOOL *pSecure)
{
UNREFERENCED_PARAMETER(pWlxContext);
UNREFERENCED_PARAMETER(pSecure);
//HKLM\Software\Policies\Microsoft\Windows\Control Panel\Desktop : ScreenSaverIsSecure
UNIMPLEMENTED;
return TRUE;
}
/* /*
* @unimplemented * @unimplemented
*/ */