[ros-diffs] [hpoussin] 23017: Enable plug and play manager in livecd.

hpoussin at svn.reactos.org hpoussin at svn.reactos.org
Wed Jul 12 13:54:04 CEST 2006


Author: hpoussin
Date: Wed Jul 12 15:54:04 2006
New Revision: 23017

URL: http://svn.reactos.org/svn/reactos?rev=23017&view=rev
Log:
Enable plug and play manager in livecd.

Modified:
    trunk/reactos/dll/win32/syssetup/install.c

Modified: trunk/reactos/dll/win32/syssetup/install.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/syssetup/install.c?rev=23017&r1=23016&r2=23017&view=diff
==============================================================================
--- trunk/reactos/dll/win32/syssetup/install.c (original)
+++ trunk/reactos/dll/win32/syssetup/install.c Wed Jul 12 15:54:04 2006
@@ -381,6 +381,31 @@
   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,




More information about the Ros-diffs mailing list