ReactOS  0.4.15-dev-4857-g47842d7
dispmode.c File Reference
#include <windef.h>
#include <winbase.h>
#include <wingdi.h>
#include <winuser.h>
#include <shimlib.h>
#include <setup_shim.inl>
#include <implement_shim.inl>
Include dependency graph for dispmode.c:

Go to the source code of this file.

Macros

#define WIN32_NO_STATUS
 
#define SHIM_NS   Force8BitColor
 
#define SHIM_NUM_HOOKS   0
 
#define SHIM_NOTIFY_FN   SHIM_OBJ_NAME(Notify)
 
#define SHIM_NS   Force640x480
 
#define SHIM_NUM_HOOKS   0
 
#define SHIM_NOTIFY_FN   SHIM_OBJ_NAME(Notify)
 

Functions

BOOL WINAPI SHIM_OBJ_NAME() Notify (DWORD fdwReason, PVOID ptr)
 

Macro Definition Documentation

◆ SHIM_NOTIFY_FN [1/2]

#define SHIM_NOTIFY_FN   SHIM_OBJ_NAME(Notify)

Definition at line 47 of file dispmode.c.

◆ SHIM_NOTIFY_FN [2/2]

#define SHIM_NOTIFY_FN   SHIM_OBJ_NAME(Notify)

Definition at line 47 of file dispmode.c.

◆ SHIM_NS [1/2]

#define SHIM_NS   Force8BitColor

Definition at line 43 of file dispmode.c.

◆ SHIM_NS [2/2]

#define SHIM_NS   Force640x480

Definition at line 43 of file dispmode.c.

◆ SHIM_NUM_HOOKS [1/2]

#define SHIM_NUM_HOOKS   0

Definition at line 46 of file dispmode.c.

◆ SHIM_NUM_HOOKS [2/2]

#define SHIM_NUM_HOOKS   0

Definition at line 46 of file dispmode.c.

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 8 of file dispmode.c.

Function Documentation

◆ Notify()

BOOL WINAPI SHIM_OBJ_NAME() Notify ( DWORD  fdwReason,
PVOID  ptr 
)

Definition at line 22 of file dispmode.c.

23 {
24  if (fdwReason == SHIM_REASON_INIT)
25  {
26  DEVMODEA dm = { { 0 } };
27  dm.dmSize = sizeof(dm);
29  dm.dmBitsPerPel != 8)
30  {
31  dm.dmBitsPerPel = 8;
32  dm.dmFields |= DM_BITSPERPEL;
34  }
35  }
36  return TRUE;
37 }
WORD dmSize
Definition: wingdi.h:1568
#define TRUE
Definition: types.h:120
#define CDS_FULLSCREEN
Definition: winuser.h:183
#define ENUM_CURRENT_SETTINGS
Definition: winuser.h:179
#define SHIM_REASON_INIT
Definition: shimlib.h:45
BOOL WINAPI EnumDisplaySettingsA(LPCSTR lpszDeviceName, DWORD iModeNum, LPDEVMODEA lpDevMode)
Definition: display.c:312
DWORD dmFields
Definition: wingdi.h:1570
DWORD dmBitsPerPel
Definition: wingdi.h:1595
#define NULL
Definition: types.h:112
LONG WINAPI ChangeDisplaySettingsA(LPDEVMODEA lpDevMode, DWORD dwflags)
Definition: display.c:570
#define DM_BITSPERPEL
Definition: wingdi.h:1268