mirror of
https://github.com/reactos/reactos.git
synced 2024-11-10 00:34:39 +00:00
60 lines
1.4 KiB
C
60 lines
1.4 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
|
|
* 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);
|
|
|
|
/* Read acceleration level of a graphics card from registry
|
|
* - pGraphicsDevice: instance of the graphics card
|
|
* - Return value: acceleration level stored in registry */
|
|
DWORD
|
|
EngpGetDisplayDriverAccelerationLevel(
|
|
_In_ PGRAPHICS_DEVICE pGraphicsDevice);
|
|
|
|
CODE_SEG("INIT")
|
|
NTSTATUS
|
|
NTAPI
|
|
InitDeviceImpl(VOID);
|
|
|