Predicting_real_estate_prices_using_scikit-learn
Predicting_real_estate_prices_using_scikit-learn copied to clipboard
[WIN32SS][NTUSER] Load DirectX graphics driver at system startup
Purpose
Load DirectX graphics kernel driver (dxg.sys) by our win32k when the system starts up. Keep it always loaded in memory, like done in Windows, instead of loading only by DirectX dlls. It fixes the problem with accessing to this driver, so then we need only call DxDdEnableDirectDraw and do other stuff when DirectDraw/Direct3D is required by anything. In other cases, it is called from win32k PDEV* functions when changing display mode (as in Windows). Since it's used by other things too, it needs to be always loaded.
Otherwise, if it's not loaded, its APIs are not accessible when needed, and then execution fails.
It fixes display mode change problem in VMWare, when a new mode fails to be applied, because when it manages DirectDraw stuff, it calls DXG routines, and therefore fails if dxg.sys isn't loaded in memory at the moment.
JIRA issue: CORE-18221
Proposed changes
- Implement
InitializeGreCSRSS()initialization routine. Call win32k!DxDdStartupDxGraphicsinside it, which loads dxg.sys. Additionally, move fonts and language ID initialization intoInitializeGreCSRSS()from win32k!DriverEntry, as it is implemented in Windows. My analysis confirms thatDriverEntry()does not initialize fonts stuff and language ID. It's done inIntitializeGreCSRSS()instead. - Call
InitializeGreCSRSS()inNtUserInitialize()main initialization routine. My analysis confirms that this is correct, regarding the Windows implementation. :slightly_smiling_face:
NOTE 2: To see the bug, #4519 PR should also be applied.