[UXTHEME] Greatly reduce the number of times we open the theme data for the non clien...
[reactos.git] / reactos / win32ss / include / ntgdibad.h
1 #ifndef WIN32K_NTGDI_BAD_INCLUDED
2 #define WIN32K_NTGDI_BAD_INCLUDED
3
4 /*
5 *
6 * If you want to help, please read this:
7 *
8 * This file contains NtGdi APIs which are specific to ROS, including
9 * a short comment describing the solution on how to use the actual NtGdi
10 * call documented in ntgdi.h. Here are the main cases and information on
11 * how to remove them from this header.
12 *
13 * - Simple rename. This deals with an API simply having a different name,
14 * with absolutely no other changes needed.
15 * - Rename and new parameters. This deals with a case similar to the one
16 * above, except that new parameters have now
17 * been added. This is also usually extremly
18 * simple to fix. Either pass the right params
19 * or pass null/0 values that you ignore.
20 * - Rename and new structure. This is similar to the above, except that the
21 * information is now passed in a differently
22 * named and organized structure. Ask Alex for
23 * the structure you need and he will add it to
24 * ntgdityp.h
25 * - Rename and different semantics. Similar to the previous examples, except
26 * that parameters have usually been removed
27 * or need to be converted in user-mode in
28 * one form of another.
29 * - Does not exist: user-mode. This means that the API can be fully done in
30 * user mode. In 80% of cases, our API was already
31 * returning NOT_IMPLEMENTED in kernel-mode, so
32 * the work to be done is minimal. A good example
33 * are the ICM and Metafile APIs, which can simply
34 * be removed and added into gdi32.
35 * - Does not exist: GDI Shared Objects. This is by far the hardest case. This
36 * class cannot be fixed until ReactOS
37 * has a working Shared GDI Object table
38 * and a DC_ATTR structure in which the
39 * attributes, selection and deletion of
40 * objects can be quickly done from user-
41 * mode without requiring a kernel mode
42 * call.
43 */
44 /* Should be using ENUMFONTDATAW */
45 typedef struct tagFONTFAMILYINFO
46 {
47 ENUMLOGFONTEXW EnumLogFontEx;
48 NEWTEXTMETRICEXW NewTextMetricEx;
49 DWORD FontType;
50 } FONTFAMILYINFO, *PFONTFAMILYINFO;
51
52 /* Should be using NtGdiEnumFontChunk */
53 INT
54 NTAPI
55 NtGdiGetFontFamilyInfo(
56 HDC Dc,
57 LPLOGFONTW LogFont,
58 PFONTFAMILYINFO Info,
59 DWORD Size
60 );
61
62 /* Use NtGdiGetDCPoint with GdiGetViewPortExt */
63 BOOL APIENTRY NtGdiGetViewportExtEx(HDC hDC, LPSIZE viewportExt);
64
65 /* Needs to be done in user-mode. */
66 BOOL APIENTRY NtGdiGetViewportOrgEx(HDC hDC, LPPOINT viewportOrg);
67
68 /* Needs to be done in user-mode. */
69 BOOL APIENTRY NtGdiGetWindowExtEx(HDC hDC, LPSIZE windowExt);
70
71 /* Needs to be done in user-mode. */
72 BOOL APIENTRY NtGdiGetWindowOrgEx(HDC hDC, LPPOINT windowOrg);
73
74 /* Needs to be done in user-mode. */
75 BOOL
76 APIENTRY
77 NtGdiOffsetViewportOrgEx (
78 HDC hDC,
79 int XOffset,
80 int YOffset,
81 LPPOINT Point
82 );
83
84 /* Needs to be done in user-mode. */
85 BOOL
86 APIENTRY
87 NtGdiOffsetWindowOrgEx (
88 HDC hDC,
89 int XOffset,
90 int YOffset,
91 LPPOINT Point
92 );
93
94 /* Needs to be done in user-mode. */
95 BOOL
96 APIENTRY
97 NtGdiSetViewportOrgEx (
98 HDC hDC,
99 int X,
100 int Y,
101 LPPOINT Point
102 );
103
104 /* Needs to be done in user-mode. */
105 BOOL
106 APIENTRY
107 NtGdiSetWindowOrgEx (
108 HDC hDC,
109 int X,
110 int Y,
111 LPPOINT Point
112 );
113
114 #endif /* WIN32K_NTGDI_BAD_INCLUDED */
115
116
117 /* Follow thing need be rewriten
118 *
119 * Opengl icd are complete hacked in reactos and are using own way, this need be rewriten and be setup with the correct syscall
120 * and the opengl32 shall using correct syscall to optain then driver interface or using the correct version in gdi32.
121 * it mean whole icd are hacked in frist place and need be rewtiten from scrash. and it need enum the opengl correct way and
122 * export the driver correct
123 *
124 * DirectX aka ReactX alot api that have been implement in reactos win32k for ReactX shall move to a file call dxg.sys
125 * there from it will really doing the stuff. And we should setup loading of dxg.sys
126 *
127 * The Init of Gdi subsystem shall move into NtGdiInit()
128 *
129 * The Init of spooler are done in NtGdiInitSpool()
130 *
131 * The Init of the User subsystem shall move into NtUserInit()
132 */