From 2c576de1f177a96824da6e71d080bbcd50e20801 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Wed, 12 Jul 2006 11:54:04 +0000 Subject: [PATCH] Enable plug and play manager in livecd. svn path=/trunk/; revision=23017 --- reactos/dll/win32/syssetup/install.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/reactos/dll/win32/syssetup/install.c b/reactos/dll/win32/syssetup/install.c index 991a9c1ae82..63bd39d72ef 100644 --- a/reactos/dll/win32/syssetup/install.c +++ b/reactos/dll/win32/syssetup/install.c @@ -381,6 +381,31 @@ InstallLiveCD (HINSTANCE hInstance) PROCESS_INFORMATION ProcessInformation; BOOL res; + hSysSetupInf = SetupOpenInfFileW( + L"syssetup.inf", + NULL, + INF_STYLE_WIN4, + NULL); + if (hSysSetupInf == INVALID_HANDLE_VALUE) + { + DebugPrint("SetupOpenInfFileW() failed to open 'syssetup.inf' (Error: %lu)\n", GetLastError()); + return 0; + } + + if (!ProcessSysSetupInf()) + { + DebugPrint("ProcessSysSetupInf() failed!\n"); + return 0; + } + + SetupCloseInfFile(hSysSetupInf); + + if (!EnableUserModePnpManager()) + { + DebugPrint("EnableUserModePnpManager() failed!\n"); + return 0; + } + /* Load the default shell */ rc = RegOpenKeyEx( HKEY_LOCAL_MACHINE,