mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 18:31:26 +00:00
Display hardware wizard only after user logged in.
It still needs improvement, to first try once to install without user intervention, and then, once an admin is logged on, ask it for still not installed devices. svn path=/trunk/; revision=31714
This commit is contained in:
parent
8f6a9bb877
commit
fb3185bf85
1 changed files with 7 additions and 2 deletions
|
@ -207,6 +207,9 @@ PNP_ReportLogOn(handle_t BindingHandle,
|
|||
|
||||
DPRINT("PNP_ReportLogOn(%u, %u) called\n", Admin, ProcessId);
|
||||
|
||||
if (hInstallEvent != NULL)
|
||||
SetEvent(hInstallEvent);
|
||||
|
||||
/* Get the users token */
|
||||
hProcess = OpenProcess(PROCESS_ALL_ACCESS,
|
||||
TRUE,
|
||||
|
@ -226,8 +229,8 @@ PNP_ReportLogOn(handle_t BindingHandle,
|
|||
}
|
||||
|
||||
/* Trigger the installer thread */
|
||||
if (hInstallEvent != NULL)
|
||||
SetEvent(hInstallEvent);
|
||||
/*if (hInstallEvent != NULL)
|
||||
SetEvent(hInstallEvent);*/
|
||||
|
||||
return CR_SUCCESS;
|
||||
}
|
||||
|
@ -1680,6 +1683,8 @@ DeviceInstallThread(LPVOID lpParameter)
|
|||
|
||||
UNREFERENCED_PARAMETER(lpParameter);
|
||||
|
||||
WaitForSingleObject(hInstallEvent, INFINITE);
|
||||
|
||||
showWizard = !SetupIsActive() && !IsConsoleBoot();
|
||||
|
||||
while (TRUE)
|
||||
|
|
Loading…
Reference in a new issue