reactos/win32ss/gdi/eng/device.h
Hervé Poussineau 9acd895f18 [WIN32SS] Copy loading of registry settings from mdevobj.c to new function
This function will be used in next commit, and duplicated implementation
in mdevobj.c will be dropped.
2022-05-22 17:32:40 +02:00

56 lines
1.2 KiB
C

#pragma once
#define TAG_GDEV 'gdev'
VOID
NTAPI
PDEVOBJ_vRefreshModeList(
PPDEVOBJ ppdev);
extern PGRAPHICS_DEVICE gpPrimaryGraphicsDevice;
extern PGRAPHICS_DEVICE gpVgaGraphicsDevice;
VOID
APIENTRY
EngFileWrite(
_In_ PFILE_OBJECT pFileObject,
_In_reads_(nLength) PVOID lpBuffer,
_In_ SIZE_T nLength,
_Out_ PSIZE_T lpBytesWritten);
PGRAPHICS_DEVICE
NTAPI
EngpFindGraphicsDevice(
_In_opt_ PUNICODE_STRING pustrDevice,
_In_ ULONG iDevNum);
PGRAPHICS_DEVICE
NTAPI
EngpRegisterGraphicsDevice(
_In_ PUNICODE_STRING pustrDeviceName,
_In_ PUNICODE_STRING pustrDiplayDrivers,
_In_ PUNICODE_STRING pustrDescription);
NTSTATUS
EngpUpdateGraphicsDeviceList(VOID);
/* Read configuration of a graphics card from registry:
* - pGraphicsDevice: instance of the graphics card
* - pdm: on output, contains the values read in registry
* - pdwAccelerationLevel: acceleration level stored in registry
* Return value: a STATUS_* value
* Assume that pdm has already been zero-filled.
* Note that dmFields is not updated. */
NTSTATUS
EngpGetDisplayDriverParameters(
_In_ PGRAPHICS_DEVICE pGraphicsDevice,
_Out_ PDEVMODEW pdm,
_Out_opt_ PDWORD pdwAccelerationLevel);
CODE_SEG("INIT")
NTSTATUS
NTAPI
InitDeviceImpl(VOID);