1 | /*
|
---|
2 | * Copyright (C) 2004 Mike McCormack
|
---|
3 | *
|
---|
4 | * This library is free software; you can redistribute it and/or
|
---|
5 | * modify it under the terms of the GNU Lesser General Public
|
---|
6 | * License as published by the Free Software Foundation; either
|
---|
7 | * version 2.1 of the License, or (at your option) any later version.
|
---|
8 | *
|
---|
9 | * This library is distributed in the hope that it will be useful,
|
---|
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
12 | * Lesser General Public License for more details.
|
---|
13 | *
|
---|
14 | * You should have received a copy of the GNU Lesser General Public
|
---|
15 | * License along with this library; if not, write to the Free Software
|
---|
16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef DO_NO_IMPORTS
|
---|
29 | import "unknwn.idl";
|
---|
30 | #endif
|
---|
31 |
|
---|
32 | interface IStream;
|
---|
33 |
|
---|
34 | cpp_quote("#define CPIOD_PEEK 0x40000000")
|
---|
35 | cpp_quote("#define CPIOD_FORCE_PROMPT 0x80000000")
|
---|
36 |
|
---|
37 | [
|
---|
38 | object,
|
---|
39 | uuid(359f3443-bd4a-11d0-b188-00aa0038c969),
|
---|
40 | pointer_default(unique)
|
---|
41 | ]
|
---|
42 | interface IMLangCodePages : IUnknown
|
---|
43 | {
|
---|
44 | HRESULT GetCharCodePages(
|
---|
45 | [in] WCHAR chSrc,
|
---|
46 | [out] DWORD *pdwCodePages);
|
---|
47 | HRESULT GetStrCodePages(
|
---|
48 | [in, size_is(cchSrc)] const WCHAR *pszSrc,
|
---|
49 | [in] LONG cchSrc,
|
---|
50 | [in] DWORD dwPriorityCodePages,
|
---|
51 | [out] DWORD *pdwCodePages,
|
---|
52 | [out] LONG *pcchCodePages);
|
---|
53 | HRESULT CodePageToCodePages(
|
---|
54 | [in] UINT uCodePage,
|
---|
55 | [out] DWORD *pdwCodePages);
|
---|
56 | HRESULT CodePagesToCodePage(
|
---|
57 | [in] DWORD dwCodePages,
|
---|
58 | [in] UINT uDefaultCodePage,
|
---|
59 | [out] UINT *puCodePage);
|
---|
60 | }
|
---|
61 |
|
---|
62 | [
|
---|
63 | object,
|
---|
64 | uuid(359f3441-bd4a-11d0-b188-00aa0038c969),
|
---|
65 | pointer_default(unique)
|
---|
66 | ]
|
---|
67 | interface IMLangFontLink : IMLangCodePages
|
---|
68 | {
|
---|
69 | HRESULT GetFontCodePages(
|
---|
70 | [in] HDC hDC,
|
---|
71 | [in] HFONT hFont,
|
---|
72 | [out] DWORD *pdwCodePages );
|
---|
73 |
|
---|
74 | HRESULT MapFont(
|
---|
75 | [in] HDC hDC,
|
---|
76 | [in] DWORD dwCodePages,
|
---|
77 | [in] HFONT hSrcFont,
|
---|
78 | [out] HFONT *phDestFont);
|
---|
79 |
|
---|
80 | HRESULT ReleaseFont(
|
---|
81 | [in] HFONT hFont);
|
---|
82 |
|
---|
83 | HRESULT ResetFontMapping();
|
---|
84 | }
|
---|
85 |
|
---|
86 | [
|
---|
87 | object,
|
---|
88 | uuid(ae5f1430-388b-11d2-8380-00c04f8f5da1),
|
---|
89 | pointer_default(unique)
|
---|
90 | ]
|
---|
91 | interface IEnumScript : IUnknown
|
---|
92 | {
|
---|
93 | const USHORT MAX_SCRIPT_NAME = 48;
|
---|
94 | const USHORT MAX_MIMEFACE_NAME = 32;
|
---|
95 |
|
---|
96 | typedef BYTE SCRIPT_ID;
|
---|
97 | typedef __int64 SCRIPT_IDS;
|
---|
98 |
|
---|
99 | typedef enum tagSCRIPTCONTF
|
---|
100 | {
|
---|
101 | sidDefault = 0,
|
---|
102 | sidMerge = sidDefault + 1,
|
---|
103 | sidAsciiSym = sidMerge + 1,
|
---|
104 | sidAsciiLatin = sidAsciiSym + 1,
|
---|
105 | sidLatin = sidAsciiLatin + 1,
|
---|
106 | sidGreek = sidLatin + 1,
|
---|
107 | sidCyrillic = sidGreek + 1,
|
---|
108 | sidArmenian = sidCyrillic + 1,
|
---|
109 | sidHebrew = sidArmenian + 1,
|
---|
110 | sidArabic = sidHebrew + 1,
|
---|
111 | sidDevanagari = sidArabic + 1,
|
---|
112 | sidBengali = sidDevanagari + 1,
|
---|
113 | sidGurmukhi = sidBengali + 1,
|
---|
114 | sidGujarati = sidGurmukhi + 1,
|
---|
115 | sidOriya = sidGujarati + 1,
|
---|
116 | sidTamil = sidOriya + 1,
|
---|
117 | sidTelugu = sidTamil + 1,
|
---|
118 | sidKannada = sidTelugu + 1,
|
---|
119 | sidMalayalam = sidKannada + 1,
|
---|
120 | sidThai = sidMalayalam + 1,
|
---|
121 | sidLao = sidThai + 1,
|
---|
122 | sidTibetan = sidLao + 1,
|
---|
123 | sidGeorgian = sidTibetan + 1,
|
---|
124 | sidHangul = sidGeorgian + 1,
|
---|
125 | sidKana = sidHangul + 1,
|
---|
126 | sidBopomofo = sidKana + 1,
|
---|
127 | sidHan = sidBopomofo + 1,
|
---|
128 | sidEthiopic = sidHan + 1,
|
---|
129 | sidCanSyllabic = sidEthiopic + 1,
|
---|
130 | sidCherokee = sidCanSyllabic + 1,
|
---|
131 | sidYi = sidCherokee + 1,
|
---|
132 | sidBraille = sidYi + 1,
|
---|
133 | sidRunic = sidBraille + 1,
|
---|
134 | sidOgham = sidRunic + 1,
|
---|
135 | sidSinhala = sidOgham + 1,
|
---|
136 | sidSyriac = sidSinhala + 1,
|
---|
137 | sidBurmese = sidSyriac + 1,
|
---|
138 | sidKhmer = sidBurmese + 1,
|
---|
139 | sidThaana = sidKhmer + 1,
|
---|
140 | sidMongolian = sidThaana + 1,
|
---|
141 | sidUserDefined = sidMongolian + 1,
|
---|
142 | sidLim = sidUserDefined + 1,
|
---|
143 | sidFEFirst = sidHangul,
|
---|
144 | sidFELast = sidHan
|
---|
145 | } SCRIPTCONTF;
|
---|
146 |
|
---|
147 | typedef enum tagSCRIPTFONTCONTF
|
---|
148 | {
|
---|
149 | SCRIPTCONTF_FIXED_FONT = 0x1,
|
---|
150 | SCRIPTCONTF_PROPORTIONAL_FONT = 0x2,
|
---|
151 | SCRIPTCONTF_SCRIPT_USER = 0x10000,
|
---|
152 | SCRIPTCONTF_SCRIPT_HIDE = 0x20000,
|
---|
153 | SCRIPTCONTF_SCRIPT_SYSTEM = 0x40000
|
---|
154 | } SCRIPTFONTCONTF;
|
---|
155 |
|
---|
156 | typedef struct tagSCRIPFONTINFO
|
---|
157 | {
|
---|
158 | SCRIPT_IDS scripts;
|
---|
159 | WCHAR wszFont[MAX_MIMEFACE_NAME];
|
---|
160 | } SCRIPTFONTINFO, *PSCRIPTFONTINFO;
|
---|
161 |
|
---|
162 | typedef struct tagSCRIPTINFO {
|
---|
163 | SCRIPT_ID ScriptId;
|
---|
164 | UINT uiCodePage;
|
---|
165 | WCHAR wszDescription[MAX_SCRIPT_NAME];
|
---|
166 | WCHAR wszFixedWidthFont[MAX_MIMEFACE_NAME];
|
---|
167 | WCHAR wszProportionalFont[MAX_MIMEFACE_NAME];
|
---|
168 | } SCRIPTINFO, *PSCRIPTINFO;
|
---|
169 |
|
---|
170 | HRESULT Clone(
|
---|
171 | [out] IEnumScript **ppEnum);
|
---|
172 |
|
---|
173 | HRESULT Next(
|
---|
174 | [in] ULONG celt,
|
---|
175 | [out] PSCRIPTINFO rgelt,
|
---|
176 | [out] ULONG *pceltFetched);
|
---|
177 |
|
---|
178 | HRESULT Reset();
|
---|
179 |
|
---|
180 | HRESULT Skip(
|
---|
181 | [in] ULONG celt);
|
---|
182 | }
|
---|
183 |
|
---|
184 | [
|
---|
185 | object,
|
---|
186 | uuid(dccfc162-2b38-11d2-b7ec-00c04f8f5d9a),
|
---|
187 | pointer_default(unique)
|
---|
188 | ]
|
---|
189 | interface IMLangFontLink2 : IMLangCodePages
|
---|
190 | {
|
---|
191 | typedef struct tagUNICODERANGE
|
---|
192 | {
|
---|
193 | WCHAR wcFrom;
|
---|
194 | WCHAR wcTo;
|
---|
195 | } UNICODERANGE;
|
---|
196 |
|
---|
197 | typedef [unique] IMLangFontLink2 *PMLANGFONTLINK2;
|
---|
198 |
|
---|
199 | HRESULT GetFontCodePages(
|
---|
200 | [in] HDC hDC,
|
---|
201 | [in] HFONT hFont,
|
---|
202 | [out] DWORD *pdwCodePages );
|
---|
203 |
|
---|
204 | HRESULT ReleaseFont(
|
---|
205 | [in] HFONT hFont);
|
---|
206 |
|
---|
207 | HRESULT ResetFontMapping();
|
---|
208 |
|
---|
209 | HRESULT MapFont(
|
---|
210 | [in] HDC hDC,
|
---|
211 | [in] DWORD dwCodePages,
|
---|
212 | [in] WCHAR chSrc,
|
---|
213 | [out] HFONT *pFont);
|
---|
214 |
|
---|
215 | HRESULT GetFontUnicodeRanges(
|
---|
216 | [in] HDC hDC,
|
---|
217 | [in,out] UINT *puiRanges,
|
---|
218 | [out] UNICODERANGE* pUranges);
|
---|
219 |
|
---|
220 | HRESULT GetScriptFontInfo(
|
---|
221 | [in] SCRIPT_ID sid,
|
---|
222 | [in] DWORD dwFlags,
|
---|
223 | [in,out] UINT *puiFonts,
|
---|
224 | [out] SCRIPTFONTINFO* pScriptFont);
|
---|
225 |
|
---|
226 | HRESULT CodePageToScriptID(
|
---|
227 | [in] UINT uiCodePage,
|
---|
228 | [out] SCRIPT_ID *pSid);
|
---|
229 | }
|
---|
230 |
|
---|
231 | [
|
---|
232 | object,
|
---|
233 | uuid(c04d65ce-b70d-11d0-b188-00aa0038c969),
|
---|
234 | pointer_default(unique)
|
---|
235 | ]
|
---|
236 | interface IMLangString : IUnknown
|
---|
237 | {
|
---|
238 | #ifdef NEWMLSTR
|
---|
239 | HRESULT LockMLStr(
|
---|
240 | [in] LONG lPos,
|
---|
241 | [in] DWORD dwFlags,
|
---|
242 | [out] DWORD* pdwCookie,
|
---|
243 | [out] LONG* plActualPos,
|
---|
244 | [out] LONG* plActualLen);
|
---|
245 |
|
---|
246 | HRESULT UnlockMLStr(
|
---|
247 | [in] DWORD dwCookie);
|
---|
248 | #else
|
---|
249 | HRESULT Sync(
|
---|
250 | [in] BOOL fNoAccess);
|
---|
251 | #endif
|
---|
252 | HRESULT GetLength(
|
---|
253 | [out, retval] LONG* plLen);
|
---|
254 | HRESULT SetMLStr(
|
---|
255 | [in] LONG lDestPos,
|
---|
256 | [in] LONG lDestLen,
|
---|
257 | [in] IUnknown *pSrcMLStr,
|
---|
258 | [in] LONG lSrcPos,
|
---|
259 | [in] LONG lSrcLen);
|
---|
260 | #ifdef NEWMLSTR
|
---|
261 | HRESULT RegisterAttr(
|
---|
262 | [in] IUnknown *pUnk,
|
---|
263 | [out] DWORD* pdwCookie);
|
---|
264 | HRESULT UnregisterAttr(
|
---|
265 | [in] DWORD dwCookie);
|
---|
266 | HRESULT EnumAttr(
|
---|
267 | [out] IEnumUnknown **ppEnumUnk);
|
---|
268 | HRESULT FindAttr(
|
---|
269 | [in] REFIID riid,
|
---|
270 | [in] LPARAM lParam,
|
---|
271 | [out] IUnknown **ppUnk);
|
---|
272 | #else
|
---|
273 | HRESULT GetMLStr(
|
---|
274 | [in] LONG lSrcPos,
|
---|
275 | [in] LONG lSrcLen,
|
---|
276 | [in] IUnknown *pUnkOuter,
|
---|
277 | [in] DWORD dwClsContext,
|
---|
278 | [in] const IID* piid,
|
---|
279 | [out] IUnknown** ppDestMLStr,
|
---|
280 | [out] LONG* plDestPos,
|
---|
281 | [out] LONG* plDestLen);
|
---|
282 | #endif
|
---|
283 | }
|
---|
284 |
|
---|
285 | [
|
---|
286 | object,
|
---|
287 | uuid(f5be2ee1-bfd7-11d0-b188-00aa0038c969),
|
---|
288 | pointer_default(unique)
|
---|
289 | ]
|
---|
290 | interface IMLangLineBreakConsole : IUnknown
|
---|
291 | {
|
---|
292 | HRESULT BreakLineML(
|
---|
293 | [in] IMLangString* pSrcMLStr,
|
---|
294 | [in] LONG lSrcPos,
|
---|
295 | [in] LONG lSrcLen,
|
---|
296 | [in] LONG cMinColumns,
|
---|
297 | [in] LONG cMaxColumns,
|
---|
298 | [out] LONG* plLineLen,
|
---|
299 | [out] LONG* plSkipLen);
|
---|
300 |
|
---|
301 | HRESULT BreakLineW(
|
---|
302 | [in] LCID locale,
|
---|
303 | [in, size_is(cchSrc)] const WCHAR* pszSrc,
|
---|
304 | [in] LONG cchSrc,
|
---|
305 | [in] LONG cMaxColumns,
|
---|
306 | [out] LONG* pcchLine,
|
---|
307 | [out] LONG* pcchSkip );
|
---|
308 |
|
---|
309 | HRESULT BreakLineA(
|
---|
310 | [in] LCID locale,
|
---|
311 | [in] UINT uCodePage,
|
---|
312 | [in, size_is(cchSrc)] const CHAR* pszSrc,
|
---|
313 | [in] LONG cchSrc,
|
---|
314 | [in] LONG cMaxColumns,
|
---|
315 | [out] LONG* pcchLine,
|
---|
316 | [out] LONG* pcchSkip);
|
---|
317 | }
|
---|
318 |
|
---|
319 | [
|
---|
320 | object,
|
---|
321 | uuid(275c23e3-3747-11d0-9fea-00aa003f8646),
|
---|
322 | pointer_default(unique)
|
---|
323 | ]
|
---|
324 | interface IEnumCodePage : IUnknown
|
---|
325 | {
|
---|
326 | const USHORT MAX_MIMECP_NAME = 64;
|
---|
327 | const USHORT MAX_MIMECSET_NAME = 50;
|
---|
328 |
|
---|
329 | typedef enum tagMIMECONTF
|
---|
330 | {
|
---|
331 | MIMECONTF_MAILNEWS = 0x00000001,
|
---|
332 | MIMECONTF_BROWSER = 0x00000002,
|
---|
333 | MIMECONTF_MINIMAL = 0x00000004,
|
---|
334 | MIMECONTF_IMPORT = 0x00000008,
|
---|
335 | MIMECONTF_SAVABLE_MAILNEWS = 0x00000100,
|
---|
336 | MIMECONTF_SAVABLE_BROWSER = 0x00000200,
|
---|
337 | MIMECONTF_EXPORT = 0x00000400,
|
---|
338 | MIMECONTF_PRIVCONVERTER = 0x00010000,
|
---|
339 | MIMECONTF_VALID = 0x00020000,
|
---|
340 | MIMECONTF_VALID_NLS = 0x00040000,
|
---|
341 | MIMECONTF_MIME_IE4 = 0x10000000,
|
---|
342 | MIMECONTF_MIME_LATEST = 0x20000000,
|
---|
343 | MIMECONTF_MIME_REGISTRY = 0x40000000
|
---|
344 | } MIMECONTF;
|
---|
345 |
|
---|
346 | typedef struct tagMIMECPINFO {
|
---|
347 | DWORD dwFlags;
|
---|
348 | UINT uiCodePage;
|
---|
349 | UINT uiFamilyCodePage;
|
---|
350 | WCHAR wszDescription[MAX_MIMECP_NAME];
|
---|
351 | WCHAR wszWebCharset[MAX_MIMECSET_NAME];
|
---|
352 | WCHAR wszHeaderCharset[MAX_MIMECSET_NAME];
|
---|
353 | WCHAR wszBodyCharset[MAX_MIMECSET_NAME];
|
---|
354 | WCHAR wszFixedWidthFont[MAX_MIMEFACE_NAME];
|
---|
355 | WCHAR wszProportionalFont[MAX_MIMEFACE_NAME];
|
---|
356 | BYTE bGDICharset;
|
---|
357 | } MIMECPINFO, *PMIMECPINFO;
|
---|
358 |
|
---|
359 | typedef struct tagMIMECSETINFO
|
---|
360 | {
|
---|
361 | UINT uiCodePage;
|
---|
362 | UINT uiInternetEncoding;
|
---|
363 | WCHAR wszCharset[MAX_MIMECSET_NAME];
|
---|
364 | } MIMECSETINFO, *PMIMECSETINFO;
|
---|
365 |
|
---|
366 | HRESULT Clone(
|
---|
367 | [out] IEnumCodePage **ppEnum);
|
---|
368 |
|
---|
369 | HRESULT Next(
|
---|
370 | [in] ULONG celt,
|
---|
371 | [out] PMIMECPINFO rgelt,
|
---|
372 | [out] ULONG *pceltFetched);
|
---|
373 |
|
---|
374 | HRESULT Reset();
|
---|
375 |
|
---|
376 | HRESULT Skip(
|
---|
377 | [in] ULONG celt);
|
---|
378 | }
|
---|
379 |
|
---|
380 | [
|
---|
381 | object,
|
---|
382 | uuid(d66d6f98-cdaa-11d0-b822-00c04fc9b31f),
|
---|
383 | pointer_default(unique)
|
---|
384 | ]
|
---|
385 | interface IMLangConvertCharset : IUnknown
|
---|
386 | {
|
---|
387 | typedef enum tagMLCONVCHARF
|
---|
388 | {
|
---|
389 | MLCONVCHARF_AUTODETECT = 1,
|
---|
390 | MLCONVCHARF_ENTITIZE = 2,
|
---|
391 | MLCONVCHARF_NCR_ENTITIZE = 2,
|
---|
392 | MLCONVCHARF_NAME_ENTITIZE = 4,
|
---|
393 | MLCONVCHARF_USEDEFCHAR = 8,
|
---|
394 | MLCONVCHARF_NOBESTFITCHARS = 16,
|
---|
395 | MLCONVCHARF_DETECTJPN = 32
|
---|
396 | } MLCONVCHAR;
|
---|
397 |
|
---|
398 | HRESULT Initialize(
|
---|
399 | [in] UINT uiSrcCodePage,
|
---|
400 | [in] UINT uiDstCodePage,
|
---|
401 | [in] DWORD dwProperty);
|
---|
402 |
|
---|
403 | HRESULT GetSourceCodePage(
|
---|
404 | [out] UINT *puiSrcCodePage);
|
---|
405 |
|
---|
406 | HRESULT GetDestinationCodePage(
|
---|
407 | [out] UINT *puiDstCodePage);
|
---|
408 |
|
---|
409 | HRESULT GetProperty(
|
---|
410 | [out] DWORD *pdwProperty);
|
---|
411 |
|
---|
412 | HRESULT DoConversion(
|
---|
413 | [in] BYTE *pSrcStr,
|
---|
414 | [in,out] UINT *pcSrcSize,
|
---|
415 | [in] BYTE *pDstStr,
|
---|
416 | [in,out] UINT *pcDstSize);
|
---|
417 |
|
---|
418 | HRESULT DoConversionToUnicode(
|
---|
419 | [in] CHAR *pSrcStr,
|
---|
420 | [in,out] UINT *pcSrcSize,
|
---|
421 | [in] WCHAR *pDstStr,
|
---|
422 | [in,out] UINT *pcDstSize);
|
---|
423 |
|
---|
424 | HRESULT DoConversionFromUnicode(
|
---|
425 | [in] WCHAR *pSrcStr,
|
---|
426 | [in,out] UINT *pcSrcSize,
|
---|
427 | [in] CHAR *pDstStr,
|
---|
428 | [in,out] UINT *pcDstSize);
|
---|
429 | }
|
---|
430 |
|
---|
431 | [
|
---|
432 | uuid(d66d6f99-cdaa-11d0-b822-00c04fc9b31f)
|
---|
433 | ]
|
---|
434 | coclass CMLangConvertCharset
|
---|
435 | {
|
---|
436 | [default] interface IMLangConvertCharset;
|
---|
437 | };
|
---|
438 |
|
---|
439 | [
|
---|
440 | object,
|
---|
441 | uuid(3dc39d1d-c030-11d0-b81b-00c04fc9b31f),
|
---|
442 | pointer_default(unique)
|
---|
443 | ]
|
---|
444 | interface IEnumRfc1766 : IUnknown
|
---|
445 | {
|
---|
446 | const USHORT MAX_RFC1766_NAME = 6;
|
---|
447 | const USHORT MAX_LOCALE_NAME = 32;
|
---|
448 |
|
---|
449 | typedef struct tagRFC1766INFO
|
---|
450 | {
|
---|
451 | LCID lcid;
|
---|
452 | WCHAR wszRfc1766[MAX_RFC1766_NAME];
|
---|
453 | WCHAR wszLocaleName[MAX_LOCALE_NAME];
|
---|
454 | } RFC1766INFO, *PRFC1766INFO;
|
---|
455 |
|
---|
456 | HRESULT Clone(
|
---|
457 | [out] IEnumRfc1766 **ppEnum);
|
---|
458 |
|
---|
459 | HRESULT Next(
|
---|
460 | [in] ULONG celt,
|
---|
461 | [out] PRFC1766INFO rgelt,
|
---|
462 | [out] ULONG *pceltFetched);
|
---|
463 |
|
---|
464 | HRESULT Reset();
|
---|
465 |
|
---|
466 | HRESULT Skip(
|
---|
467 | [in] ULONG celt);
|
---|
468 | }
|
---|
469 |
|
---|
470 | [
|
---|
471 | object,
|
---|
472 | uuid(275c23e1-3747-11d0-9fea-00aa003f8646),
|
---|
473 | pointer_default(unique)
|
---|
474 | ]
|
---|
475 | interface IMultiLanguage : IUnknown
|
---|
476 | {
|
---|
477 | HRESULT GetNumberOfCodePageInfo(
|
---|
478 | [out] UINT *pcCodePage);
|
---|
479 |
|
---|
480 | HRESULT GetCodePageInfo(
|
---|
481 | [in] UINT uiCodePage,
|
---|
482 | [out] PMIMECPINFO pCodePageInfo);
|
---|
483 |
|
---|
484 | HRESULT GetFamilyCodePage(
|
---|
485 | [in] UINT uiCodePage,
|
---|
486 | [out] UINT *puiFamilyCodePage);
|
---|
487 |
|
---|
488 | HRESULT EnumCodePages(
|
---|
489 | [in] DWORD grfFlags,
|
---|
490 | [out] IEnumCodePage **ppEnumCodePage);
|
---|
491 |
|
---|
492 | HRESULT GetCharsetInfo(
|
---|
493 | [in] BSTR Charset,
|
---|
494 | [in] PMIMECSETINFO pCharsetInfo);
|
---|
495 |
|
---|
496 | HRESULT IsConvertible(
|
---|
497 | [in] DWORD dwSrcEncoding,
|
---|
498 | [in] DWORD dwDstEncoding);
|
---|
499 |
|
---|
500 | HRESULT ConvertString(
|
---|
501 | [in,out] DWORD *pdwMode,
|
---|
502 | [in] DWORD dwSrcEncoding,
|
---|
503 | [in] DWORD dwDstEncoding,
|
---|
504 | [in] BYTE *pSrcStr,
|
---|
505 | [in,out] UINT *pcSrcSize,
|
---|
506 | [in] BYTE *pDstStr,
|
---|
507 | [in,out] UINT *pcDstSize);
|
---|
508 |
|
---|
509 | HRESULT ConvertStringToUnicode(
|
---|
510 | [in,out] DWORD *pdwMode,
|
---|
511 | [in] DWORD dwEncoding,
|
---|
512 | [in] CHAR *pSrcStr,
|
---|
513 | [in,out] UINT *pcSrcSize,
|
---|
514 | [in] WCHAR *pDstStr,
|
---|
515 | [in,out] UINT *pcDstSize);
|
---|
516 |
|
---|
517 | HRESULT ConvertStringFromUnicode(
|
---|
518 | [in,out] DWORD *pdwMode,
|
---|
519 | [in] DWORD dwEncoding,
|
---|
520 | [in] WCHAR *pSrcStr,
|
---|
521 | [in,out] UINT *pcSrcSize,
|
---|
522 | [in] CHAR *pDstStr,
|
---|
523 | [in,out] UINT *pcDstSize);
|
---|
524 |
|
---|
525 | HRESULT ConvertStringReset();
|
---|
526 |
|
---|
527 | HRESULT GetRfc1766FromLcid(
|
---|
528 | [in] LCID Locale,
|
---|
529 | [out] BSTR *pbstrRfc1766);
|
---|
530 |
|
---|
531 | HRESULT GetLcidFromRfc1766(
|
---|
532 | [out] LCID *pLocale,
|
---|
533 | [in] BSTR bstrRfc1766);
|
---|
534 |
|
---|
535 | HRESULT EnumRfc1766(
|
---|
536 | [out] IEnumRfc1766 **ppEnumRfc1766);
|
---|
537 |
|
---|
538 | HRESULT GetRfc1766Info(
|
---|
539 | [in] LCID Locale,
|
---|
540 | [out] PRFC1766INFO pRfc1766Info);
|
---|
541 |
|
---|
542 | HRESULT CreateConvertCharset(
|
---|
543 | [in] UINT uiSrcCodePage,
|
---|
544 | [in] UINT uiDstCodePage,
|
---|
545 | [in] DWORD dwProperty,
|
---|
546 | [out] IMLangConvertCharset **ppMLangConvertCharset);
|
---|
547 |
|
---|
548 | }
|
---|
549 |
|
---|
550 | [
|
---|
551 | object,
|
---|
552 | uuid(dccfc164-2b38-11d2-b7ec-00c04f8f5d9a),
|
---|
553 | pointer_default(unique)
|
---|
554 | ]
|
---|
555 | interface IMultiLanguage2 : IUnknown
|
---|
556 | {
|
---|
557 | typedef struct tagDetectEncodingInfo
|
---|
558 | {
|
---|
559 | UINT nLangID;
|
---|
560 | UINT nCodePage;
|
---|
561 | INT nDocPercent;
|
---|
562 | INT nConfidence;
|
---|
563 | } DetectEncodingInfo, *pDetectEncodingInfo;
|
---|
564 |
|
---|
565 | HRESULT GetNumberOfCodePageInfo(
|
---|
566 | [out] UINT *pcCodePage);
|
---|
567 |
|
---|
568 | HRESULT GetCodePageInfo(
|
---|
569 | [in] UINT uiCodePage,
|
---|
570 | [in] LANGID LangId,
|
---|
571 | [out] PMIMECPINFO pCodePageInfo);
|
---|
572 |
|
---|
573 | HRESULT GetFamilyCodePage(
|
---|
574 | [in] UINT uiCodePage,
|
---|
575 | [out] UINT *puiFamilyCodePage);
|
---|
576 |
|
---|
577 | HRESULT EnumCodePages(
|
---|
578 | [in] DWORD grfFlags,
|
---|
579 | [in] LANGID LangId,
|
---|
580 | [out] IEnumCodePage **ppEnumCodePage);
|
---|
581 |
|
---|
582 | HRESULT GetCharsetInfo(
|
---|
583 | [in] BSTR Charset,
|
---|
584 | [in] PMIMECSETINFO pCharsetInfo);
|
---|
585 |
|
---|
586 | HRESULT IsConvertible(
|
---|
587 | [in] DWORD dwSrcEncoding,
|
---|
588 | [in] DWORD dwDstEncoding);
|
---|
589 |
|
---|
590 | HRESULT ConvertString(
|
---|
591 | [in,out] DWORD *pdwMode,
|
---|
592 | [in] DWORD dwSrcEncoding,
|
---|
593 | [in] DWORD dwDstEncoding,
|
---|
594 | [in] BYTE *pSrcStr,
|
---|
595 | [in,out] UINT *pcSrcSize,
|
---|
596 | [in] BYTE *pDstStr,
|
---|
597 | [in,out] UINT *pcDstSize);
|
---|
598 |
|
---|
599 | HRESULT ConvertStringToUnicode(
|
---|
600 | [in,out] DWORD *pdwMode,
|
---|
601 | [in] DWORD dwEncoding,
|
---|
602 | [in] CHAR *pSrcStr,
|
---|
603 | [in,out] UINT *pcSrcSize,
|
---|
604 | [in] WCHAR *pDstStr,
|
---|
605 | [in,out] UINT *pcDstSize);
|
---|
606 |
|
---|
607 | HRESULT ConvertStringFromUnicode(
|
---|
608 | [in,out] DWORD *pdwMode,
|
---|
609 | [in] DWORD dwEncoding,
|
---|
610 | [in] WCHAR *pSrcStr,
|
---|
611 | [in,out] UINT *pcSrcSize,
|
---|
612 | [in] CHAR *pDstStr,
|
---|
613 | [in,out] UINT *pcDstSize);
|
---|
614 |
|
---|
615 | HRESULT ConvertStringReset();
|
---|
616 |
|
---|
617 | HRESULT GetRfc1766FromLcid(
|
---|
618 | [in] LCID Locale,
|
---|
619 | [out] BSTR *pbstrRfc1766);
|
---|
620 |
|
---|
621 | HRESULT GetLcidFromRfc1766(
|
---|
622 | [out] LCID *pLocale,
|
---|
623 | [in] BSTR bstrRfc1766);
|
---|
624 |
|
---|
625 | HRESULT EnumRfc1766(
|
---|
626 | [in] LANGID LangId,
|
---|
627 | [out] IEnumRfc1766 **ppEnumRfc1766);
|
---|
628 |
|
---|
629 | HRESULT GetRfc1766Info(
|
---|
630 | [in] LCID Locale,
|
---|
631 | [in] LANGID LangId,
|
---|
632 | [out] PRFC1766INFO pRfc1766Info);
|
---|
633 |
|
---|
634 | HRESULT CreateConvertCharset(
|
---|
635 | [in] UINT uiSrcCodePage,
|
---|
636 | [in] UINT uiDstCodePage,
|
---|
637 | [in] DWORD dwProperty,
|
---|
638 | [out] IMLangConvertCharset **ppMLangConvertCharset);
|
---|
639 |
|
---|
640 | HRESULT ConvertStringInIStream(
|
---|
641 | [in,out] DWORD *pdwMode,
|
---|
642 | [in] DWORD dwFlag,
|
---|
643 | [in] WCHAR *lpFallBack,
|
---|
644 | [in] DWORD dwSrcEncoding,
|
---|
645 | [in] DWORD dwDstEncoding,
|
---|
646 | [in] IStream *pstmIn,
|
---|
647 | [in] IStream *pstmOut);
|
---|
648 |
|
---|
649 | HRESULT ConvertStringToUnicodeEx(
|
---|
650 | [in,out] DWORD *pdwMode,
|
---|
651 | [in] DWORD dwEncoding,
|
---|
652 | [in] CHAR *pSrcStr,
|
---|
653 | [in,out] UINT *pcSrcSize,
|
---|
654 | [in] WCHAR *pDstStr,
|
---|
655 | [in,out] UINT *pcDstSize,
|
---|
656 | [in] DWORD dwFlag,
|
---|
657 | [in] WCHAR *lpFallBack);
|
---|
658 |
|
---|
659 | HRESULT ConvertStringFromUnicodeEx(
|
---|
660 | [in,out] DWORD *pdwMode,
|
---|
661 | [in] DWORD dwEncoding,
|
---|
662 | [in] WCHAR *pSrcStr,
|
---|
663 | [in,out] UINT *pcSrcSize,
|
---|
664 | [in] CHAR *pDstStr,
|
---|
665 | [in,out] UINT *pcDstSize,
|
---|
666 | [in] DWORD dwFlag,
|
---|
667 | [in] WCHAR *lpFallBack);
|
---|
668 |
|
---|
669 | HRESULT DetectCodepageInIStream(
|
---|
670 | [in] DWORD dwFlag,
|
---|
671 | [in] DWORD dwPrefWinCodePage,
|
---|
672 | [in] IStream *pstmIn,
|
---|
673 | [in,out] DetectEncodingInfo *lpEncoding,
|
---|
674 | [in,out] INT *pnScores);
|
---|
675 |
|
---|
676 | HRESULT DetectInputCodepage(
|
---|
677 | [in] DWORD dwFlag,
|
---|
678 | [in] DWORD dwPrefWinCodePage,
|
---|
679 | [in] CHAR *pSrcStr,
|
---|
680 | [in,out] INT *pcSrcSize,
|
---|
681 | [in,out] DetectEncodingInfo *lpEncoding,
|
---|
682 | [in,out] INT *pnScores);
|
---|
683 |
|
---|
684 | HRESULT ValidateCodePage(
|
---|
685 | [in] UINT uiCodePage,
|
---|
686 | [in] HWND hwnd);
|
---|
687 |
|
---|
688 | HRESULT GetCodePageDescription(
|
---|
689 | [in] UINT uiCodePage,
|
---|
690 | [in] LCID lcid,
|
---|
691 | [in,out,size_is(cchWideChar)] LPWSTR lpWideCharStr,
|
---|
692 | [in] int cchWideChar);
|
---|
693 |
|
---|
694 | HRESULT IsCodePageInstallable(
|
---|
695 | [in] UINT uiCodePage);
|
---|
696 |
|
---|
697 | HRESULT SetMimeDBSource(
|
---|
698 | [in] MIMECONTF dwSource);
|
---|
699 |
|
---|
700 | HRESULT GetNumberOfScripts(
|
---|
701 | [out] UINT *pnScripts);
|
---|
702 |
|
---|
703 | HRESULT EnumScripts(
|
---|
704 | [in] DWORD dwFlags,
|
---|
705 | [in] LANGID LangId,
|
---|
706 | [out] IEnumScript **ppEnumScript);
|
---|
707 |
|
---|
708 | HRESULT ValidateCodePageEx( /* undocumented on MSDN */
|
---|
709 | [in] UINT uiCodePage,
|
---|
710 | [in] HWND hwnd,
|
---|
711 | [in] DWORD dwfIODControl);
|
---|
712 | }
|
---|
713 |
|
---|
714 | [
|
---|
715 | object,
|
---|
716 | uuid(4e5868ab-b157-4623-9acc-6a1d9caebe04),
|
---|
717 | pointer_default(unique)
|
---|
718 | ]
|
---|
719 | interface IMultiLanguage3 : IMultiLanguage2
|
---|
720 | {
|
---|
721 | typedef [unique] IMultiLanguage3 *LPMULTILANGUAGE3;
|
---|
722 | HRESULT DetectOutboundCodePage(
|
---|
723 | [in] DWORD dwFlags,
|
---|
724 | [in] LPCWSTR lpWideCharStr,
|
---|
725 | [in] UINT cchWideChar,
|
---|
726 | [in] UINT *puiPreferredCodePages,
|
---|
727 | [in] UINT nPreferredCodePages,
|
---|
728 | [in] UINT *puiDetectedCodePages,
|
---|
729 | [in, out] UINT *pnDetectedCodePages,
|
---|
730 | [in] WCHAR *lpSpecialChar);
|
---|
731 |
|
---|
732 | HRESULT DetectOutboundCodePageInIStream(
|
---|
733 | [in] DWORD dwFlags,
|
---|
734 | [in] IStream *pStrIn,
|
---|
735 | [in] UINT *puiPreferredCodePages,
|
---|
736 | [in] UINT nPreferredCodePages,
|
---|
737 | [in] UINT *puiDetectedCodePages,
|
---|
738 | [in, out] UINT *pnDetectedCodePages,
|
---|
739 | [in] WCHAR *lpSpecialChar);
|
---|
740 | }
|
---|
741 |
|
---|
742 | [
|
---|
743 | uuid(275C23E2-3747-11d0-9FEA-00AA003f8646)
|
---|
744 | ]
|
---|
745 | coclass CMultiLanguage
|
---|
746 | {
|
---|
747 | [default] interface IMultiLanguage;
|
---|
748 | interface IMLangCodePages;
|
---|
749 | interface IMLangFontLink;
|
---|
750 | /* interface IMLangLineBreakConsole; */
|
---|
751 | interface IMLangFontLink2;
|
---|
752 | }
|
---|
753 |
|
---|
754 | cpp_quote("STDAPI LcidToRfc1766A(LCID, LPSTR, INT);")
|
---|
755 | cpp_quote("STDAPI LcidToRfc1766W(LCID, LPWSTR, INT);")
|
---|
756 | cpp_quote("#define LcidToRfc1766 WINELIB_NAME_AW(LcidToRfc1766)")
|
---|
757 |
|
---|
758 | cpp_quote("STDAPI Rfc1766ToLcidA(LCID *, LPCSTR);")
|
---|
759 | cpp_quote("STDAPI Rfc1766ToLcidW(LCID *, LPCWSTR);")
|
---|
760 | cpp_quote("#define Rfc1766ToLcid WINELIB_NAME_AW(Rfc1766ToLcid)")
|
---|
761 |
|
---|
762 | cpp_quote("STDAPI GetGlobalFontLinkObject(void **unknown);")
|
---|
763 | cpp_quote("STDAPI IsConvertINetStringAvailable(DWORD, DWORD);")
|
---|
764 | cpp_quote("STDAPI ConvertINetString(LPDWORD, DWORD, DWORD, LPCSTR, LPINT, LPSTR, LPINT);")
|
---|
765 | cpp_quote("STDAPI ConvertINetMultiByteToUnicode(LPDWORD, DWORD, LPCSTR, LPINT, LPWSTR, LPINT);")
|
---|
766 | cpp_quote("STDAPI ConvertINetUnicodeToMultiByte(LPDWORD, DWORD, LPCWSTR, LPINT, LPSTR, LPINT);")
|
---|