From fb3185bf8530c86a6daf8415979e15e6c79e840c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Fri, 11 Jan 2008 13:00:44 +0000 Subject: [PATCH] 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 --- reactos/base/services/umpnpmgr/umpnpmgr.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/reactos/base/services/umpnpmgr/umpnpmgr.c b/reactos/base/services/umpnpmgr/umpnpmgr.c index a306ad7f700..8d8c1df046e 100644 --- a/reactos/base/services/umpnpmgr/umpnpmgr.c +++ b/reactos/base/services/umpnpmgr/umpnpmgr.c @@ -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)