ReactOS  0.4.15-dev-5461-g062a8f2
ldevobj.h
Go to the documentation of this file.
1 
3 
5 
6 typedef enum
7 {
13  LDEV_FONT = 6,
14 } LDEVTYPE;
15 
16 typedef struct _LDEVOBJ
17 {
23 
24  union
25  {
28  };
29 
30 } LDEVOBJ, *PLDEVOBJ;
31 
32 CODE_SEG("INIT")
34 NTAPI
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  */
43 ULONG
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 
60 BOOL
62  _Inout_ PGRAPHICS_DEVICE pGraphicsDevice);
63 
64 /* This function selects the best available mode corresponding to requested mode */
65 BOOL
67  _Inout_ PGRAPHICS_DEVICE pGraphicsDevice,
68  _In_ PDEVMODEW RequestedMode,
69  _Out_ PDEVMODEW *pSelectedMode,
70  _In_ BOOL bSearchClosestMode);
71 
72 CODE_SEG("INIT")
78 
ULONG LDEVOBJ_ulGetDriverModes(_In_ LPWSTR pwszDriverName, _In_ HANDLE hDriver, _Out_ PDEVMODEW *ppdm)
Definition: ldevobj.c:509
BOOL LDEVOBJ_bBuildDevmodeList(_Inout_ PGRAPHICS_DEVICE pGraphicsDevice)
Definition: ldevobj.c:563
BOOL LDEVOBJ_bProbeAndCaptureDevmode(_Inout_ PGRAPHICS_DEVICE pGraphicsDevice, _In_ PDEVMODEW RequestedMode, _Out_ PDEVMODEW *pSelectedMode, _In_ BOOL bSearchClosestMode)
Definition: ldevobj.c:735
struct _LDEVOBJ LDEVOBJ
#define _Inout_
Definition: ms_sal.h:378
PLDEVOBJ APIENTRY LDEVOBJ_pLoadDriver(_In_z_ LPWSTR pwszDriverName, _In_ ULONG ldevtype)
Definition: ldevobj.c:347
#define _Out_
Definition: ms_sal.h:345
IMAGE_DOS_HEADER __ImageBase
Definition: mstscax.cpp:17
LONG NTSTATUS
Definition: precomp.h:26
_Must_inspect_result_ _In_ PDRIVER_OBJECT _In_ PCUNICODE_STRING RegistryPath
Definition: wdfdriver.h:213
_In_ LPWSTR _In_ ULONG _In_ ULONG _In_ ULONG _Out_ DEVINFO _In_ HDEV _In_ LPWSTR _In_ HANDLE hDriver
Definition: winddi.h:3553
PLDEVOBJ LDEVOBJ_pLoadInternal(_In_ PFN_DrvEnableDriver pfnEnableDriver, _In_ ULONG ldevtype)
Definition: ldevobj.c:303
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
unsigned int BOOL
Definition: ntddk_ex.h:94
static const unsigned GDI_ENGINE_VERSION
Definition: ldevobj.h:4
FN_DrvEnableDriver * PFN_DrvEnableDriver
Definition: winddi.h:3542
#define _In_
Definition: ms_sal.h:308
#define _In_z_
Definition: ms_sal.h:313
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject
Definition: wdfdriver.h:213
DRIVER_FUNCTIONS pfn
Definition: ldevobj.h:27
SYSTEM_GDI_DRIVER_INFORMATION * pGdiDriverInfo
Definition: ldevobj.h:19
#define INDEX_LAST
Definition: winddi.h:521
LDEVTYPE
Definition: ldevobj.h:6
Definition: typedefs.h:119
#define DDI_DRIVER_VERSION_NT5_01
Definition: winddi.h:538
NTSTATUS NTAPI InitLDEVImpl(VOID)
Definition: ldevobj.c:30
PVOID apfn[INDEX_LAST]
Definition: ldevobj.h:26
NTSTATUS APIENTRY DriverEntry(_In_ PDRIVER_OBJECT DriverObject, _In_ PUNICODE_STRING RegistryPath)
Definition: isapnp.c:1606
ULONG ulDriverVersion
Definition: ldevobj.h:22
struct _LDEVOBJ * PLDEVOBJ
unsigned int ULONG
Definition: retypes.h:1
LDEVTYPE ldevtype
Definition: ldevobj.h:20
LIST_ENTRY leLink
Definition: ldevobj.h:18
WCHAR * LPWSTR
Definition: xmlstorage.h:184
static CODE_SEG("PAGE")
Definition: isapnp.c:1482
#define APIENTRY
Definition: api.h:79
ULONG cRefs
Definition: ldevobj.h:21