reactos/win32ss
Oleg Dubinskiy 114bc2b96e
[NTGDI][NTUSER] Load DirectX graphics driver at system startup (#4551)
CORE-18221

Load the DirectX graphics kernel driver (dxg.sys) by win32k at WINSRV
initialization time, in NtUserInitialize(). Keep it always loaded in
memory, as on Windows, instead of loading it only by DirectX dlls.

This fixes the problem of acessing this driver: we need only to 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 execution fails.

For example, it fixes display mode change problem in VMWare, when a
new mode fails to be applied. Indeed, when it manages DirectDraw stuff,
it calls DXG routines, and therefore fails if dxg.sys isn't loaded
in memory at this moment.

- Implement InitializeGreCSRSS() initialization routine, that initializes
  supplemental NTGDI/GRE data once CSRSS and WINSRV are loaded:
  * Call DxDdStartupDxGraphics() inside it, which loads dxg.sys.
  * Additionally, move fonts and language ID initialization there, from
   win32k!DriverEntry. Confirmed by analysis on Windows.

- Call InitializeGreCSRSS() in NtUserInitialize() main initialization routine
  (called by WINSRV initialization).

Moved to NTGDI from previously NTUSER place:

Co-authored-by: Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
2023-06-11 13:44:56 +02:00
..
drivers Enable framebuf_new driver (#4775) 2023-04-02 23:33:15 +09:00
gdi [NTGDI][NTUSER] Load DirectX graphics driver at system startup (#4551) 2023-06-11 13:44:56 +02:00
include Fix typo "managment" -> "management" in our codebase... 2023-06-04 21:39:56 +02:00
printing [SPOOLSS] Fix prototype of BuildOtherNamesFromMachineName 2022-12-01 20:17:40 +02:00
reactx [WIN32SS][NTDDRAW][NTGDI] Implement some DxEng* callbacks (#3638) 2022-06-01 00:58:35 +03:00
user [NTGDI][NTUSER] Load DirectX graphics driver at system startup (#4551) 2023-06-11 13:44:56 +02:00
CMakeLists.txt [WIN32K][WIN32U] Fix system call ids (#5287) 2023-05-28 16:19:50 +03:00
napi.h [WIN32K][WIN32U] Fix system call ids (#5287) 2023-05-28 16:19:50 +03:00
pch.h [WIN32K] Workaround for broken/retarded (on non-x86) FLOATOBJ_GetFloat 2022-12-13 07:18:24 +01:00
sys-stubs.S [WIN32K][WIN32U] Fix system call ids (#5287) 2023-05-28 16:19:50 +03:00
w32ksvc32.h [WIN32K][WIN32U] Fix system call ids (#5287) 2023-05-28 16:19:50 +03:00
w32ksvc64.h [WIN32K][WIN32U] Fix system call ids (#5287) 2023-05-28 16:19:50 +03:00
win32k.h Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
win32k.rc Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
win32k.spec [WIN32K] Add x64/arm exports 2021-06-12 14:11:14 +02:00
win32kp.h [WIN32SS:NTUSER] Extract InitVideo() prototype and gbBaseVideo variable to header 2022-11-15 23:15:26 +01:00