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