23static LOGFONTW SystemFont = { 16, 7, 0, 0, 700, 0, 0, 0,
ANSI_CHARSET,
OUT_DEFAULT_PRECIS,
CLIP_DEFAULT_PRECIS,
DEFAULT_QUALITY,
VARIABLE_PITCH |
FF_DONTCARE,
L"System" };
24static LOGFONTW AnsiVariableFont = { 12, 9, 0, 0, 400, 0, 0, 0,
ANSI_CHARSET,
OUT_DEFAULT_PRECIS,
CLIP_STROKE_PRECIS,
PROOF_QUALITY,
VARIABLE_PITCH |
FF_DONTCARE,
L"MS Sans Serif" };
25static LOGFONTW AnsiFixedFont = { 12, 9, 0, 0, 400, 0, 0, 0,
ANSI_CHARSET,
OUT_DEFAULT_PRECIS,
CLIP_STROKE_PRECIS,
PROOF_QUALITY,
FIXED_PITCH |
FF_DONTCARE,
L"Courier" };
54 if (
Modes.NumModes == 0)
59 *ModeInfoSize =
Modes.ModeInformationLength;
68 if (*ModeInfo ==
NULL)
78 *ModeInfo,
Modes.NumModes *
Modes.ModeInformationLength,
92 ulTemp =
Modes.NumModes;
93 ModeInfoPtr = *ModeInfo;
113 (((
PUCHAR)ModeInfoPtr) +
Modes.ModeInformationLength);
116 return Modes.NumModes;
149 ModeInfoPtr = ModeInfo;
150 while (ModeCount-- > 0)
152 if (ModeInfoPtr->
Length == 0)
155 (((
PUCHAR)ModeInfoPtr) + ModeInfoSize);
158 SelectedMode = ModeInfoPtr;
164 ModeInfoPtr = ModeInfo;
165 while (ModeCount-- > 0)
167 if (ModeInfoPtr->
Length > 0 &&
174 SelectedMode = ModeInfoPtr;
179 (((
PUCHAR)ModeInfoPtr) + ModeInfoSize);
183 if (SelectedMode ==
NULL)
242 NULL, 0, &ColorCapabilities,
381 return ModeCount *
sizeof(
DEVMODEW);
389 ModeInfoPtr = ModeInfo;
391 while (ModeCount-- > 0)
393 if (ModeInfoPtr->
Length == 0)
404 pdm->dmDriverExtra = 0;
408 pdm->dmDisplayFrequency = ModeInfoPtr->
Frequency;
409 pdm->dmDisplayFlags = 0;
#define memcpy(s1, s2, n)
#define VIDEO_MODE_GRAPHICS
struct _VIDEO_MODE_INFORMATION * PVIDEO_MODE_INFORMATION
#define VIDEO_DEVICE_COLOR
#define IOCTL_VIDEO_QUERY_AVAIL_MODES
#define IOCTL_VIDEO_QUERY_COLOR_CAPABILITIES
#define IOCTL_VIDEO_QUERY_NUM_AVAIL_MODES
void * EngAllocMem(int zero, unsigned long size, int tag=0)
LDECI4 YellowInMagentaDye
LDECI4 MagentaInYellowDye
static const VBE_MODE Modes[VBE_MODE_COUNT]
BOOL IntInitScreenInfo(PPDEV ppdev, LPDEVMODEW pDevMode, PGDIINFO pGdiInfo, PDEVINFO pDevInfo)
static LOGFONTW SystemFont
static LOGFONTW AnsiVariableFont
static LOGFONTW AnsiFixedFont
DWORD GetAvailableModes(HANDLE hDriver, PVIDEO_MODE_INFORMATION *ModeInfo, DWORD *ModeInfoSize)
#define HT_FLAG_ADDITIVE_PRIMS
FN_DrvGetModes DrvGetModes
#define GDI_DRIVER_VERSION
#define PRIMARY_ORDER_CBA
_In_ LPWSTR _In_ ULONG _In_ ULONG _In_ ULONG _Out_ DEVINFO _In_ HDEV _In_ LPWSTR _In_ HANDLE hDriver
#define DM_DISPLAYFREQUENCY
struct _devicemodeW * LPDEVMODEW
struct _devicemodeW DEVMODEW
#define OUT_DEFAULT_PRECIS
#define CLIP_DEFAULT_PRECIS
#define CLIP_STROKE_PRECIS