ReactOS 0.4.16-dev-297-gc569aee
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_opt_ PUNICODE_STRING pustrDevice,
23 _In_ ULONG iDevNum);
24
28 _In_ PUNICODE_STRING pustrDeviceName,
29 _In_ PUNICODE_STRING pustrDiplayDrivers,
30 _In_ PUNICODE_STRING pustrDescription);
31
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. */
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 */
51 _In_ PGRAPHICS_DEVICE pGraphicsDevice);
52
53CODE_SEG("INIT")
57
#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: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
NTSTATUS NTAPI InitDeviceImpl(VOID)
Definition: device.c:26
_In_ DWORD nLength
Definition: wincon.h:473
* PFILE_OBJECT
Definition: iotypes.h:1998