ReactOS 0.4.15-dev-7958-gcd0bb1a
device.h
Go to the documentation of this file.
1
2#pragma once
3
4#define TAG_GDEV 'gdev'
5
9 PPDEVOBJ ppdev);
10
13
14VOID
17 _In_ PFILE_OBJECT pFileObject,
20 _Out_ PSIZE_T lpBytesWritten);
21
25 _In_opt_ PUNICODE_STRING pustrDevice,
26 _In_ ULONG iDevNum);
27
31 _In_ PUNICODE_STRING pustrDeviceName,
32 _In_ PUNICODE_STRING pustrDiplayDrivers,
33 _In_ PUNICODE_STRING pustrDescription);
34
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. */
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 */
54 _In_ PGRAPHICS_DEVICE pGraphicsDevice);
55
56CODE_SEG("INIT")
60
#define CODE_SEG(...)
LONG NTSTATUS
Definition: precomp.h:26
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
Definition: db.cpp:175
#define APIENTRY
Definition: api.h:79
unsigned long DWORD
Definition: ntddk_ex.h:95
#define _Out_
Definition: ms_sal.h:345
#define _In_
Definition: ms_sal.h:308
#define _In_opt_
Definition: ms_sal.h:309
#define _In_reads_(size)
Definition: ms_sal.h:319
ULONG_PTR * PSIZE_T
Definition: typedefs.h:80
#define NTAPI
Definition: typedefs.h:36
ULONG_PTR SIZE_T
Definition: typedefs.h:80
uint32_t ULONG
Definition: typedefs.h:59
PGRAPHICS_DEVICE NTAPI EngpRegisterGraphicsDevice(_In_ PUNICODE_STRING pustrDeviceName, _In_ PUNICODE_STRING pustrDiplayDrivers, _In_ PUNICODE_STRING pustrDescription)
Definition: device.c:497
NTSTATUS EngpGetDisplayDriverParameters(_In_ PGRAPHICS_DEVICE pGraphicsDevice, _Out_ PDEVMODEW pdm)
Definition: device.c:354
DWORD EngpGetDisplayDriverAccelerationLevel(_In_ PGRAPHICS_DEVICE pGraphicsDevice)
Definition: device.c:400
PGRAPHICS_DEVICE NTAPI EngpFindGraphicsDevice(_In_opt_ PUNICODE_STRING pustrDevice, _In_ ULONG iDevNum)
Definition: device.c:641
NTSTATUS EngpUpdateGraphicsDeviceList(VOID)
Definition: device.c:174
VOID NTAPI PDEVOBJ_vRefreshModeList(PPDEVOBJ ppdev)
Definition: pdevobj.c:436
VOID APIENTRY EngFileWrite(_In_ PFILE_OBJECT pFileObject, _In_reads_(nLength) PVOID lpBuffer, _In_ SIZE_T nLength, _Out_ PSIZE_T lpBytesWritten)
Definition: device.c:754
PGRAPHICS_DEVICE gpPrimaryGraphicsDevice
Definition: device.c:15
NTSTATUS NTAPI InitDeviceImpl(VOID)
Definition: device.c:26
PGRAPHICS_DEVICE gpVgaGraphicsDevice
Definition: device.c:16
_In_ DWORD nLength
Definition: wincon.h:473
* PFILE_OBJECT
Definition: iotypes.h:1998