[PSDK] Add missing E_API_NOTIMPL.
[reactos.git] / reactos / dll / win32 / t2embed / t2embed.c
1 /*
2 * PROJECT: Font Embedding Dll
3 * FILE: dll\win32\t2embed\t2embed.c
4 * PURPOSE: Main file
5 * PROGRAMMERS: Dmitry Chapyshev (dmitry@reactos.org)
6 */
7
8 #define WIN32_NO_STATUS
9
10 #include <stdarg.h>
11 #include <windef.h>
12 #include <winbase.h>
13 #include <t2embapi.h>
14 #include <wine/debug.h>
15
16 WINE_DEFAULT_DEBUG_CHANNEL(t2embed);
17
18 LONG
19 WINAPI
20 TTCharToUnicode(HDC hDC,
21 UCHAR* pucCharCodes,
22 ULONG ulCharCodeSize,
23 USHORT* pusShortCodes,
24 ULONG ulShortCodeSize,
25 ULONG ulFlags)
26 {
27 UNIMPLEMENTED;
28 return E_NONE;
29 }
30
31 LONG
32 WINAPI
33 TTDeleteEmbeddedFont(HANDLE hFontReference,
34 ULONG ulFlags,
35 ULONG* pulStatus)
36 {
37 UNIMPLEMENTED;
38 return E_NONE;
39 }
40
41 LONG
42 WINAPI
43 TTEmbedFont(HDC hDC,
44 ULONG ulFlags,
45 ULONG ulCharSet,
46 ULONG* pulPrivStatus,
47 ULONG* pulStatus,
48 WRITEEMBEDPROC lpfnWriteToStream,
49 LPVOID lpvWriteStream,
50 USHORT* pusCharCodeSet,
51 USHORT usCharCodeCount,
52 USHORT usLanguage,
53 TTEMBEDINFO* pTTEmbedInfo)
54 {
55 UNIMPLEMENTED;
56 return E_NONE;
57 }
58
59 LONG
60 WINAPI
61 TTEmbedFontFromFileA(HDC hDC,
62 LPCSTR szFontFileName,
63 USHORT usTTCIndex,
64 ULONG ulFlags,
65 ULONG ulCharSet,
66 ULONG* pulPrivStatus,
67 ULONG* pulStatus,
68 WRITEEMBEDPROC lpfnWriteToStream,
69 LPVOID lpvWriteStream,
70 USHORT* pusCharCodeSet,
71 USHORT usCharCodeCount,
72 USHORT usLanguage,
73 TTEMBEDINFO* pTTEmbedInfo)
74 {
75 UNIMPLEMENTED;
76 return E_NONE;
77 }
78
79 LONG
80 WINAPI
81 TTEnableEmbeddingForFacename(LPSTR lpszFacename,
82 BOOL bEnable)
83 {
84 UNIMPLEMENTED;
85 return E_NONE;
86 }
87
88 LONG
89 WINAPI
90 TTGetEmbeddedFontInfo(ULONG ulFlags,
91 ULONG* pulPrivStatus,
92 ULONG ulPrivs,
93 ULONG* pulStatus,
94 READEMBEDPROC lpfnReadFromStream,
95 LPVOID lpvReadStream,
96 TTLOADINFO* pTTLoadInfo)
97 {
98 UNIMPLEMENTED;
99 return E_NONE;
100 }
101
102 LONG
103 WINAPI
104 TTGetEmbeddingType(HDC hDC,
105 ULONG* pulPrivStatus)
106 {
107 UNIMPLEMENTED;
108 return E_NONE;
109 }
110
111 LONG
112 WINAPI
113 TTIsEmbeddingEnabled(HDC hDC,
114 BOOL* pbEnabled)
115 {
116 UNIMPLEMENTED;
117 return E_NONE;
118 }
119
120 LONG
121 WINAPI
122 TTIsEmbeddingEnabledForFacename(LPSTR lpszFacename,
123 BOOL* pbEnabled)
124 {
125 UNIMPLEMENTED;
126 return E_NONE;
127 }
128
129 LONG
130 WINAPI
131 TTLoadEmbeddedFont(HANDLE *phFontReference,
132 ULONG ulFlags,
133 ULONG* pulPrivStatus,
134 ULONG ulPrivs,
135 ULONG* pulStatus,
136 READEMBEDPROC lpfnReadFromStream,
137 LPVOID lpvReadStream,
138 LPWSTR szWinFamilyName,
139 LPSTR szMacFamilyName,
140 TTLOADINFO* pTTLoadInfo)
141 {
142 UNIMPLEMENTED;
143 return E_NONE;
144 }
145
146 LONG
147 WINAPI
148 TTRunValidationTests(HDC hDC,
149 TTVALIDATIONTESTPARAMS* pTestParam)
150 {
151 UNIMPLEMENTED;
152 return E_NONE;
153 }
154
155 LONG
156 WINAPI
157 TTEmbedFontEx(HDC hDC,
158 ULONG ulFlags,
159 ULONG ulCharSet,
160 ULONG* pulPrivStatus,
161 ULONG* pulStatus,
162 WRITEEMBEDPROC lpfnWriteToStream,
163 LPVOID lpvWriteStream,
164 ULONG* pulCharCodeSet,
165 USHORT usCharCodeCount,
166 USHORT usLanguage,
167 TTEMBEDINFO* pTTEmbedInfo)
168 {
169 UNIMPLEMENTED;
170 return E_NONE;
171 }
172
173 LONG
174 WINAPI
175 TTRunValidationTestsEx(HDC hDC,
176 TTVALIDATIONTESTPARAMSEX* pTestParam)
177 {
178 UNIMPLEMENTED;
179 return E_NONE;
180 }
181
182 LONG
183 WINAPI
184 TTGetNewFontName(HANDLE* phFontReference,
185 LPWSTR szWinFamilyName,
186 long cchMaxWinName,
187 LPSTR szMacFamilyName,
188 long cchMaxMacName)
189 {
190 UNIMPLEMENTED;
191 return E_NONE;
192 }
193
194
195 BOOL
196 WINAPI
197 DllMain(IN HINSTANCE hinstDLL,
198 IN DWORD dwReason,
199 IN LPVOID lpvReserved)
200 {
201 switch (dwReason)
202 {
203 case DLL_PROCESS_ATTACH:
204 DisableThreadLibraryCalls(hinstDLL);
205 break;
206 }
207
208 return TRUE;
209 }