mirror of
https://github.com/reactos/reactos.git
synced 2024-10-01 06:57:08 +00:00
[MSGINA]
- 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:
parent
be0ee09c4c
commit
48dd686b85
|
@ -186,6 +186,67 @@ WlxInitialize(
|
|||
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
|
||||
*/
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#define WIN32_NO_STATUS
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <wincon.h>
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue