26cpp_quote("
#define CPIOD_FORCE_PROMPT 0x80000000")
29 uuid(275c23e0-3747-11d0-9fea-00aa003f8646),
35 importlib("stdole2.tlb");
39 uuid(359f3443-bd4a-11d0-b188-00aa0038c969),
40 pointer_default(unique)
42interface IMLangCodePages : IUnknown
44 HRESULT GetCharCodePages(
46 [out] DWORD *pdwCodePages);
47 HRESULT GetStrCodePages(
48 [in, size_is(cchSrc)] const WCHAR *pszSrc,
50 [in] DWORD dwPriorityCodePages,
51 [out] DWORD *pdwCodePages,
52 [out] LONG *pcchCodePages);
53 HRESULT CodePageToCodePages(
55 [out] DWORD *pdwCodePages);
56 HRESULT CodePagesToCodePage(
57 [in] DWORD dwCodePages,
58 [in] UINT uDefaultCodePage,
59 [out] UINT *puCodePage);
64 uuid(359f3441-bd4a-11d0-b188-00aa0038c969),
65 pointer_default(unique)
67interface IMLangFontLink : IMLangCodePages
69 HRESULT GetFontCodePages(
72 [out] DWORD *pdwCodePages );
76 [in] DWORD dwCodePages,
78 [out] HFONT *phDestFont);
83 HRESULT ResetFontMapping();
88 uuid(ae5f1430-388b-11d2-8380-00c04f8f5da1),
89 pointer_default(unique)
91interface IEnumScript : IUnknown
93 const USHORT MAX_SCRIPT_NAME = 48;
94 const USHORT MAX_MIMEFACE_NAME = 32;
96 typedef BYTE SCRIPT_ID;
97 typedef __int64 SCRIPT_IDS;
99 typedef enum tagSCRIPTCONTF
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,
147 typedef enum tagSCRIPTFONTCONTF
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
156 typedef struct tagSCRIPFONTINFO
159 WCHAR wszFont[MAX_MIMEFACE_NAME];
160 } SCRIPTFONTINFO, *PSCRIPTFONTINFO;
162 typedef struct tagSCRIPTINFO {
165 WCHAR wszDescription[MAX_SCRIPT_NAME];
166 WCHAR wszFixedWidthFont[MAX_MIMEFACE_NAME];
167 WCHAR wszProportionalFont[MAX_MIMEFACE_NAME];
168 } SCRIPTINFO, *PSCRIPTINFO;
171 [out] IEnumScript **ppEnum);
175 [out] PSCRIPTINFO rgelt,
176 [out] ULONG *pceltFetched);
186 uuid(dccfc162-2b38-11d2-b7ec-00c04f8f5d9a),
187 pointer_default(unique)
189interface IMLangFontLink2 : IMLangCodePages
191 typedef struct tagUNICODERANGE
197 typedef [unique] IMLangFontLink2 *PMLANGFONTLINK2;
199 HRESULT GetFontCodePages(
202 [out] DWORD *pdwCodePages );
207 HRESULT ResetFontMapping();
211 [in] DWORD dwCodePages,
215 HRESULT GetFontUnicodeRanges(
217 [in,out] UINT *puiRanges,
218 [out] UNICODERANGE* pUranges);
220 HRESULT GetScriptFontInfo(
223 [in,out] UINT *puiFonts,
224 [out] SCRIPTFONTINFO* pScriptFont);
226 HRESULT CodePageToScriptID(
227 [in] UINT uiCodePage,
228 [out] SCRIPT_ID *pSid);
233 uuid(c04d65ce-b70d-11d0-b188-00aa0038c969),
234 pointer_default(unique)
236interface IMLangString : IUnknown
242 [out] DWORD* pdwCookie,
243 [out] LONG* plActualPos,
244 [out] LONG* plActualLen);
247 [in] DWORD dwCookie);
250 [in] BOOL fNoAccess);
253 [out, retval] LONG* plLen);
257 [in] IUnknown *pSrcMLStr,
261 HRESULT RegisterAttr(
263 [out] DWORD* pdwCookie);
264 HRESULT UnregisterAttr(
265 [in] DWORD dwCookie);
267 [out] IEnumUnknown **ppEnumUnk);
271 [out] IUnknown **ppUnk);
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);
287 uuid(f5be2ee1-bfd7-11d0-b188-00aa0038c969),
288 pointer_default(unique)
290interface IMLangLineBreakConsole : IUnknown
293 [in] IMLangString* pSrcMLStr,
296 [in] LONG cMinColumns,
297 [in] LONG cMaxColumns,
298 [out] LONG* plLineLen,
299 [out] LONG* plSkipLen);
303 [in, size_is(cchSrc)] const WCHAR* pszSrc,
305 [in] LONG cMaxColumns,
306 [out] LONG* pcchLine,
307 [out] LONG* pcchSkip );
312 [in, size_is(cchSrc)] const CHAR* pszSrc,
314 [in] LONG cMaxColumns,
315 [out] LONG* pcchLine,
316 [out] LONG* pcchSkip);
321 uuid(275c23e3-3747-11d0-9fea-00aa003f8646),
322 pointer_default(unique)
324interface IEnumCodePage : IUnknown
326 const USHORT MAX_MIMECP_NAME = 64;
327 const USHORT MAX_MIMECSET_NAME = 50;
329 typedef enum tagMIMECONTF
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
346 typedef struct tagMIMECPINFO {
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];
357 } MIMECPINFO, *PMIMECPINFO;
359 typedef struct tagMIMECSETINFO
362 UINT uiInternetEncoding;
363 WCHAR wszCharset[MAX_MIMECSET_NAME];
364 } MIMECSETINFO, *PMIMECSETINFO;
367 [out] IEnumCodePage **ppEnum);
371 [out] PMIMECPINFO rgelt,
372 [out] ULONG *pceltFetched);
382 uuid(d66d6f98-cdaa-11d0-b822-00c04fc9b31f),
383 pointer_default(unique)
385interface IMLangConvertCharset : IUnknown
387 typedef enum tagMLCONVCHARF
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
398 typedef enum tagMLCPF
400 MLDETECTF_MAILNEWS = 0x0001,
401 MLDETECTF_BROWSER = 0x0002,
402 MLDETECTF_VALID = 0x0004,
403 MLDETECTF_VALID_NLS = 0x0008,
404 MLDETECTF_PRESERVE_ORDER = 0x0010,
405 MLDETECTF_PREFERRED_ONLY = 0x0020,
406 MLDETECTF_FILTER_SPECIALCHAR = 0x0040,
407 MLDETECTF_EURO_UTF8 = 0x0080
411 [in] UINT uiSrcCodePage,
412 [in] UINT uiDstCodePage,
413 [in] DWORD dwProperty);
415 HRESULT GetSourceCodePage(
416 [out] UINT *puiSrcCodePage);
418 HRESULT GetDestinationCodePage(
419 [out] UINT *puiDstCodePage);
422 [out] DWORD *pdwProperty);
424 HRESULT DoConversion(
426 [in,out] UINT *pcSrcSize,
428 [in,out] UINT *pcDstSize);
430 HRESULT DoConversionToUnicode(
432 [in,out] UINT *pcSrcSize,
434 [in,out] UINT *pcDstSize);
436 HRESULT DoConversionFromUnicode(
438 [in,out] UINT *pcSrcSize,
440 [in,out] UINT *pcDstSize);
444 uuid(d66d6f99-cdaa-11d0-b822-00c04fc9b31f)
446coclass CMLangConvertCharset
448 [default] interface IMLangConvertCharset;
453 uuid(3dc39d1d-c030-11d0-b81b-00c04fc9b31f),
454 pointer_default(unique)
456interface IEnumRfc1766 : IUnknown
458 const USHORT MAX_RFC1766_NAME = 6;
459 const USHORT MAX_LOCALE_NAME = 32;
461 typedef struct tagRFC1766INFO
464 WCHAR wszRfc1766[MAX_RFC1766_NAME];
465 WCHAR wszLocaleName[MAX_LOCALE_NAME];
466 } RFC1766INFO, *PRFC1766INFO;
469 [out] IEnumRfc1766 **ppEnum);
473 [out] PRFC1766INFO rgelt,
474 [out] ULONG *pceltFetched);
484 uuid(275c23e1-3747-11d0-9fea-00aa003f8646),
485 pointer_default(unique)
487interface IMultiLanguage : IUnknown
489 HRESULT GetNumberOfCodePageInfo(
490 [out] UINT *pcCodePage);
492 HRESULT GetCodePageInfo(
493 [in] UINT uiCodePage,
494 [out] PMIMECPINFO pCodePageInfo);
496 HRESULT GetFamilyCodePage(
497 [in] UINT uiCodePage,
498 [out] UINT *puiFamilyCodePage);
500 HRESULT EnumCodePages(
502 [out] IEnumCodePage **ppEnumCodePage);
504 HRESULT GetCharsetInfo(
506 [in] PMIMECSETINFO pCharsetInfo);
508 HRESULT IsConvertible(
509 [in] DWORD dwSrcEncoding,
510 [in] DWORD dwDstEncoding);
512 HRESULT ConvertString(
513 [in,out] DWORD *pdwMode,
514 [in] DWORD dwSrcEncoding,
515 [in] DWORD dwDstEncoding,
517 [in,out] UINT *pcSrcSize,
519 [in,out] UINT *pcDstSize);
521 HRESULT ConvertStringToUnicode(
522 [in,out] DWORD *pdwMode,
523 [in] DWORD dwEncoding,
525 [in,out] UINT *pcSrcSize,
527 [in,out] UINT *pcDstSize);
529 HRESULT ConvertStringFromUnicode(
530 [in,out] DWORD *pdwMode,
531 [in] DWORD dwEncoding,
533 [in,out] UINT *pcSrcSize,
535 [in,out] UINT *pcDstSize);
537 HRESULT ConvertStringReset();
539 HRESULT GetRfc1766FromLcid(
541 [out] BSTR *pbstrRfc1766);
543 HRESULT GetLcidFromRfc1766(
545 [in] BSTR bstrRfc1766);
548 [out] IEnumRfc1766 **ppEnumRfc1766);
550 HRESULT GetRfc1766Info(
552 [out] PRFC1766INFO pRfc1766Info);
554 HRESULT CreateConvertCharset(
555 [in] UINT uiSrcCodePage,
556 [in] UINT uiDstCodePage,
557 [in] DWORD dwProperty,
558 [out] IMLangConvertCharset **ppMLangConvertCharset);
564 uuid(dccfc164-2b38-11d2-b7ec-00c04f8f5d9a),
565 pointer_default(unique)
567interface IMultiLanguage2 : IUnknown
569 typedef struct tagDetectEncodingInfo
575 } DetectEncodingInfo, *pDetectEncodingInfo;
577 HRESULT GetNumberOfCodePageInfo(
578 [out] UINT *pcCodePage);
580 HRESULT GetCodePageInfo(
581 [in] UINT uiCodePage,
583 [out] PMIMECPINFO pCodePageInfo);
585 HRESULT GetFamilyCodePage(
586 [in] UINT uiCodePage,
587 [out] UINT *puiFamilyCodePage);
589 HRESULT EnumCodePages(
592 [out] IEnumCodePage **ppEnumCodePage);
594 HRESULT GetCharsetInfo(
596 [in] PMIMECSETINFO pCharsetInfo);
598 HRESULT IsConvertible(
599 [in] DWORD dwSrcEncoding,
600 [in] DWORD dwDstEncoding);
602 HRESULT ConvertString(
603 [in,out] DWORD *pdwMode,
604 [in] DWORD dwSrcEncoding,
605 [in] DWORD dwDstEncoding,
607 [in,out] UINT *pcSrcSize,
609 [in,out] UINT *pcDstSize);
611 HRESULT ConvertStringToUnicode(
612 [in,out] DWORD *pdwMode,
613 [in] DWORD dwEncoding,
615 [in,out] UINT *pcSrcSize,
617 [in,out] UINT *pcDstSize);
619 HRESULT ConvertStringFromUnicode(
620 [in,out] DWORD *pdwMode,
621 [in] DWORD dwEncoding,
623 [in,out] UINT *pcSrcSize,
625 [in,out] UINT *pcDstSize);
627 HRESULT ConvertStringReset();
629 HRESULT GetRfc1766FromLcid(
631 [out] BSTR *pbstrRfc1766);
633 HRESULT GetLcidFromRfc1766(
635 [in] BSTR bstrRfc1766);
639 [out] IEnumRfc1766 **ppEnumRfc1766);
641 HRESULT GetRfc1766Info(
644 [out] PRFC1766INFO pRfc1766Info);
646 HRESULT CreateConvertCharset(
647 [in] UINT uiSrcCodePage,
648 [in] UINT uiDstCodePage,
649 [in] DWORD dwProperty,
650 [out] IMLangConvertCharset **ppMLangConvertCharset);
652 HRESULT ConvertStringInIStream(
653 [in,out] DWORD *pdwMode,
655 [in] WCHAR *lpFallBack,
656 [in] DWORD dwSrcEncoding,
657 [in] DWORD dwDstEncoding,
658 [in] IStream *pstmIn,
659 [in] IStream *pstmOut);
661 HRESULT ConvertStringToUnicodeEx(
662 [in,out] DWORD *pdwMode,
663 [in] DWORD dwEncoding,
665 [in,out] UINT *pcSrcSize,
667 [in,out] UINT *pcDstSize,
669 [in] WCHAR *lpFallBack);
671 HRESULT ConvertStringFromUnicodeEx(
672 [in,out] DWORD *pdwMode,
673 [in] DWORD dwEncoding,
675 [in,out] UINT *pcSrcSize,
677 [in,out] UINT *pcDstSize,
679 [in] WCHAR *lpFallBack);
681 HRESULT DetectCodepageInIStream(
683 [in] DWORD dwPrefWinCodePage,
684 [in] IStream *pstmIn,
685 [in,out] DetectEncodingInfo *lpEncoding,
686 [in,out] INT *pnScores);
688 HRESULT DetectInputCodepage(
690 [in] DWORD dwPrefWinCodePage,
692 [in,out] INT *pcSrcSize,
693 [in,out] DetectEncodingInfo *lpEncoding,
694 [in,out] INT *pnScores);
696 HRESULT ValidateCodePage(
697 [in] UINT uiCodePage,
700 HRESULT GetCodePageDescription(
701 [in] UINT uiCodePage,
703 [in,out,size_is(cchWideChar)] LPWSTR lpWideCharStr,
704 [in] int cchWideChar);
706 HRESULT IsCodePageInstallable(
707 [in] UINT uiCodePage);
709 HRESULT SetMimeDBSource(
710 [in] MIMECONTF dwSource);
712 HRESULT GetNumberOfScripts(
713 [out] UINT *pnScripts);
718 [out] IEnumScript **ppEnumScript);
720 HRESULT ValidateCodePageEx( /* undocumented on MSDN */
721 [in] UINT uiCodePage,
723 [in] DWORD dwfIODControl);
728 uuid(4e5868ab-b157-4623-9acc-6a1d9caebe04),
729 pointer_default(unique)
731interface IMultiLanguage3 : IMultiLanguage2
733 typedef [unique] IMultiLanguage3 *LPMULTILANGUAGE3;
734 HRESULT DetectOutboundCodePage(
736 [in] LPCWSTR lpWideCharStr,
737 [in] UINT cchWideChar,
738 [in] UINT *puiPreferredCodePages,
739 [in] UINT nPreferredCodePages,
740 [in] UINT *puiDetectedCodePages,
741 [in, out] UINT *pnDetectedCodePages,
742 [in] WCHAR *lpSpecialChar);
744 HRESULT DetectOutboundCodePageInIStream(
746 [in] IStream *pStrIn,
747 [in] UINT *puiPreferredCodePages,
748 [in] UINT nPreferredCodePages,
749 [in] UINT *puiDetectedCodePages,
750 [in, out] UINT *pnDetectedCodePages,
751 [in] WCHAR *lpSpecialChar);
755 uuid(275C23E2-3747-11d0-9FEA-00AA003f8646)
757coclass CMultiLanguage
759 [default] interface IMultiLanguage;
760 interface IMLangCodePages;
761 interface IMLangFontLink;
762 /* interface IMLangLineBreakConsole; */
763 interface IMLangFontLink2;
766} // library MultiLanguage
768cpp_quote("STDAPI LcidToRfc1766A(LCID, LPSTR, INT);")
769cpp_quote("STDAPI LcidToRfc1766W(LCID, LPWSTR, INT);")
770cpp_quote("#define LcidToRfc1766 WINELIB_NAME_AW(LcidToRfc1766)")
772cpp_quote("STDAPI Rfc1766ToLcidA(LCID *, LPCSTR);")
773cpp_quote("STDAPI Rfc1766ToLcidW(LCID *, LPCWSTR);")
774cpp_quote("#define Rfc1766ToLcid WINELIB_NAME_AW(Rfc1766ToLcid)")
776cpp_quote("STDAPI GetGlobalFontLinkObject(void **unknown);")
777cpp_quote("STDAPI IsConvertINetStringAvailable(DWORD, DWORD);")
778cpp_quote("STDAPI ConvertINetString(LPDWORD, DWORD, DWORD, LPCSTR, LPINT, LPSTR, LPINT);")
779cpp_quote("STDAPI ConvertINetMultiByteToUnicode(LPDWORD, DWORD, LPCSTR, LPINT, LPWSTR, LPINT);")
780cpp_quote("STDAPI ConvertINetUnicodeToMultiByte(LPDWORD, DWORD, LPCWSTR, LPINT, LPSTR, LPINT);")
CD3D10_BUFFER_DESC D3D10_BUFFER_DESC cpp_quote(" ~CD3D10_BUFFER_DESC() {}") operator const D3D10_BUFFER_DESC &() const