mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[DESK] Start video card after its installation + let win32k detect it
This commit is contained in:
parent
6739fb1bc3
commit
c3da00c42c
1 changed files with 13 additions and 0 deletions
|
@ -25,6 +25,7 @@ DisplayClassInstaller(
|
|||
TCHAR ServiceName[MAX_SERVICE_NAME_LEN];
|
||||
TCHAR DeviceName[12];
|
||||
SP_DRVINFO_DETAIL_DATA DriverInfoDetailData;
|
||||
DISPLAY_DEVICE DisplayDevice;
|
||||
HKEY hDriverKey = INVALID_HANDLE_VALUE; /* SetupDiOpenDevRegKey returns INVALID_HANDLE_VALUE in case of error! */
|
||||
HKEY hSettingsKey = NULL;
|
||||
HKEY hServicesKey = NULL;
|
||||
|
@ -245,6 +246,18 @@ DisplayClassInstaller(
|
|||
|
||||
/* FIXME: install OpenGLSoftwareSettings section */
|
||||
|
||||
/* Start the device */
|
||||
if (!SetupDiRestartDevices(DeviceInfoSet, DeviceInfoData))
|
||||
{
|
||||
rc = GetLastError();
|
||||
DPRINT1("SetupDiRestartDevices() failed with error 0x%lx\n", rc);
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
/* Reenumerate display devices ; this will rescan for potential new devices */
|
||||
DisplayDevice.cb = sizeof(DISPLAY_DEVICE);
|
||||
EnumDisplayDevices(NULL, 0, &DisplayDevice, 0);
|
||||
|
||||
rc = ERROR_SUCCESS;
|
||||
|
||||
cleanup:
|
||||
|
|
Loading…
Reference in a new issue