ReactOS 0.4.16-dev-1484-g212a1a5
device.h
Go to the documentation of this file.
1
2#pragma once
3
4#define TAG_GDEV 'gdev'
5
9 PPDEVOBJ ppdev);
10
11VOID
14 _In_ PFILE_OBJECT pFileObject,
17 _Out_ PSIZE_T lpBytesWritten);
18
22 _In_ PGRAPHICS_DEVICE pGraphicsDevice);
23
27 _In_opt_ PUNICODE_STRING pustrDevice,
28 _In_ ULONG iDevNum);
29
33 _In_ PUNICODE_STRING pustrDeviceName,
34 _In_ PUNICODE_STRING pustrDiplayDrivers,
35 _In_ PUNICODE_STRING pustrDescription);
36
39
40/* Read configuration of a graphics card from registry:
41 * - pGraphicsDevice: instance of the graphics card
42 * - pdm: on output, contains the values read in registry
43 * Return value: a STATUS_* value
44 * Assume that pdm has already been zero-filled.
45 * Note that dmFields is not updated. */
48 _In_ PGRAPHICS_DEVICE pGraphicsDevice,
49 _Out_ PDEVMODEW pdm);
50
51/* Read acceleration level of a graphics card from registry
52 * - pGraphicsDevice: instance of the graphics card
53 * - Return value: acceleration level stored in registry */
56 _In_ PGRAPHICS_DEVICE pGraphicsDevice);
57
58CODE_SEG("INIT")
62
#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 _In_reads_(s)
Definition: no_sal2.h:168
#define _Out_
Definition: no_sal2.h:160
#define _In_
Definition: no_sal2.h:158
#define _In_opt_
Definition: no_sal2.h:212
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:647
NTSTATUS EngpGetDisplayDriverParameters(_In_ PGRAPHICS_DEVICE pGraphicsDevice, _Out_ PDEVMODEW pdm)
Definition: device.c:374
DWORD EngpGetDisplayDriverAccelerationLevel(_In_ PGRAPHICS_DEVICE pGraphicsDevice)
Definition: device.c:420
PGRAPHICS_DEVICE NTAPI EngpFindGraphicsDevice(_In_opt_ PUNICODE_STRING pustrDevice, _In_ ULONG iDevNum)
Definition: device.c:780
NTSTATUS EngpUpdateGraphicsDeviceList(VOID)
Definition: device.c:182
VOID NTAPI PDEVOBJ_vRefreshModeList(PPDEVOBJ ppdev)
Definition: pdevobj.c:436
NTSTATUS NTAPI EngpUpdateMonitorDevices(_In_ PGRAPHICS_DEVICE pGraphicsDevice)
Definition: device.c:568
VOID APIENTRY EngFileWrite(_In_ PFILE_OBJECT pFileObject, _In_reads_(nLength) PVOID lpBuffer, _In_ SIZE_T nLength, _Out_ PSIZE_T lpBytesWritten)
Definition: device.c:893
NTSTATUS NTAPI InitDeviceImpl(VOID)
Definition: device.c:26
WINBASEAPI _In_ DWORD nLength
Definition: wincon.h:682
* PFILE_OBJECT
Definition: iotypes.h:1998