ReactOS  0.4.14-dev-552-g2fad488
enable.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS win32 subsystem
3  * LICENSE: GPL - See COPYING in the top level directory
4  * PURPOSE: GDI font driver for bitmap fonts
5  * PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org)
6  */
7 
8 #include "bmfd.h"
9 
10 static DRVFN gadrvfn[] =
11 {
25 };
26 
27 
28 ULONG
30 {
31  va_list args;
32 
34  EngDebugPrint("Bmfd: ", Format, args);
35  va_end(args);
36  return 0;
37 }
38 
39 
40 BOOL
43  ULONG iEngineVersion,
44  ULONG cj,
45  PDRVENABLEDATA pded)
46 {
47  DbgPrint("BmfdEnableDriver()\n");
48 
49  /* Check parameter */
50  if (cj < sizeof(DRVENABLEDATA))
51  {
52  return FALSE;
53  }
54 
55  /* Fill DRVENABLEDATA */
56  pded->c = sizeof(gadrvfn) / sizeof(DRVFN);
57  pded->pdrvfn = gadrvfn;
59 
60  /* Success */
61  return TRUE;
62 }
63 
64 
65 DHPDEV
68  IN DEVMODEW *pdm,
70  IN ULONG cPat,
71  OUT HSURF *phsurfPatterns,
72  IN ULONG cjCaps,
73  OUT ULONG *pdevcaps,
75  OUT DEVINFO *pdi,
76  IN HDEV hdev,
79 {
80  DbgPrint("BmfdEnablePDEV(hdev=%p)\n", hdev);
81 
82  /* Return a dummy DHPDEV */
83  return (PVOID)1;
84 }
85 
86 
87 VOID
90  IN DHPDEV dhpdev,
91  IN HDEV hdev)
92 {
93  DbgPrint("BmfdCompletePDEV()\n");
94  /* Nothing to do */
95 }
96 
97 
98 VOID
101  IN DHPDEV dhpdev)
102 {
103  DbgPrint("BmfdDisablePDEV()\n");
104  /* Nothing to do */
105 }
signed char * PCHAR
Definition: retypes.h:7
static DRVFN gadrvfn[]
Definition: enable.c:10
#define IN
Definition: typedefs.h:38
ENGAPI VOID APIENTRY EngDebugPrint(_In_z_ PCHAR StandardPrefix, _In_z_ PCHAR DebugMessage, _In_ va_list ap)
Definition: debug.c:19
VOID APIENTRY BmfdDestroyFont(IN FONTOBJ *pfo)
Definition: font.c:683
#define TRUE
Definition: types.h:120
_In_ ULONG cj
Definition: winddi.h:3540
#define INDEX_DrvCompletePDEV
Definition: winddi.h:417
typedef DHPDEV(APIENTRY FN_DrvEnablePDEV)(_In_ DEVMODEW *pdm
BOOL APIENTRY BmfdEnableDriver(ULONG iEngineVersion, ULONG cj, PDRVENABLEDATA pded)
Definition: enable.c:42
PVOID APIENTRY BmfdQueryFontTree(DHPDEV dhpdev, ULONG_PTR iFile, ULONG iFace, ULONG iMode, ULONG_PTR *pid)
Definition: font.c:383
LONG APIENTRY BmfdQueryFontData(DHPDEV dhpdev, FONTOBJ *pfo, ULONG iMode, HGLYPH hg, OUT GLYPHDATA *pgd, PVOID pv, ULONG cjSize)
Definition: glyph.c:316
#define INDEX_DrvQueryFontCaps
Definition: winddi.h:460
BOOL APIENTRY BmfdUnloadFontFile(IN ULONG_PTR iFile)
Definition: font.c:298
LONG APIENTRY BmfdQueryFontCaps(ULONG culCaps, ULONG *pulCaps)
Definition: font.c:361
#define INDEX_DrvEnablePDEV
Definition: winddi.h:416
VOID APIENTRY BmfdCompletePDEV(IN DHPDEV dhpdev, IN HDEV hdev)
Definition: enable.c:89
PIFIMETRICS APIENTRY BmfdQueryFont(IN DHPDEV dhpdev, IN ULONG_PTR iFile, IN ULONG iFace, IN ULONG_PTR *pid)
Definition: font.c:510
_In_ LPWSTR _In_ ULONG _In_ ULONG _In_ ULONG _Out_ DEVINFO _In_ HDEV _In_ LPWSTR _In_ HANDLE hDriver
Definition: winddi.h:3553
Definition: match.c:390
#define INDEX_DrvUnloadFontFile
Definition: winddi.h:462
#define INDEX_DrvLoadFontFile
Definition: winddi.h:461
#define INDEX_DrvQueryFontData
Definition: winddi.h:444
#define va_end(ap)
Definition: acmsvcex.h:90
unsigned int BOOL
Definition: ntddk_ex.h:94
VOID APIENTRY BmfdDisablePDEV(IN DHPDEV dhpdev)
Definition: enable.c:100
char * va_list
Definition: acmsvcex.h:78
#define DDI_DRIVER_VERSION_NT5
Definition: winddi.h:537
#define INDEX_DrvQueryFontTree
Definition: winddi.h:443
typedef HSURF(APIENTRY FN_DrvEnableSurface)(_In_ DHPDEV dhpdev)
#define INDEX_DrvQueryFont
Definition: winddi.h:442
LONG APIENTRY BmfdQueryFontFile(ULONG_PTR iFile, ULONG ulMode, ULONG cjBuf, ULONG *pulBuf)
Definition: font.c:317
DRVFN * pdrvfn
Definition: winddi.h:544
_In_ LPWSTR pwszLogAddress
Definition: winddi.h:3548
PFD_GLYPHATTR APIENTRY BmfdQueryGlyphAttrs(FONTOBJ *pfo, ULONG iMode)
Definition: glyph.c:305
#define INDEX_DrvQueryFontFile
Definition: winddi.h:467
VOID APIENTRY BmfdFree(PVOID pv, ULONG_PTR id)
Definition: font.c:669
_In_ LPWSTR _In_ ULONG _In_ ULONG _In_ ULONG _Out_ DEVINFO _In_ HDEV _In_ LPWSTR pwszDeviceName
Definition: winddi.h:3553
BOOLEAN(* PFN)(PARGS)
Definition: parse.h:47
#define INDEX_DrvQueryGlyphAttrs
Definition: winddi.h:502
_In_ LPWSTR _In_ ULONG cPat
Definition: winddi.h:3548
#define INDEX_DrvFree
Definition: winddi.h:458
_In_ LPWSTR _In_ ULONG _In_ ULONG _In_ ULONG cjDevInfo
Definition: winddi.h:3553
ULONG iDriverVersion
Definition: winddi.h:542
#define va_start(ap, A)
Definition: acmsvcex.h:91
#define INDEX_DrvDisablePDEV
Definition: winddi.h:418
DHPDEV APIENTRY BmfdEnablePDEV(IN DEVMODEW *pdm, IN LPWSTR pwszLogAddress, IN ULONG cPat, OUT HSURF *phsurfPatterns, IN ULONG cjCaps, OUT ULONG *pdevcaps, IN ULONG cjDevInfo, OUT DEVINFO *pdi, IN HDEV hdev, IN LPWSTR pwszDeviceName, IN HANDLE hDriver)
Definition: enable.c:67
_In_ LPWSTR _In_ ULONG _In_ ULONG cjCaps
Definition: winddi.h:3551
#define OUT
Definition: typedefs.h:39
unsigned int ULONG
Definition: retypes.h:1
WCHAR * LPWSTR
Definition: xmlstorage.h:184
#define args
Definition: format.c:66
#define INDEX_DrvDestroyFont
Definition: winddi.h:459
Definition: winddi.h:529
ULONG DbgPrint(PCCH Format,...)
Definition: enable.c:589
_In_ HDEV hdev
Definition: winddi.h:3449
ULONG_PTR APIENTRY BmfdLoadFontFile(ULONG cFiles, ULONG_PTR *piFile, PVOID *ppvView, ULONG *pcjView, DESIGNVECTOR *pdv, ULONG ulLangID, ULONG ulFastCheckSum)
Definition: font.c:236
#define APIENTRY
Definition: api.h:79
_In_ LPWSTR _In_ ULONG _In_ ULONG _In_ ULONG _Out_ DEVINFO * pdi
Definition: winddi.h:3553