xref: /reactos/win32ss/gdi/eng/device.h (revision d6eebaa4)
1 
2 #pragma once
3 
4 #define TAG_GDEV 'gdev'
5 
6 VOID
7 NTAPI
8 PDEVOBJ_vRefreshModeList(
9     PPDEVOBJ ppdev);
10 
11 VOID
12 APIENTRY
13 EngFileWrite(
14     _In_ PFILE_OBJECT pFileObject,
15     _In_reads_(nLength) PVOID lpBuffer,
16     _In_ SIZE_T nLength,
17     _Out_ PSIZE_T lpBytesWritten);
18 
19 PGRAPHICS_DEVICE
20 NTAPI
21 EngpFindGraphicsDevice(
22     _In_opt_ PUNICODE_STRING pustrDevice,
23     _In_ ULONG iDevNum);
24 
25 PGRAPHICS_DEVICE
26 NTAPI
27 EngpRegisterGraphicsDevice(
28     _In_ PUNICODE_STRING pustrDeviceName,
29     _In_ PUNICODE_STRING pustrDiplayDrivers,
30     _In_ PUNICODE_STRING pustrDescription);
31 
32 NTSTATUS
33 EngpUpdateGraphicsDeviceList(VOID);
34 
35 /* Read configuration of a graphics card from registry:
36  * - pGraphicsDevice: instance of the graphics card
37  * - pdm: on output, contains the values read in registry
38  * Return value: a STATUS_* value
39  * Assume that pdm has already been zero-filled.
40  * Note that dmFields is not updated. */
41 NTSTATUS
42 EngpGetDisplayDriverParameters(
43     _In_ PGRAPHICS_DEVICE pGraphicsDevice,
44     _Out_ PDEVMODEW pdm);
45 
46 /* Read acceleration level of a graphics card from registry
47  * - pGraphicsDevice: instance of the graphics card
48  * - Return value: acceleration level stored in registry */
49 DWORD
50 EngpGetDisplayDriverAccelerationLevel(
51     _In_ PGRAPHICS_DEVICE pGraphicsDevice);
52 
53 CODE_SEG("INIT")
54 NTSTATUS
55 NTAPI
56 InitDeviceImpl(VOID);
57 
58