ReactOS 0.4.15-dev-7918-g2a2556c
display.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

NTSTATUS NTAPI InitVideo (VOID)
 

Variables

BOOL gbBaseVideo
 

Function Documentation

◆ InitVideo()

NTSTATUS NTAPI InitVideo ( VOID  )

Definition at line 151 of file display.c.

152{
154 HKEY hkey;
155
156 TRACE("----------------------------- InitVideo() -------------------------------\n");
157
158 /* Check if VGA mode is requested, by finding the special volatile key created by VIDEOPRT */
159 Status = RegOpenKey(L"\\Registry\\Machine\\System\\CurrentControlSet\\Control\\GraphicsDrivers\\BaseVideo", &hkey);
160 if (NT_SUCCESS(Status))
161 ZwClose(hkey);
163 if (gbBaseVideo)
164 ERR("VGA mode requested.\n");
165
166 /* Initialize all display devices */
168 if (!NT_SUCCESS(Status))
169 return Status;
170
171 /* Check if we had any success */
173 {
174 /* Check if there is a VGA device we skipped */
176 {
177 /* There is, use the VGA device */
179 }
180 else
181 {
182 ERR("No usable display driver was found.\n");
183 return STATUS_UNSUCCESSFUL;
184 }
185 }
186
188
189 return STATUS_SUCCESS;
190}
LONG NTSTATUS
Definition: precomp.h:26
#define ERR(fmt,...)
Definition: debug.h:110
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
Status
Definition: gdiplustypes.h:25
NTSYSAPI NTSTATUS NTAPI ZwClose(_In_ HANDLE Handle)
#define L(x)
Definition: ntvdm.h:50
#define STATUS_SUCCESS
Definition: shellext.h:65
#define TRACE(s)
Definition: solgame.cpp:4
BOOL InitSysParams()
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132
NTSTATUS EngpUpdateGraphicsDeviceList(VOID)
Definition: device.c:174
PGRAPHICS_DEVICE gpPrimaryGraphicsDevice
Definition: device.c:15
PGRAPHICS_DEVICE gpVgaGraphicsDevice
Definition: device.c:16
BOOL gbBaseVideo
Definition: display.c:12
#define RegOpenKey
Definition: winreg.h:519

Referenced by UserInitialize().

Variable Documentation

◆ gbBaseVideo

BOOL gbBaseVideo
extern

Definition at line 12 of file display.c.

Referenced by EngpUpdateGraphicsDeviceList(), and InitVideo().