mirror of
https://github.com/reactos/reactos.git
synced 2025-05-23 11:04:52 +00:00
[LSASS][SERVICES][WINLOGON]: As CSRSS and SMSS already, those apps should be marked as critical for the system. See http://www.geoffchappell.com/studies/windows/win32/ntdll/api/rtl/peb/setprocessiscritical.htm for more details.
svn path=/trunk/; revision=65488
This commit is contained in:
parent
d1f8d55254
commit
8b95166d91
3 changed files with 10 additions and 0 deletions
|
@ -46,6 +46,9 @@ wWinMain(IN HINSTANCE hInstance,
|
||||||
DPRINT("Local Security Authority Subsystem\n");
|
DPRINT("Local Security Authority Subsystem\n");
|
||||||
DPRINT(" Initializing...\n");
|
DPRINT(" Initializing...\n");
|
||||||
|
|
||||||
|
/* Make us critical */
|
||||||
|
RtlSetProcessIsCritical(TRUE, NULL, TRUE);
|
||||||
|
|
||||||
/* Initialize the LSA server DLL. */
|
/* Initialize the LSA server DLL. */
|
||||||
Status = LsapInitLsa();
|
Status = LsapInitLsa();
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
|
|
|
@ -316,6 +316,9 @@ wWinMain(HINSTANCE hInstance,
|
||||||
|
|
||||||
DPRINT("SERVICES: Service Control Manager\n");
|
DPRINT("SERVICES: Service Control Manager\n");
|
||||||
|
|
||||||
|
/* Make us critical */
|
||||||
|
RtlSetProcessIsCritical(TRUE, NULL, TRUE);
|
||||||
|
|
||||||
/* We are initializing ourselves */
|
/* We are initializing ourselves */
|
||||||
ScmInitialize = TRUE;
|
ScmInitialize = TRUE;
|
||||||
|
|
||||||
|
|
|
@ -318,6 +318,10 @@ WinMain(
|
||||||
|
|
||||||
hAppInstance = hInstance;
|
hAppInstance = hInstance;
|
||||||
|
|
||||||
|
/* Make us critical */
|
||||||
|
RtlSetProcessIsCritical(TRUE, NULL, FALSE);
|
||||||
|
RtlSetThreadIsCritical(TRUE, NULL, FALSE);
|
||||||
|
|
||||||
if (!RegisterLogonProcess(GetCurrentProcessId(), TRUE))
|
if (!RegisterLogonProcess(GetCurrentProcessId(), TRUE))
|
||||||
{
|
{
|
||||||
ERR("WL: Could not register logon process\n");
|
ERR("WL: Could not register logon process\n");
|
||||||
|
|
Loading…
Reference in a new issue