mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 13:05:44 +00:00
[FORMATTING] Replace tabs by spaces
Replace some DPRINT1 by DPRINT svn path=/trunk/; revision=23084
This commit is contained in:
parent
2f8950ce51
commit
72185bb72b
2 changed files with 124 additions and 124 deletions
|
@ -3357,17 +3357,17 @@ CSR_API(CsrStartScreenSaver)
|
||||||
4. Move the code to winlogon SAS and screen saver must run in
|
4. Move the code to winlogon SAS and screen saver must run in
|
||||||
the secuar desktop. But current our Winlogon does not working
|
the secuar desktop. But current our Winlogon does not working
|
||||||
well with SAS and with Secure desktop, So I (Magnus Olsen aka GreatLord)
|
well with SAS and with Secure desktop, So I (Magnus Olsen aka GreatLord)
|
||||||
add the code here as w3seek recommended
|
add the code here as w3seek recomandete
|
||||||
*/
|
*/
|
||||||
|
|
||||||
result = RegOpenKeyExW(HKEY_CURRENT_USER, L"Control Panel\\Desktop", 0, KEY_ALL_ACCESS, &hKey);
|
result = RegOpenKeyExW(HKEY_CURRENT_USER, L"Control Panel\\Desktop", 0, KEY_QUERY_VALUE, &hKey);
|
||||||
if (result == ERROR_SUCCESS)
|
if (result == ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
result = RegQueryValueExW(hKey, L"SCRNSAVE.EXE", 0, &varType, (LPBYTE)szBuffer, &bufferSize);
|
result = RegQueryValueExW(hKey, L"SCRNSAVE.EXE", 0, &varType, (LPBYTE)szBuffer, &bufferSize);
|
||||||
if(result == ERROR_SUCCESS)
|
if(result == ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
swprintf(szCmdline, L"%s /s",szBuffer);
|
swprintf(szCmdline, L"%s /s",szBuffer);
|
||||||
DPRINT1("CsrStartScreenSaver : OK %S, Name %S\n", szCmdline, szBuffer);
|
DPRINT("CsrStartScreenSaver : OK %S, Name %S\n", szCmdline, szBuffer);
|
||||||
ZeroMemory( &si, sizeof(si) );
|
ZeroMemory( &si, sizeof(si) );
|
||||||
si.cb = sizeof(si);
|
si.cb = sizeof(si);
|
||||||
ZeroMemory( &pi, sizeof(pi) );
|
ZeroMemory( &pi, sizeof(pi) );
|
||||||
|
@ -3381,7 +3381,7 @@ CSR_API(CsrStartScreenSaver)
|
||||||
{
|
{
|
||||||
GetSystemDirectoryW(szCmdline,MAX_PATH);
|
GetSystemDirectoryW(szCmdline,MAX_PATH);
|
||||||
wprintf(szCmdline, L"%s\\%s /s",szCmdline,szBuffer);
|
wprintf(szCmdline, L"%s\\%s /s",szCmdline,szBuffer);
|
||||||
DPRINT1("CsrStartScreenSaver : OK %S, Name %S\n", szCmdline, szBuffer);
|
DPRINT("CsrStartScreenSaver : OK %S, Name %S\n", szCmdline, szBuffer);
|
||||||
ZeroMemory( &si, sizeof(si) );
|
ZeroMemory( &si, sizeof(si) );
|
||||||
si.cb = sizeof(si);
|
si.cb = sizeof(si);
|
||||||
ZeroMemory( &pi, sizeof(pi) );
|
ZeroMemory( &pi, sizeof(pi) );
|
||||||
|
@ -3392,14 +3392,14 @@ CSR_API(CsrStartScreenSaver)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DPRINT1("CsrStartScreenSaver : failed 0x%08X\n", result);
|
DPRINT("CsrStartScreenSaver : failed 0x%08X\n", result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
RegCloseKey(hKey);
|
RegCloseKey(hKey);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DPRINT1("CsrStartScreenSaver : failed to RegOpenKeyExW 0x%08X\n", result);
|
DPRINT1("CsrStartScreenSaver : failed to RegOpenKeyExW (error 0x%lx)\n", result);
|
||||||
}
|
}
|
||||||
return Request->Status = STATUS_SUCCESS;
|
return Request->Status = STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
|
@ -167,7 +167,7 @@ ScreenSaverThreadMain(PVOID StartContext)
|
||||||
UINT ScreenSaverTimeOut = 0;
|
UINT ScreenSaverTimeOut = 0;
|
||||||
BOOL nPreviousState = FALSE;
|
BOOL nPreviousState = FALSE;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
BOOL FristTime = TRUE;
|
BOOL FirstTime = TRUE;
|
||||||
|
|
||||||
|
|
||||||
KeSetPriorityThread(&PsGetCurrentThread()->Tcb,
|
KeSetPriorityThread(&PsGetCurrentThread()->Tcb,
|
||||||
|
@ -217,12 +217,12 @@ ScreenSaverThreadMain(PVOID StartContext)
|
||||||
(nPreviousState == FALSE))
|
(nPreviousState == FALSE))
|
||||||
{
|
{
|
||||||
BOOL nPreviousState = FALSE;
|
BOOL nPreviousState = FALSE;
|
||||||
DPRINT1("Keyboard and Mouse TimeOut Starting Screen Saver ...\n");
|
DPRINT("Keyboard and Mouse TimeOut Starting Screen Saver ...\n");
|
||||||
DPRINT1(" %I64d Keyboard Timeout Value\n",DiffTimeKeyboard.QuadPart);
|
DPRINT(" %I64d Keyboard Timeout Value\n",DiffTimeKeyboard.QuadPart);
|
||||||
DPRINT1(" %I64d Mouse Timeout Value \n",DiffTimeMouse.QuadPart);
|
DPRINT(" %I64d Mouse Timeout Value \n",DiffTimeMouse.QuadPart);
|
||||||
DPRINT1(" %I64d TimeOut \n",DiffTimeMouse.QuadPart);
|
DPRINT(" %I64d TimeOut \n",DiffTimeMouse.QuadPart);
|
||||||
|
|
||||||
if (FristTime == FALSE)
|
if (FirstTime == FALSE)
|
||||||
{
|
{
|
||||||
CSR_API_MESSAGE Request;
|
CSR_API_MESSAGE Request;
|
||||||
CsrInit();
|
CsrInit();
|
||||||
|
@ -234,7 +234,7 @@ ScreenSaverThreadMain(PVOID StartContext)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
FristTime = FALSE;
|
FirstTime = FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue