mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:42:57 +00:00
Enable plug and play manager in livecd.
svn path=/trunk/; revision=23017
This commit is contained in:
parent
604e593d4d
commit
2c576de1f1
1 changed files with 25 additions and 0 deletions
|
@ -381,6 +381,31 @@ InstallLiveCD (HINSTANCE hInstance)
|
||||||
PROCESS_INFORMATION ProcessInformation;
|
PROCESS_INFORMATION ProcessInformation;
|
||||||
BOOL res;
|
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 */
|
/* Load the default shell */
|
||||||
rc = RegOpenKeyEx(
|
rc = RegOpenKeyEx(
|
||||||
HKEY_LOCAL_MACHINE,
|
HKEY_LOCAL_MACHINE,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue