ReactOS 0.4.15-dev-7906-g1b85a5f
ldevobj.h
Go to the documentation of this file.
1
3
5
6typedef enum
7{
14} LDEVTYPE;
15
16typedef struct _LDEVOBJ
17{
23
24 union
25 {
28 };
29
31
32CODE_SEG("INIT")
36
37/* Get all available device modes from a driver
38 * - pwszDriverName: name of the driver
39 * - hDriver: handle of the driver
40 * - ppdm: allocated memory containing driver modes or NULL on error
41 * Return value: number of bytes allocated for *ppdm buffer or 0 on error
42 */
45 _In_ LPWSTR pwszDriverName,
47 _Out_ PDEVMODEW *ppdm);
48
51 _In_ PFN_DrvEnableDriver pfnEnableDriver,
52 _In_ ULONG ldevtype);
53
57 _In_z_ LPWSTR pwszDriverName,
58 _In_ ULONG ldevtype);
59
60BOOL
62 _Inout_ PGRAPHICS_DEVICE pGraphicsDevice);
63
64/* This function selects the best available mode corresponding to requested mode */
65BOOL
67 _Inout_ PGRAPHICS_DEVICE pGraphicsDevice,
68 _In_ PDEVMODEW RequestedMode,
69 _Out_ PDEVMODEW *pSelectedMode,
70 _In_ BOOL bSearchClosestMode);
71
72CODE_SEG("INIT")
78
#define CODE_SEG(...)
LONG NTSTATUS
Definition: precomp.h:26
#define APIENTRY
Definition: api.h:79
DRIVER_INITIALIZE DriverEntry
Definition: condrv.c:21
unsigned int BOOL
Definition: ntddk_ex.h:94
LDEVTYPE
Definition: ldevobj.h:7
@ LDEV_IMAGE
Definition: ldevobj.h:12
@ LDEV_FONT
Definition: ldevobj.h:13
@ LDEV_DEVICE_PRINTER
Definition: ldevobj.h:9
@ LDEV_DEVICE_DISPLAY
Definition: ldevobj.h:8
@ LDEV_DEVICE_MIRROR
Definition: ldevobj.h:11
@ LDEV_DEVICE_META
Definition: ldevobj.h:10
PLDEVOBJ APIENTRY LDEVOBJ_pLoadDriver(_In_z_ LPWSTR pwszDriverName, _In_ ULONG ldevtype)
Definition: ldevobj.c:347
ULONG LDEVOBJ_ulGetDriverModes(_In_ LPWSTR pwszDriverName, _In_ HANDLE hDriver, _Out_ PDEVMODEW *ppdm)
Definition: ldevobj.c:511
static const unsigned GDI_ENGINE_VERSION
Definition: ldevobj.h:4
BOOL LDEVOBJ_bBuildDevmodeList(_Inout_ PGRAPHICS_DEVICE pGraphicsDevice)
Definition: ldevobj.c:565
struct _LDEVOBJ * PLDEVOBJ
IMAGE_DOS_HEADER __ImageBase
struct _LDEVOBJ LDEVOBJ
BOOL LDEVOBJ_bProbeAndCaptureDevmode(_Inout_ PGRAPHICS_DEVICE pGraphicsDevice, _In_ PDEVMODEW RequestedMode, _Out_ PDEVMODEW *pSelectedMode, _In_ BOOL bSearchClosestMode)
Definition: ldevobj.c:737
PLDEVOBJ LDEVOBJ_pLoadInternal(_In_ PFN_DrvEnableDriver pfnEnableDriver, _In_ ULONG ldevtype)
Definition: ldevobj.c:303
NTSTATUS NTAPI InitLDEVImpl(VOID)
Definition: ldevobj.c:30
#define _Inout_
Definition: ms_sal.h:378
#define _In_z_
Definition: ms_sal.h:313
#define _Out_
Definition: ms_sal.h:345
#define _In_
Definition: ms_sal.h:308
LIST_ENTRY leLink
Definition: ldevobj.h:18
SYSTEM_GDI_DRIVER_INFORMATION * pGdiDriverInfo
Definition: ldevobj.h:19
ULONG cRefs
Definition: ldevobj.h:21
ULONG ulDriverVersion
Definition: ldevobj.h:22
LDEVTYPE ldevtype
Definition: ldevobj.h:20
PVOID apfn[INDEX_LAST]
Definition: ldevobj.h:26
DRIVER_FUNCTIONS pfn
Definition: ldevobj.h:27
Definition: typedefs.h:120
#define NTAPI
Definition: typedefs.h:36
uint32_t ULONG
Definition: typedefs.h:59
_Must_inspect_result_ _In_ PDRIVER_OBJECT _In_ PCUNICODE_STRING RegistryPath
Definition: wdfdriver.h:215
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject
Definition: wdfdriver.h:213
#define DDI_DRIVER_VERSION_NT5_01
Definition: winddi.h:538
#define INDEX_LAST
Definition: winddi.h:521
FN_DrvEnableDriver * PFN_DrvEnableDriver
Definition: winddi.h:3542
_In_ LPWSTR _In_ ULONG _In_ ULONG _In_ ULONG _Out_ DEVINFO _In_ HDEV _In_ LPWSTR _In_ HANDLE hDriver
Definition: winddi.h:3557
WCHAR * LPWSTR
Definition: xmlstorage.h:184