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 | * Sun 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, Sun 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 | HRESULT Initialize(
|
---|
388 | [in] UINT uiSrcCodePage,
|
---|
389 | [in] UINT uiDstCodePage,
|
---|
390 | [in] DWORD dwProperty);
|
---|
391 |
|
---|
392 | HRESULT GetSourceCodePage(
|
---|
393 | [out] UINT *puiSrcCodePage);
|
---|
394 |
|
---|
395 | HRESULT GetDestinationCodePage(
|
---|
396 | [out] UINT *puiDstCodePage);
|
---|
397 |
|
---|
398 | HRESULT GetProperty(
|
---|
399 | [out] DWORD *pdwProperty);
|
---|
400 |
|
---|
401 | HRESULT DoConversion(
|
---|
402 | [in] BYTE *pSrcStr,
|
---|
403 | [in,out] UINT *pcSrcSize,
|
---|
404 | [in] BYTE *pDstStr,
|
---|
405 | [in,out] UINT *pcDstSize);
|
---|
406 |
|
---|
407 | HRESULT DoConversionToUnicode(
|
---|
408 | [in] CHAR *pSrcStr,
|
---|
409 | [in,out] UINT *pcSrcSize,
|
---|
410 | [in] WCHAR *pDstStr,
|
---|
411 | [in,out] UINT *pcDstSize);
|
---|
412 |
|
---|
413 | HRESULT DoConversionFromUnicode(
|
---|
414 | [in] WCHAR *pSrcStr,
|
---|
415 | [in,out] UINT *pcSrcSize,
|
---|
416 | [in] CHAR *pDstStr,
|
---|
417 | [in,out] UINT *pcDstSize);
|
---|
418 | }
|
---|
419 |
|
---|
420 | [
|
---|
421 | uuid(d66d6f99-cdaa-11d0-b822-00c04fc9b31f)
|
---|
422 | ]
|
---|
423 | coclass CMLangConvertCharset
|
---|
424 | {
|
---|
425 | [default] interface IMLangConvertCharset;
|
---|
426 | };
|
---|
427 |
|
---|
428 | [
|
---|
429 | object,
|
---|
430 | uuid(3dc39d1d-c030-11d0-b81b-00c04fc9b31f),
|
---|
431 | pointer_default(unique)
|
---|
432 | ]
|
---|
433 | interface IEnumRfc1766 : IUnknown
|
---|
434 | {
|
---|
435 | const USHORT MAX_RFC1766_NAME = 6;
|
---|
436 | const USHORT MAX_LOCALE_NAME = 32;
|
---|
437 |
|
---|
438 | typedef struct tagRFC1766INFO
|
---|
439 | {
|
---|
440 | LCID lcid;
|
---|
441 | WCHAR wszRfc1766[MAX_RFC1766_NAME];
|
---|
442 | WCHAR wszLocaleName[MAX_LOCALE_NAME];
|
---|
443 | } RFC1766INFO, *PRFC1766INFO;
|
---|
444 |
|
---|
445 | HRESULT Clone(
|
---|
446 | [out] IEnumRfc1766 **ppEnum);
|
---|
447 |
|
---|
448 | HRESULT Next(
|
---|
449 | [in] ULONG celt,
|
---|
450 | [out] PRFC1766INFO rgelt,
|
---|
451 | [out] ULONG *pceltFetched);
|
---|
452 |
|
---|
453 | HRESULT Reset();
|
---|
454 |
|
---|
455 | HRESULT Skip(
|
---|
456 | [in] ULONG celt);
|
---|
457 | }
|
---|
458 |
|
---|
459 | [
|
---|
460 | object,
|
---|
461 | uuid(275c23e1-3747-11d0-9fea-00aa003f8646),
|
---|
462 | pointer_default(unique)
|
---|
463 | ]
|
---|
464 | interface IMultiLanguage : IUnknown
|
---|
465 | {
|
---|
466 | HRESULT GetNumberOfCodePageInfo(
|
---|
467 | [out] UINT *pcCodePage);
|
---|
468 |
|
---|
469 | HRESULT GetCodePageInfo(
|
---|
470 | [in] UINT uiCodePage,
|
---|
471 | [out] PMIMECPINFO pCodePageInfo);
|
---|
472 |
|
---|
473 | HRESULT GetFamilyCodePage(
|
---|
474 | [in] UINT uiCodePage,
|
---|
475 | [out] UINT *puiFamilyCodePage);
|
---|
476 |
|
---|
477 | HRESULT EnumCodePages(
|
---|
478 | [in] DWORD grfFlags,
|
---|
479 | [out] IEnumCodePage **ppEnumCodePage);
|
---|
480 |
|
---|
481 | HRESULT GetCharsetInfo(
|
---|
482 | [in] BSTR Charset,
|
---|
483 | [in] PMIMECSETINFO pCharsetInfo);
|
---|
484 |
|
---|
485 | HRESULT IsConvertible(
|
---|
486 | [in] DWORD dwSrcEncoding,
|
---|
487 | [in] DWORD dwDstEncoding);
|
---|
488 |
|
---|
489 | HRESULT ConvertString(
|
---|
490 | [in,out] DWORD *pdwMode,
|
---|
491 | [in] DWORD dwSrcEncoding,
|
---|
492 | [in] DWORD dwDstEncoding,
|
---|
493 | [in] BYTE *pSrcStr,
|
---|
494 | [in,out] UINT *pcSrcSize,
|
---|
495 | [in] BYTE *pDstStr,
|
---|
496 | [in,out] UINT *pcDstSize);
|
---|
497 |
|
---|
498 | HRESULT ConvertStringToUnicode(
|
---|
499 | [in,out] DWORD *pdwMode,
|
---|
500 | [in] DWORD dwEncoding,
|
---|
501 | [in] CHAR *pSrcStr,
|
---|
502 | [in,out] UINT *pcSrcSize,
|
---|
503 | [in] WCHAR *pDstStr,
|
---|
504 | [in,out] UINT *pcDstSize);
|
---|
505 |
|
---|
506 | HRESULT ConvertStringFromUnicode(
|
---|
507 | [in,out] DWORD *pdwMode,
|
---|
508 | [in] DWORD dwEncoding,
|
---|
509 | [in] WCHAR *pSrcStr,
|
---|
510 | [in,out] UINT *pcSrcSize,
|
---|
511 | [in] CHAR *pDstStr,
|
---|
512 | [in,out] UINT *pcDstSize);
|
---|
513 |
|
---|
514 | HRESULT ConvertStringReset();
|
---|
515 |
|
---|
516 | HRESULT GetRfc1766FromLcid(
|
---|
517 | [in] LCID Locale,
|
---|
518 | [out] BSTR *pbstrRfc1766);
|
---|
519 |
|
---|
520 | HRESULT GetLcidFromRfc1766(
|
---|
521 | [out] LCID *pLocale,
|
---|
522 | [in] BSTR bstrRfc1766);
|
---|
523 |
|
---|
524 | HRESULT EnumRfc1766(
|
---|
525 | [out] IEnumRfc1766 **ppEnumRfc1766);
|
---|
526 |
|
---|
527 | HRESULT GetRfc1766Info(
|
---|
528 | [in] LCID Locale,
|
---|
529 | [out] PRFC1766INFO pRfc1766Info);
|
---|
530 |
|
---|
531 | HRESULT CreateConvertCharset(
|
---|
532 | [in] UINT uiSrcCodePage,
|
---|
533 | [in] UINT uiDstCodePage,
|
---|
534 | [in] DWORD dwProperty,
|
---|
535 | [out] IMLangConvertCharset **ppMLangConvertCharset);
|
---|
536 |
|
---|
537 | }
|
---|
538 |
|
---|
539 | [
|
---|
540 | object,
|
---|
541 | uuid(dccfc164-2b38-11d2-b7ec-00c04f8f5d9a),
|
---|
542 | pointer_default(unique)
|
---|
543 | ]
|
---|
544 | interface IMultiLanguage2 : IUnknown
|
---|
545 | {
|
---|
546 | typedef struct tagDetectEncodingInfo
|
---|
547 | {
|
---|
548 | UINT nLangID;
|
---|
549 | UINT nCodePage;
|
---|
550 | INT nDocPercent;
|
---|
551 | INT nConfidence;
|
---|
552 | } DetectEncodingInfo, *pDetectEncodingInfo;
|
---|
553 |
|
---|
554 | HRESULT GetNumberOfCodePageInfo(
|
---|
555 | [out] UINT *pcCodePage);
|
---|
556 |
|
---|
557 | HRESULT GetCodePageInfo(
|
---|
558 | [in] UINT uiCodePage,
|
---|
559 | [in] LANGID LangId,
|
---|
560 | [out] PMIMECPINFO pCodePageInfo);
|
---|
561 |
|
---|
562 | HRESULT GetFamilyCodePage(
|
---|
563 | [in] UINT uiCodePage,
|
---|
564 | [out] UINT *puiFamilyCodePage);
|
---|
565 |
|
---|
566 | HRESULT EnumCodePages(
|
---|
567 | [in] DWORD grfFlags,
|
---|
568 | [in] LANGID LangId,
|
---|
569 | [out] IEnumCodePage **ppEnumCodePage);
|
---|
570 |
|
---|
571 | HRESULT GetCharsetInfo(
|
---|
572 | [in] BSTR Charset,
|
---|
573 | [in] PMIMECSETINFO pCharsetInfo);
|
---|
574 |
|
---|
575 | HRESULT IsConvertible(
|
---|
576 | [in] DWORD dwSrcEncoding,
|
---|
577 | [in] DWORD dwDstEncoding);
|
---|
578 |
|
---|
579 | HRESULT ConvertString(
|
---|
580 | [in,out] DWORD *pdwMode,
|
---|
581 | [in] DWORD dwSrcEncoding,
|
---|
582 | [in] DWORD dwDstEncoding,
|
---|
583 | [in] BYTE *pSrcStr,
|
---|
584 | [in,out] UINT *pcSrcSize,
|
---|
585 | [in] BYTE *pDstStr,
|
---|
586 | [in,out] UINT *pcDstSize);
|
---|
587 |
|
---|
588 | HRESULT ConvertStringToUnicode(
|
---|
589 | [in,out] DWORD *pdwMode,
|
---|
590 | [in] DWORD dwEncoding,
|
---|
591 | [in] CHAR *pSrcStr,
|
---|
592 | [in,out] UINT *pcSrcSize,
|
---|
593 | [in] WCHAR *pDstStr,
|
---|
594 | [in,out] UINT *pcDstSize);
|
---|
595 |
|
---|
596 | HRESULT ConvertStringFromUnicode(
|
---|
597 | [in,out] DWORD *pdwMode,
|
---|
598 | [in] DWORD dwEncoding,
|
---|
599 | [in] WCHAR *pSrcStr,
|
---|
600 | [in,out] UINT *pcSrcSize,
|
---|
601 | [in] CHAR *pDstStr,
|
---|
602 | [in,out] UINT *pcDstSize);
|
---|
603 |
|
---|
604 | HRESULT ConvertStringReset();
|
---|
605 |
|
---|
606 | HRESULT GetRfc1766FromLcid(
|
---|
607 | [in] LCID Locale,
|
---|
608 | [out] BSTR *pbstrRfc1766);
|
---|
609 |
|
---|
610 | HRESULT GetLcidFromRfc1766(
|
---|
611 | [out] LCID *pLocale,
|
---|
612 | [in] BSTR bstrRfc1766);
|
---|
613 |
|
---|
614 | HRESULT EnumRfc1766(
|
---|
615 | [in] LANGID LangId,
|
---|
616 | [out] IEnumRfc1766 **ppEnumRfc1766);
|
---|
617 |
|
---|
618 | HRESULT GetRfc1766Info(
|
---|
619 | [in] LCID Locale,
|
---|
620 | [in] LANGID LangId,
|
---|
621 | [out] PRFC1766INFO pRfc1766Info);
|
---|
622 |
|
---|
623 | HRESULT CreateConvertCharset(
|
---|
624 | [in] UINT uiSrcCodePage,
|
---|
625 | [in] UINT uiDstCodePage,
|
---|
626 | [in] DWORD dwProperty,
|
---|
627 | [out] IMLangConvertCharset **ppMLangConvertCharset);
|
---|
628 |
|
---|
629 | HRESULT ConvertStringInIStream(
|
---|
630 | [in,out] DWORD *pdwMode,
|
---|
631 | [in] DWORD dwFlag,
|
---|
632 | [in] WCHAR *lpFallBack,
|
---|
633 | [in] DWORD dwSrcEncoding,
|
---|
634 | [in] DWORD dwDstEncoding,
|
---|
635 | [in] IStream *pstmIn,
|
---|
636 | [in] IStream *pstmOut);
|
---|
637 |
|
---|
638 | HRESULT ConvertStringToUnicodeEx(
|
---|
639 | [in,out] DWORD *pdwMode,
|
---|
640 | [in] DWORD dwEncoding,
|
---|
641 | [in] CHAR *pSrcStr,
|
---|
642 | [in,out] UINT *pcSrcSize,
|
---|
643 | [in] WCHAR *pDstStr,
|
---|
644 | [in,out] UINT *pcDstSize,
|
---|
645 | [in] DWORD dwFlag,
|
---|
646 | [in] WCHAR *lpFallBack);
|
---|
647 |
|
---|
648 | HRESULT ConvertStringFromUnicodeEx(
|
---|
649 | [in,out] DWORD *pdwMode,
|
---|
650 | [in] DWORD dwEncoding,
|
---|
651 | [in] WCHAR *pSrcStr,
|
---|
652 | [in,out] UINT *pcSrcSize,
|
---|
653 | [in] CHAR *pDstStr,
|
---|
654 | [in,out] UINT *pcDstSize,
|
---|
655 | [in] DWORD dwFlag,
|
---|
656 | [in] WCHAR *lpFallBack);
|
---|
657 |
|
---|
658 | HRESULT DetectCodepageInIStream(
|
---|
659 | [in] DWORD dwFlag,
|
---|
660 | [in] DWORD dwPrefWinCodePage,
|
---|
661 | [in] IStream *pstmIn,
|
---|
662 | [in,out] DetectEncodingInfo *lpEncoding,
|
---|
663 | [in,out] INT *pnScores);
|
---|
664 |
|
---|
665 | HRESULT DetectInputCodepage(
|
---|
666 | [in] DWORD dwFlag,
|
---|
667 | [in] DWORD dwPrefWinCodePage,
|
---|
668 | [in] CHAR *pSrcStr,
|
---|
669 | [in,out] INT *pcSrcSize,
|
---|
670 | [in,out] DetectEncodingInfo *lpEncoding,
|
---|
671 | [in,out] INT *pnScores);
|
---|
672 |
|
---|
673 | HRESULT ValidateCodePage(
|
---|
674 | [in] UINT uiCodePage,
|
---|
675 | [in] HWND hwnd);
|
---|
676 |
|
---|
677 | HRESULT GetCodePageDescription(
|
---|
678 | [in] UINT uiCodePage,
|
---|
679 | [in] LCID lcid,
|
---|
680 | [in,out,size_is(cchWideChar)] LPWSTR lpWideCharStr,
|
---|
681 | [in] int cchWideChar);
|
---|
682 |
|
---|
683 | HRESULT IsCodePageInstallable(
|
---|
684 | [in] UINT uiCodePage);
|
---|
685 |
|
---|
686 | HRESULT SetMimeDBSource(
|
---|
687 | [in] MIMECONTF dwSource);
|
---|
688 |
|
---|
689 | HRESULT GetNumberOfScripts(
|
---|
690 | [out] UINT *pnScripts);
|
---|
691 |
|
---|
692 | HRESULT EnumScripts(
|
---|
693 | [in] DWORD dwFlags,
|
---|
694 | [in] LANGID LangId,
|
---|
695 | [out] IEnumScript **ppEnumScript);
|
---|
696 |
|
---|
697 | HRESULT ValidateCodePageEx( /* undocumented on MSDN */
|
---|
698 | [in] UINT uiCodePage,
|
---|
699 | [in] HWND hwnd,
|
---|
700 | [in] DWORD dwfIODControl);
|
---|
701 | }
|
---|
702 |
|
---|
703 | [
|
---|
704 | object,
|
---|
705 | uuid(4e5868ab-b157-4623-9acc-6a1d9caebe04),
|
---|
706 | pointer_default(unique)
|
---|
707 | ]
|
---|
708 | interface IMultiLanguage3 : IMultiLanguage2
|
---|
709 | {
|
---|
710 | typedef [unique] IMultiLanguage3 *LPMULTILANGUAGE3;
|
---|
711 | HRESULT DetectOutboundCodePage(
|
---|
712 | [in] DWORD dwFlags,
|
---|
713 | [in] LPCWSTR lpWideCharStr,
|
---|
714 | [in] UINT cchWideChar,
|
---|
715 | [in] UINT *puiPreferredCodePages,
|
---|
716 | [in] UINT nPreferredCodePages,
|
---|
717 | [in] UINT *puiDetectedCodePages,
|
---|
718 | [in, out] UINT *pnDetectedCodePages,
|
---|
719 | [in] WCHAR *lpSpecialChar);
|
---|
720 |
|
---|
721 | HRESULT DetectOutboundCodePageInIStream(
|
---|
722 | [in] DWORD dwFlags,
|
---|
723 | [in] IStream *pStrIn,
|
---|
724 | [in] UINT *puiPreferredCodePages,
|
---|
725 | [in] UINT nPreferredCodePages,
|
---|
726 | [in] UINT *puiDetectedCodePages,
|
---|
727 | [in, out] UINT *pnDetectedCodePages,
|
---|
728 | [in] WCHAR *lpSpecialChar);
|
---|
729 | }
|
---|
730 |
|
---|
731 | [
|
---|
732 | uuid(275C23E2-3747-11d0-9FEA-00AA003f8646)
|
---|
733 | ]
|
---|
734 | coclass CMultiLanguage
|
---|
735 | {
|
---|
736 | [default] interface IMultiLanguage;
|
---|
737 | interface IMLangCodePages;
|
---|
738 | interface IMLangFontLink;
|
---|
739 | /* interface IMLangLineBreakConsole; */
|
---|
740 | interface IMLangFontLink2;
|
---|
741 | }
|
---|
742 |
|
---|
743 | cpp_quote("STDAPI LcidToRfc1766A(LCID, LPSTR, INT);")
|
---|
744 | cpp_quote("STDAPI LcidToRfc1766W(LCID, LPWSTR, INT);")
|
---|
745 | cpp_quote("#define LcidToRfc1766 WINELIB_NAME_AW(LcidToRfc1766)")
|
---|
746 |
|
---|
747 | cpp_quote("STDAPI Rfc1766ToLcidA(LCID *, LPCSTR);")
|
---|
748 | cpp_quote("STDAPI Rfc1766ToLcidW(LCID *, LPCWSTR);")
|
---|
749 | cpp_quote("#define Rfc1766ToLcid WINELIB_NAME_AW(Rfc1766ToLcid)")
|
---|
750 |
|
---|
751 | cpp_quote("STDAPI GetGlobalFontLinkObject(void);")
|
---|
752 | cpp_quote("STDAPI IsConvertINetStringAvailable(DWORD, DWORD);")
|
---|
753 | cpp_quote("STDAPI ConvertINetString(LPDWORD, DWORD, DWORD, LPCSTR, LPINT, LPSTR, LPINT);")
|
---|
754 | cpp_quote("STDAPI ConvertINetMultiByteToUnicode(LPDWORD, DWORD, LPCSTR, LPINT, LPWSTR, LPINT);")
|
---|
755 | cpp_quote("STDAPI ConvertINetUnicodeToMultiByte(LPDWORD, DWORD, LPCWSTR, LPINT, LPSTR, LPINT);")
|
---|