MLang.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:171k
- IMLangConvertCharset * This,
- /* [out] */ UINT *puiDstCodePage);
- void __RPC_STUB IMLangConvertCharset_GetDestinationCodePage_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMLangConvertCharset_GetProperty_Proxy(
- IMLangConvertCharset * This,
- /* [out] */ DWORD *pdwProperty);
- void __RPC_STUB IMLangConvertCharset_GetProperty_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMLangConvertCharset_DoConversion_Proxy(
- IMLangConvertCharset * This,
- /* [in] */ BYTE *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ BYTE *pDstStr,
- /* [out][in] */ UINT *pcDstSize);
- void __RPC_STUB IMLangConvertCharset_DoConversion_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMLangConvertCharset_DoConversionToUnicode_Proxy(
- IMLangConvertCharset * This,
- /* [in] */ CHAR *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ WCHAR *pDstStr,
- /* [out][in] */ UINT *pcDstSize);
- void __RPC_STUB IMLangConvertCharset_DoConversionToUnicode_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMLangConvertCharset_DoConversionFromUnicode_Proxy(
- IMLangConvertCharset * This,
- /* [in] */ WCHAR *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ CHAR *pDstStr,
- /* [out][in] */ UINT *pcDstSize);
- void __RPC_STUB IMLangConvertCharset_DoConversionFromUnicode_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __IMLangConvertCharset_INTERFACE_DEFINED__ */
- EXTERN_C const CLSID CLSID_CMLangConvertCharset;
- #ifdef __cplusplus
- class DECLSPEC_UUID("d66d6f99-cdaa-11d0-b822-00c04fc9b31f")
- CMLangConvertCharset;
- #endif
- #ifndef __IMultiLanguage_INTERFACE_DEFINED__
- #define __IMultiLanguage_INTERFACE_DEFINED__
- /* interface IMultiLanguage */
- /* [unique][uuid][object] */
- typedef /* [unique] */ IMultiLanguage *LPMULTILANGUAGE;
- EXTERN_C const IID IID_IMultiLanguage;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("275c23e1-3747-11d0-9fea-00aa003f8646")
- IMultiLanguage : public IUnknown
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE GetNumberOfCodePageInfo(
- /* [out] */ UINT *pcCodePage) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetCodePageInfo(
- /* [in] */ UINT uiCodePage,
- /* [out] */ PMIMECPINFO pCodePageInfo) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetFamilyCodePage(
- /* [in] */ UINT uiCodePage,
- /* [out] */ UINT *puiFamilyCodePage) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE EnumCodePages(
- /* [in] */ DWORD grfFlags,
- /* [out] */ IEnumCodePage **ppEnumCodePage) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetCharsetInfo(
- /* [in] */ BSTR Charset,
- /* [out] */ PMIMECSETINFO pCharsetInfo) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE IsConvertible(
- /* [in] */ DWORD dwSrcEncoding,
- /* [in] */ DWORD dwDstEncoding) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE ConvertString(
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwSrcEncoding,
- /* [in] */ DWORD dwDstEncoding,
- /* [in] */ BYTE *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ BYTE *pDstStr,
- /* [out][in] */ UINT *pcDstSize) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE ConvertStringToUnicode(
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwEncoding,
- /* [in] */ CHAR *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ WCHAR *pDstStr,
- /* [out][in] */ UINT *pcDstSize) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE ConvertStringFromUnicode(
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwEncoding,
- /* [in] */ WCHAR *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ CHAR *pDstStr,
- /* [out][in] */ UINT *pcDstSize) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE ConvertStringReset( void) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetRfc1766FromLcid(
- /* [in] */ LCID Locale,
- /* [out] */ BSTR *pbstrRfc1766) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetLcidFromRfc1766(
- /* [out] */ LCID *pLocale,
- /* [in] */ BSTR bstrRfc1766) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE EnumRfc1766(
- /* [out] */ IEnumRfc1766 **ppEnumRfc1766) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetRfc1766Info(
- /* [in] */ LCID Locale,
- /* [out] */ PRFC1766INFO pRfc1766Info) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE CreateConvertCharset(
- /* [in] */ UINT uiSrcCodePage,
- /* [in] */ UINT uiDstCodePage,
- /* [in] */ DWORD dwProperty,
- /* [out] */ IMLangConvertCharset **ppMLangConvertCharset) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct IMultiLanguageVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- IMultiLanguage * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- IMultiLanguage * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- IMultiLanguage * This);
-
- HRESULT ( STDMETHODCALLTYPE *GetNumberOfCodePageInfo )(
- IMultiLanguage * This,
- /* [out] */ UINT *pcCodePage);
-
- HRESULT ( STDMETHODCALLTYPE *GetCodePageInfo )(
- IMultiLanguage * This,
- /* [in] */ UINT uiCodePage,
- /* [out] */ PMIMECPINFO pCodePageInfo);
-
- HRESULT ( STDMETHODCALLTYPE *GetFamilyCodePage )(
- IMultiLanguage * This,
- /* [in] */ UINT uiCodePage,
- /* [out] */ UINT *puiFamilyCodePage);
-
- HRESULT ( STDMETHODCALLTYPE *EnumCodePages )(
- IMultiLanguage * This,
- /* [in] */ DWORD grfFlags,
- /* [out] */ IEnumCodePage **ppEnumCodePage);
-
- HRESULT ( STDMETHODCALLTYPE *GetCharsetInfo )(
- IMultiLanguage * This,
- /* [in] */ BSTR Charset,
- /* [out] */ PMIMECSETINFO pCharsetInfo);
-
- HRESULT ( STDMETHODCALLTYPE *IsConvertible )(
- IMultiLanguage * This,
- /* [in] */ DWORD dwSrcEncoding,
- /* [in] */ DWORD dwDstEncoding);
-
- HRESULT ( STDMETHODCALLTYPE *ConvertString )(
- IMultiLanguage * This,
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwSrcEncoding,
- /* [in] */ DWORD dwDstEncoding,
- /* [in] */ BYTE *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ BYTE *pDstStr,
- /* [out][in] */ UINT *pcDstSize);
-
- HRESULT ( STDMETHODCALLTYPE *ConvertStringToUnicode )(
- IMultiLanguage * This,
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwEncoding,
- /* [in] */ CHAR *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ WCHAR *pDstStr,
- /* [out][in] */ UINT *pcDstSize);
-
- HRESULT ( STDMETHODCALLTYPE *ConvertStringFromUnicode )(
- IMultiLanguage * This,
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwEncoding,
- /* [in] */ WCHAR *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ CHAR *pDstStr,
- /* [out][in] */ UINT *pcDstSize);
-
- HRESULT ( STDMETHODCALLTYPE *ConvertStringReset )(
- IMultiLanguage * This);
-
- HRESULT ( STDMETHODCALLTYPE *GetRfc1766FromLcid )(
- IMultiLanguage * This,
- /* [in] */ LCID Locale,
- /* [out] */ BSTR *pbstrRfc1766);
-
- HRESULT ( STDMETHODCALLTYPE *GetLcidFromRfc1766 )(
- IMultiLanguage * This,
- /* [out] */ LCID *pLocale,
- /* [in] */ BSTR bstrRfc1766);
-
- HRESULT ( STDMETHODCALLTYPE *EnumRfc1766 )(
- IMultiLanguage * This,
- /* [out] */ IEnumRfc1766 **ppEnumRfc1766);
-
- HRESULT ( STDMETHODCALLTYPE *GetRfc1766Info )(
- IMultiLanguage * This,
- /* [in] */ LCID Locale,
- /* [out] */ PRFC1766INFO pRfc1766Info);
-
- HRESULT ( STDMETHODCALLTYPE *CreateConvertCharset )(
- IMultiLanguage * This,
- /* [in] */ UINT uiSrcCodePage,
- /* [in] */ UINT uiDstCodePage,
- /* [in] */ DWORD dwProperty,
- /* [out] */ IMLangConvertCharset **ppMLangConvertCharset);
-
- END_INTERFACE
- } IMultiLanguageVtbl;
- interface IMultiLanguage
- {
- CONST_VTBL struct IMultiLanguageVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define IMultiLanguage_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define IMultiLanguage_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define IMultiLanguage_Release(This)
- (This)->lpVtbl -> Release(This)
- #define IMultiLanguage_GetNumberOfCodePageInfo(This,pcCodePage)
- (This)->lpVtbl -> GetNumberOfCodePageInfo(This,pcCodePage)
- #define IMultiLanguage_GetCodePageInfo(This,uiCodePage,pCodePageInfo)
- (This)->lpVtbl -> GetCodePageInfo(This,uiCodePage,pCodePageInfo)
- #define IMultiLanguage_GetFamilyCodePage(This,uiCodePage,puiFamilyCodePage)
- (This)->lpVtbl -> GetFamilyCodePage(This,uiCodePage,puiFamilyCodePage)
- #define IMultiLanguage_EnumCodePages(This,grfFlags,ppEnumCodePage)
- (This)->lpVtbl -> EnumCodePages(This,grfFlags,ppEnumCodePage)
- #define IMultiLanguage_GetCharsetInfo(This,Charset,pCharsetInfo)
- (This)->lpVtbl -> GetCharsetInfo(This,Charset,pCharsetInfo)
- #define IMultiLanguage_IsConvertible(This,dwSrcEncoding,dwDstEncoding)
- (This)->lpVtbl -> IsConvertible(This,dwSrcEncoding,dwDstEncoding)
- #define IMultiLanguage_ConvertString(This,pdwMode,dwSrcEncoding,dwDstEncoding,pSrcStr,pcSrcSize,pDstStr,pcDstSize)
- (This)->lpVtbl -> ConvertString(This,pdwMode,dwSrcEncoding,dwDstEncoding,pSrcStr,pcSrcSize,pDstStr,pcDstSize)
- #define IMultiLanguage_ConvertStringToUnicode(This,pdwMode,dwEncoding,pSrcStr,pcSrcSize,pDstStr,pcDstSize)
- (This)->lpVtbl -> ConvertStringToUnicode(This,pdwMode,dwEncoding,pSrcStr,pcSrcSize,pDstStr,pcDstSize)
- #define IMultiLanguage_ConvertStringFromUnicode(This,pdwMode,dwEncoding,pSrcStr,pcSrcSize,pDstStr,pcDstSize)
- (This)->lpVtbl -> ConvertStringFromUnicode(This,pdwMode,dwEncoding,pSrcStr,pcSrcSize,pDstStr,pcDstSize)
- #define IMultiLanguage_ConvertStringReset(This)
- (This)->lpVtbl -> ConvertStringReset(This)
- #define IMultiLanguage_GetRfc1766FromLcid(This,Locale,pbstrRfc1766)
- (This)->lpVtbl -> GetRfc1766FromLcid(This,Locale,pbstrRfc1766)
- #define IMultiLanguage_GetLcidFromRfc1766(This,pLocale,bstrRfc1766)
- (This)->lpVtbl -> GetLcidFromRfc1766(This,pLocale,bstrRfc1766)
- #define IMultiLanguage_EnumRfc1766(This,ppEnumRfc1766)
- (This)->lpVtbl -> EnumRfc1766(This,ppEnumRfc1766)
- #define IMultiLanguage_GetRfc1766Info(This,Locale,pRfc1766Info)
- (This)->lpVtbl -> GetRfc1766Info(This,Locale,pRfc1766Info)
- #define IMultiLanguage_CreateConvertCharset(This,uiSrcCodePage,uiDstCodePage,dwProperty,ppMLangConvertCharset)
- (This)->lpVtbl -> CreateConvertCharset(This,uiSrcCodePage,uiDstCodePage,dwProperty,ppMLangConvertCharset)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE IMultiLanguage_GetNumberOfCodePageInfo_Proxy(
- IMultiLanguage * This,
- /* [out] */ UINT *pcCodePage);
- void __RPC_STUB IMultiLanguage_GetNumberOfCodePageInfo_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage_GetCodePageInfo_Proxy(
- IMultiLanguage * This,
- /* [in] */ UINT uiCodePage,
- /* [out] */ PMIMECPINFO pCodePageInfo);
- void __RPC_STUB IMultiLanguage_GetCodePageInfo_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage_GetFamilyCodePage_Proxy(
- IMultiLanguage * This,
- /* [in] */ UINT uiCodePage,
- /* [out] */ UINT *puiFamilyCodePage);
- void __RPC_STUB IMultiLanguage_GetFamilyCodePage_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage_EnumCodePages_Proxy(
- IMultiLanguage * This,
- /* [in] */ DWORD grfFlags,
- /* [out] */ IEnumCodePage **ppEnumCodePage);
- void __RPC_STUB IMultiLanguage_EnumCodePages_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage_GetCharsetInfo_Proxy(
- IMultiLanguage * This,
- /* [in] */ BSTR Charset,
- /* [out] */ PMIMECSETINFO pCharsetInfo);
- void __RPC_STUB IMultiLanguage_GetCharsetInfo_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage_IsConvertible_Proxy(
- IMultiLanguage * This,
- /* [in] */ DWORD dwSrcEncoding,
- /* [in] */ DWORD dwDstEncoding);
- void __RPC_STUB IMultiLanguage_IsConvertible_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage_ConvertString_Proxy(
- IMultiLanguage * This,
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwSrcEncoding,
- /* [in] */ DWORD dwDstEncoding,
- /* [in] */ BYTE *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ BYTE *pDstStr,
- /* [out][in] */ UINT *pcDstSize);
- void __RPC_STUB IMultiLanguage_ConvertString_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage_ConvertStringToUnicode_Proxy(
- IMultiLanguage * This,
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwEncoding,
- /* [in] */ CHAR *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ WCHAR *pDstStr,
- /* [out][in] */ UINT *pcDstSize);
- void __RPC_STUB IMultiLanguage_ConvertStringToUnicode_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage_ConvertStringFromUnicode_Proxy(
- IMultiLanguage * This,
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwEncoding,
- /* [in] */ WCHAR *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ CHAR *pDstStr,
- /* [out][in] */ UINT *pcDstSize);
- void __RPC_STUB IMultiLanguage_ConvertStringFromUnicode_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage_ConvertStringReset_Proxy(
- IMultiLanguage * This);
- void __RPC_STUB IMultiLanguage_ConvertStringReset_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage_GetRfc1766FromLcid_Proxy(
- IMultiLanguage * This,
- /* [in] */ LCID Locale,
- /* [out] */ BSTR *pbstrRfc1766);
- void __RPC_STUB IMultiLanguage_GetRfc1766FromLcid_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage_GetLcidFromRfc1766_Proxy(
- IMultiLanguage * This,
- /* [out] */ LCID *pLocale,
- /* [in] */ BSTR bstrRfc1766);
- void __RPC_STUB IMultiLanguage_GetLcidFromRfc1766_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage_EnumRfc1766_Proxy(
- IMultiLanguage * This,
- /* [out] */ IEnumRfc1766 **ppEnumRfc1766);
- void __RPC_STUB IMultiLanguage_EnumRfc1766_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage_GetRfc1766Info_Proxy(
- IMultiLanguage * This,
- /* [in] */ LCID Locale,
- /* [out] */ PRFC1766INFO pRfc1766Info);
- void __RPC_STUB IMultiLanguage_GetRfc1766Info_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage_CreateConvertCharset_Proxy(
- IMultiLanguage * This,
- /* [in] */ UINT uiSrcCodePage,
- /* [in] */ UINT uiDstCodePage,
- /* [in] */ DWORD dwProperty,
- /* [out] */ IMLangConvertCharset **ppMLangConvertCharset);
- void __RPC_STUB IMultiLanguage_CreateConvertCharset_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __IMultiLanguage_INTERFACE_DEFINED__ */
- #ifndef __IMultiLanguage2_INTERFACE_DEFINED__
- #define __IMultiLanguage2_INTERFACE_DEFINED__
- /* interface IMultiLanguage2 */
- /* [unique][uuid][object] */
- typedef /* [unique] */ IMultiLanguage2 *LPMULTILANGUAGE2;
- typedef
- enum tagMLDETECTCP
- { MLDETECTCP_NONE = 0,
- MLDETECTCP_7BIT = 1,
- MLDETECTCP_8BIT = 2,
- MLDETECTCP_DBCS = 4,
- MLDETECTCP_HTML = 8,
- MLDETECTCP_NUMBER = 16
- } MLDETECTCP;
- typedef struct tagDetectEncodingInfo
- {
- UINT nLangID;
- UINT nCodePage;
- INT nDocPercent;
- INT nConfidence;
- } DetectEncodingInfo;
- typedef struct tagDetectEncodingInfo *pDetectEncodingInfo;
- typedef
- enum tagSCRIPTFONTCONTF
- { SCRIPTCONTF_FIXED_FONT = 0x1,
- SCRIPTCONTF_PROPORTIONAL_FONT = 0x2,
- SCRIPTCONTF_SCRIPT_USER = 0x10000,
- SCRIPTCONTF_SCRIPT_HIDE = 0x20000,
- SCRIPTCONTF_SCRIPT_SYSTEM = 0x40000
- } SCRIPTFONTCONTF;
- typedef struct tagSCRIPFONTINFO
- {
- SCRIPT_IDS scripts;
- WCHAR wszFont[ 32 ];
- } SCRIPTFONTINFO;
- typedef struct tagSCRIPFONTINFO *PSCRIPTFONTINFO;
- EXTERN_C const IID IID_IMultiLanguage2;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("DCCFC164-2B38-11d2-B7EC-00C04F8F5D9A")
- IMultiLanguage2 : public IUnknown
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE GetNumberOfCodePageInfo(
- /* [out] */ UINT *pcCodePage) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetCodePageInfo(
- /* [in] */ UINT uiCodePage,
- /* [in] */ LANGID LangId,
- /* [out] */ PMIMECPINFO pCodePageInfo) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetFamilyCodePage(
- /* [in] */ UINT uiCodePage,
- /* [out] */ UINT *puiFamilyCodePage) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE EnumCodePages(
- /* [in] */ DWORD grfFlags,
- /* [in] */ LANGID LangId,
- /* [out] */ IEnumCodePage **ppEnumCodePage) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetCharsetInfo(
- /* [in] */ BSTR Charset,
- /* [out] */ PMIMECSETINFO pCharsetInfo) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE IsConvertible(
- /* [in] */ DWORD dwSrcEncoding,
- /* [in] */ DWORD dwDstEncoding) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE ConvertString(
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwSrcEncoding,
- /* [in] */ DWORD dwDstEncoding,
- /* [in] */ BYTE *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ BYTE *pDstStr,
- /* [out][in] */ UINT *pcDstSize) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE ConvertStringToUnicode(
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwEncoding,
- /* [in] */ CHAR *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ WCHAR *pDstStr,
- /* [out][in] */ UINT *pcDstSize) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE ConvertStringFromUnicode(
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwEncoding,
- /* [in] */ WCHAR *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ CHAR *pDstStr,
- /* [out][in] */ UINT *pcDstSize) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE ConvertStringReset( void) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetRfc1766FromLcid(
- /* [in] */ LCID Locale,
- /* [out] */ BSTR *pbstrRfc1766) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetLcidFromRfc1766(
- /* [out] */ LCID *pLocale,
- /* [in] */ BSTR bstrRfc1766) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE EnumRfc1766(
- /* [in] */ LANGID LangId,
- /* [out] */ IEnumRfc1766 **ppEnumRfc1766) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetRfc1766Info(
- /* [in] */ LCID Locale,
- /* [in] */ LANGID LangId,
- /* [out] */ PRFC1766INFO pRfc1766Info) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE CreateConvertCharset(
- /* [in] */ UINT uiSrcCodePage,
- /* [in] */ UINT uiDstCodePage,
- /* [in] */ DWORD dwProperty,
- /* [out] */ IMLangConvertCharset **ppMLangConvertCharset) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE ConvertStringInIStream(
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwFlag,
- /* [in] */ WCHAR *lpFallBack,
- /* [in] */ DWORD dwSrcEncoding,
- /* [in] */ DWORD dwDstEncoding,
- /* [in] */ IStream *pstmIn,
- /* [in] */ IStream *pstmOut) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE ConvertStringToUnicodeEx(
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwEncoding,
- /* [in] */ CHAR *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ WCHAR *pDstStr,
- /* [out][in] */ UINT *pcDstSize,
- /* [in] */ DWORD dwFlag,
- /* [in] */ WCHAR *lpFallBack) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE ConvertStringFromUnicodeEx(
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwEncoding,
- /* [in] */ WCHAR *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ CHAR *pDstStr,
- /* [out][in] */ UINT *pcDstSize,
- /* [in] */ DWORD dwFlag,
- /* [in] */ WCHAR *lpFallBack) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE DetectCodepageInIStream(
- /* [in] */ DWORD dwFlag,
- /* [in] */ DWORD dwPrefWinCodePage,
- /* [in] */ IStream *pstmIn,
- /* [out][in] */ DetectEncodingInfo *lpEncoding,
- /* [out][in] */ INT *pnScores) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE DetectInputCodepage(
- /* [in] */ DWORD dwFlag,
- /* [in] */ DWORD dwPrefWinCodePage,
- /* [in] */ CHAR *pSrcStr,
- /* [out][in] */ INT *pcSrcSize,
- /* [out][in] */ DetectEncodingInfo *lpEncoding,
- /* [out][in] */ INT *pnScores) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE ValidateCodePage(
- /* [in] */ UINT uiCodePage,
- /* [in] */ HWND hwnd) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetCodePageDescription(
- /* [in] */ UINT uiCodePage,
- /* [in] */ LCID lcid,
- /* [out][in] */ LPWSTR lpWideCharStr,
- /* [in] */ int cchWideChar) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE IsCodePageInstallable(
- /* [in] */ UINT uiCodePage) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetMimeDBSource(
- /* [in] */ MIMECONTF dwSource) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetNumberOfScripts(
- /* [out] */ UINT *pnScripts) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE EnumScripts(
- /* [in] */ DWORD dwFlags,
- /* [in] */ LANGID LangId,
- /* [out] */ IEnumScript **ppEnumScript) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE ValidateCodePageEx(
- /* [in] */ UINT uiCodePage,
- /* [in] */ HWND hwnd,
- /* [in] */ DWORD dwfIODControl) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct IMultiLanguage2Vtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- IMultiLanguage2 * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- IMultiLanguage2 * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- IMultiLanguage2 * This);
-
- HRESULT ( STDMETHODCALLTYPE *GetNumberOfCodePageInfo )(
- IMultiLanguage2 * This,
- /* [out] */ UINT *pcCodePage);
-
- HRESULT ( STDMETHODCALLTYPE *GetCodePageInfo )(
- IMultiLanguage2 * This,
- /* [in] */ UINT uiCodePage,
- /* [in] */ LANGID LangId,
- /* [out] */ PMIMECPINFO pCodePageInfo);
-
- HRESULT ( STDMETHODCALLTYPE *GetFamilyCodePage )(
- IMultiLanguage2 * This,
- /* [in] */ UINT uiCodePage,
- /* [out] */ UINT *puiFamilyCodePage);
-
- HRESULT ( STDMETHODCALLTYPE *EnumCodePages )(
- IMultiLanguage2 * This,
- /* [in] */ DWORD grfFlags,
- /* [in] */ LANGID LangId,
- /* [out] */ IEnumCodePage **ppEnumCodePage);
-
- HRESULT ( STDMETHODCALLTYPE *GetCharsetInfo )(
- IMultiLanguage2 * This,
- /* [in] */ BSTR Charset,
- /* [out] */ PMIMECSETINFO pCharsetInfo);
-
- HRESULT ( STDMETHODCALLTYPE *IsConvertible )(
- IMultiLanguage2 * This,
- /* [in] */ DWORD dwSrcEncoding,
- /* [in] */ DWORD dwDstEncoding);
-
- HRESULT ( STDMETHODCALLTYPE *ConvertString )(
- IMultiLanguage2 * This,
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwSrcEncoding,
- /* [in] */ DWORD dwDstEncoding,
- /* [in] */ BYTE *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ BYTE *pDstStr,
- /* [out][in] */ UINT *pcDstSize);
-
- HRESULT ( STDMETHODCALLTYPE *ConvertStringToUnicode )(
- IMultiLanguage2 * This,
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwEncoding,
- /* [in] */ CHAR *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ WCHAR *pDstStr,
- /* [out][in] */ UINT *pcDstSize);
-
- HRESULT ( STDMETHODCALLTYPE *ConvertStringFromUnicode )(
- IMultiLanguage2 * This,
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwEncoding,
- /* [in] */ WCHAR *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ CHAR *pDstStr,
- /* [out][in] */ UINT *pcDstSize);
-
- HRESULT ( STDMETHODCALLTYPE *ConvertStringReset )(
- IMultiLanguage2 * This);
-
- HRESULT ( STDMETHODCALLTYPE *GetRfc1766FromLcid )(
- IMultiLanguage2 * This,
- /* [in] */ LCID Locale,
- /* [out] */ BSTR *pbstrRfc1766);
-
- HRESULT ( STDMETHODCALLTYPE *GetLcidFromRfc1766 )(
- IMultiLanguage2 * This,
- /* [out] */ LCID *pLocale,
- /* [in] */ BSTR bstrRfc1766);
-
- HRESULT ( STDMETHODCALLTYPE *EnumRfc1766 )(
- IMultiLanguage2 * This,
- /* [in] */ LANGID LangId,
- /* [out] */ IEnumRfc1766 **ppEnumRfc1766);
-
- HRESULT ( STDMETHODCALLTYPE *GetRfc1766Info )(
- IMultiLanguage2 * This,
- /* [in] */ LCID Locale,
- /* [in] */ LANGID LangId,
- /* [out] */ PRFC1766INFO pRfc1766Info);
-
- HRESULT ( STDMETHODCALLTYPE *CreateConvertCharset )(
- IMultiLanguage2 * This,
- /* [in] */ UINT uiSrcCodePage,
- /* [in] */ UINT uiDstCodePage,
- /* [in] */ DWORD dwProperty,
- /* [out] */ IMLangConvertCharset **ppMLangConvertCharset);
-
- HRESULT ( STDMETHODCALLTYPE *ConvertStringInIStream )(
- IMultiLanguage2 * This,
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwFlag,
- /* [in] */ WCHAR *lpFallBack,
- /* [in] */ DWORD dwSrcEncoding,
- /* [in] */ DWORD dwDstEncoding,
- /* [in] */ IStream *pstmIn,
- /* [in] */ IStream *pstmOut);
-
- HRESULT ( STDMETHODCALLTYPE *ConvertStringToUnicodeEx )(
- IMultiLanguage2 * This,
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwEncoding,
- /* [in] */ CHAR *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ WCHAR *pDstStr,
- /* [out][in] */ UINT *pcDstSize,
- /* [in] */ DWORD dwFlag,
- /* [in] */ WCHAR *lpFallBack);
-
- HRESULT ( STDMETHODCALLTYPE *ConvertStringFromUnicodeEx )(
- IMultiLanguage2 * This,
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwEncoding,
- /* [in] */ WCHAR *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ CHAR *pDstStr,
- /* [out][in] */ UINT *pcDstSize,
- /* [in] */ DWORD dwFlag,
- /* [in] */ WCHAR *lpFallBack);
-
- HRESULT ( STDMETHODCALLTYPE *DetectCodepageInIStream )(
- IMultiLanguage2 * This,
- /* [in] */ DWORD dwFlag,
- /* [in] */ DWORD dwPrefWinCodePage,
- /* [in] */ IStream *pstmIn,
- /* [out][in] */ DetectEncodingInfo *lpEncoding,
- /* [out][in] */ INT *pnScores);
-
- HRESULT ( STDMETHODCALLTYPE *DetectInputCodepage )(
- IMultiLanguage2 * This,
- /* [in] */ DWORD dwFlag,
- /* [in] */ DWORD dwPrefWinCodePage,
- /* [in] */ CHAR *pSrcStr,
- /* [out][in] */ INT *pcSrcSize,
- /* [out][in] */ DetectEncodingInfo *lpEncoding,
- /* [out][in] */ INT *pnScores);
-
- HRESULT ( STDMETHODCALLTYPE *ValidateCodePage )(
- IMultiLanguage2 * This,
- /* [in] */ UINT uiCodePage,
- /* [in] */ HWND hwnd);
-
- HRESULT ( STDMETHODCALLTYPE *GetCodePageDescription )(
- IMultiLanguage2 * This,
- /* [in] */ UINT uiCodePage,
- /* [in] */ LCID lcid,
- /* [out][in] */ LPWSTR lpWideCharStr,
- /* [in] */ int cchWideChar);
-
- HRESULT ( STDMETHODCALLTYPE *IsCodePageInstallable )(
- IMultiLanguage2 * This,
- /* [in] */ UINT uiCodePage);
-
- HRESULT ( STDMETHODCALLTYPE *SetMimeDBSource )(
- IMultiLanguage2 * This,
- /* [in] */ MIMECONTF dwSource);
-
- HRESULT ( STDMETHODCALLTYPE *GetNumberOfScripts )(
- IMultiLanguage2 * This,
- /* [out] */ UINT *pnScripts);
-
- HRESULT ( STDMETHODCALLTYPE *EnumScripts )(
- IMultiLanguage2 * This,
- /* [in] */ DWORD dwFlags,
- /* [in] */ LANGID LangId,
- /* [out] */ IEnumScript **ppEnumScript);
-
- HRESULT ( STDMETHODCALLTYPE *ValidateCodePageEx )(
- IMultiLanguage2 * This,
- /* [in] */ UINT uiCodePage,
- /* [in] */ HWND hwnd,
- /* [in] */ DWORD dwfIODControl);
-
- END_INTERFACE
- } IMultiLanguage2Vtbl;
- interface IMultiLanguage2
- {
- CONST_VTBL struct IMultiLanguage2Vtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define IMultiLanguage2_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define IMultiLanguage2_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define IMultiLanguage2_Release(This)
- (This)->lpVtbl -> Release(This)
- #define IMultiLanguage2_GetNumberOfCodePageInfo(This,pcCodePage)
- (This)->lpVtbl -> GetNumberOfCodePageInfo(This,pcCodePage)
- #define IMultiLanguage2_GetCodePageInfo(This,uiCodePage,LangId,pCodePageInfo)
- (This)->lpVtbl -> GetCodePageInfo(This,uiCodePage,LangId,pCodePageInfo)
- #define IMultiLanguage2_GetFamilyCodePage(This,uiCodePage,puiFamilyCodePage)
- (This)->lpVtbl -> GetFamilyCodePage(This,uiCodePage,puiFamilyCodePage)
- #define IMultiLanguage2_EnumCodePages(This,grfFlags,LangId,ppEnumCodePage)
- (This)->lpVtbl -> EnumCodePages(This,grfFlags,LangId,ppEnumCodePage)
- #define IMultiLanguage2_GetCharsetInfo(This,Charset,pCharsetInfo)
- (This)->lpVtbl -> GetCharsetInfo(This,Charset,pCharsetInfo)
- #define IMultiLanguage2_IsConvertible(This,dwSrcEncoding,dwDstEncoding)
- (This)->lpVtbl -> IsConvertible(This,dwSrcEncoding,dwDstEncoding)
- #define IMultiLanguage2_ConvertString(This,pdwMode,dwSrcEncoding,dwDstEncoding,pSrcStr,pcSrcSize,pDstStr,pcDstSize)
- (This)->lpVtbl -> ConvertString(This,pdwMode,dwSrcEncoding,dwDstEncoding,pSrcStr,pcSrcSize,pDstStr,pcDstSize)
- #define IMultiLanguage2_ConvertStringToUnicode(This,pdwMode,dwEncoding,pSrcStr,pcSrcSize,pDstStr,pcDstSize)
- (This)->lpVtbl -> ConvertStringToUnicode(This,pdwMode,dwEncoding,pSrcStr,pcSrcSize,pDstStr,pcDstSize)
- #define IMultiLanguage2_ConvertStringFromUnicode(This,pdwMode,dwEncoding,pSrcStr,pcSrcSize,pDstStr,pcDstSize)
- (This)->lpVtbl -> ConvertStringFromUnicode(This,pdwMode,dwEncoding,pSrcStr,pcSrcSize,pDstStr,pcDstSize)
- #define IMultiLanguage2_ConvertStringReset(This)
- (This)->lpVtbl -> ConvertStringReset(This)
- #define IMultiLanguage2_GetRfc1766FromLcid(This,Locale,pbstrRfc1766)
- (This)->lpVtbl -> GetRfc1766FromLcid(This,Locale,pbstrRfc1766)
- #define IMultiLanguage2_GetLcidFromRfc1766(This,pLocale,bstrRfc1766)
- (This)->lpVtbl -> GetLcidFromRfc1766(This,pLocale,bstrRfc1766)
- #define IMultiLanguage2_EnumRfc1766(This,LangId,ppEnumRfc1766)
- (This)->lpVtbl -> EnumRfc1766(This,LangId,ppEnumRfc1766)
- #define IMultiLanguage2_GetRfc1766Info(This,Locale,LangId,pRfc1766Info)
- (This)->lpVtbl -> GetRfc1766Info(This,Locale,LangId,pRfc1766Info)
- #define IMultiLanguage2_CreateConvertCharset(This,uiSrcCodePage,uiDstCodePage,dwProperty,ppMLangConvertCharset)
- (This)->lpVtbl -> CreateConvertCharset(This,uiSrcCodePage,uiDstCodePage,dwProperty,ppMLangConvertCharset)
- #define IMultiLanguage2_ConvertStringInIStream(This,pdwMode,dwFlag,lpFallBack,dwSrcEncoding,dwDstEncoding,pstmIn,pstmOut)
- (This)->lpVtbl -> ConvertStringInIStream(This,pdwMode,dwFlag,lpFallBack,dwSrcEncoding,dwDstEncoding,pstmIn,pstmOut)
- #define IMultiLanguage2_ConvertStringToUnicodeEx(This,pdwMode,dwEncoding,pSrcStr,pcSrcSize,pDstStr,pcDstSize,dwFlag,lpFallBack)
- (This)->lpVtbl -> ConvertStringToUnicodeEx(This,pdwMode,dwEncoding,pSrcStr,pcSrcSize,pDstStr,pcDstSize,dwFlag,lpFallBack)
- #define IMultiLanguage2_ConvertStringFromUnicodeEx(This,pdwMode,dwEncoding,pSrcStr,pcSrcSize,pDstStr,pcDstSize,dwFlag,lpFallBack)
- (This)->lpVtbl -> ConvertStringFromUnicodeEx(This,pdwMode,dwEncoding,pSrcStr,pcSrcSize,pDstStr,pcDstSize,dwFlag,lpFallBack)
- #define IMultiLanguage2_DetectCodepageInIStream(This,dwFlag,dwPrefWinCodePage,pstmIn,lpEncoding,pnScores)
- (This)->lpVtbl -> DetectCodepageInIStream(This,dwFlag,dwPrefWinCodePage,pstmIn,lpEncoding,pnScores)
- #define IMultiLanguage2_DetectInputCodepage(This,dwFlag,dwPrefWinCodePage,pSrcStr,pcSrcSize,lpEncoding,pnScores)
- (This)->lpVtbl -> DetectInputCodepage(This,dwFlag,dwPrefWinCodePage,pSrcStr,pcSrcSize,lpEncoding,pnScores)
- #define IMultiLanguage2_ValidateCodePage(This,uiCodePage,hwnd)
- (This)->lpVtbl -> ValidateCodePage(This,uiCodePage,hwnd)
- #define IMultiLanguage2_GetCodePageDescription(This,uiCodePage,lcid,lpWideCharStr,cchWideChar)
- (This)->lpVtbl -> GetCodePageDescription(This,uiCodePage,lcid,lpWideCharStr,cchWideChar)
- #define IMultiLanguage2_IsCodePageInstallable(This,uiCodePage)
- (This)->lpVtbl -> IsCodePageInstallable(This,uiCodePage)
- #define IMultiLanguage2_SetMimeDBSource(This,dwSource)
- (This)->lpVtbl -> SetMimeDBSource(This,dwSource)
- #define IMultiLanguage2_GetNumberOfScripts(This,pnScripts)
- (This)->lpVtbl -> GetNumberOfScripts(This,pnScripts)
- #define IMultiLanguage2_EnumScripts(This,dwFlags,LangId,ppEnumScript)
- (This)->lpVtbl -> EnumScripts(This,dwFlags,LangId,ppEnumScript)
- #define IMultiLanguage2_ValidateCodePageEx(This,uiCodePage,hwnd,dwfIODControl)
- (This)->lpVtbl -> ValidateCodePageEx(This,uiCodePage,hwnd,dwfIODControl)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE IMultiLanguage2_GetNumberOfCodePageInfo_Proxy(
- IMultiLanguage2 * This,
- /* [out] */ UINT *pcCodePage);
- void __RPC_STUB IMultiLanguage2_GetNumberOfCodePageInfo_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage2_GetCodePageInfo_Proxy(
- IMultiLanguage2 * This,
- /* [in] */ UINT uiCodePage,
- /* [in] */ LANGID LangId,
- /* [out] */ PMIMECPINFO pCodePageInfo);
- void __RPC_STUB IMultiLanguage2_GetCodePageInfo_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage2_GetFamilyCodePage_Proxy(
- IMultiLanguage2 * This,
- /* [in] */ UINT uiCodePage,
- /* [out] */ UINT *puiFamilyCodePage);
- void __RPC_STUB IMultiLanguage2_GetFamilyCodePage_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage2_EnumCodePages_Proxy(
- IMultiLanguage2 * This,
- /* [in] */ DWORD grfFlags,
- /* [in] */ LANGID LangId,
- /* [out] */ IEnumCodePage **ppEnumCodePage);
- void __RPC_STUB IMultiLanguage2_EnumCodePages_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage2_GetCharsetInfo_Proxy(
- IMultiLanguage2 * This,
- /* [in] */ BSTR Charset,
- /* [out] */ PMIMECSETINFO pCharsetInfo);
- void __RPC_STUB IMultiLanguage2_GetCharsetInfo_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage2_IsConvertible_Proxy(
- IMultiLanguage2 * This,
- /* [in] */ DWORD dwSrcEncoding,
- /* [in] */ DWORD dwDstEncoding);
- void __RPC_STUB IMultiLanguage2_IsConvertible_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage2_ConvertString_Proxy(
- IMultiLanguage2 * This,
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwSrcEncoding,
- /* [in] */ DWORD dwDstEncoding,
- /* [in] */ BYTE *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ BYTE *pDstStr,
- /* [out][in] */ UINT *pcDstSize);
- void __RPC_STUB IMultiLanguage2_ConvertString_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage2_ConvertStringToUnicode_Proxy(
- IMultiLanguage2 * This,
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwEncoding,
- /* [in] */ CHAR *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ WCHAR *pDstStr,
- /* [out][in] */ UINT *pcDstSize);
- void __RPC_STUB IMultiLanguage2_ConvertStringToUnicode_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage2_ConvertStringFromUnicode_Proxy(
- IMultiLanguage2 * This,
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwEncoding,
- /* [in] */ WCHAR *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ CHAR *pDstStr,
- /* [out][in] */ UINT *pcDstSize);
- void __RPC_STUB IMultiLanguage2_ConvertStringFromUnicode_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage2_ConvertStringReset_Proxy(
- IMultiLanguage2 * This);
- void __RPC_STUB IMultiLanguage2_ConvertStringReset_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage2_GetRfc1766FromLcid_Proxy(
- IMultiLanguage2 * This,
- /* [in] */ LCID Locale,
- /* [out] */ BSTR *pbstrRfc1766);
- void __RPC_STUB IMultiLanguage2_GetRfc1766FromLcid_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage2_GetLcidFromRfc1766_Proxy(
- IMultiLanguage2 * This,
- /* [out] */ LCID *pLocale,
- /* [in] */ BSTR bstrRfc1766);
- void __RPC_STUB IMultiLanguage2_GetLcidFromRfc1766_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage2_EnumRfc1766_Proxy(
- IMultiLanguage2 * This,
- /* [in] */ LANGID LangId,
- /* [out] */ IEnumRfc1766 **ppEnumRfc1766);
- void __RPC_STUB IMultiLanguage2_EnumRfc1766_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage2_GetRfc1766Info_Proxy(
- IMultiLanguage2 * This,
- /* [in] */ LCID Locale,
- /* [in] */ LANGID LangId,
- /* [out] */ PRFC1766INFO pRfc1766Info);
- void __RPC_STUB IMultiLanguage2_GetRfc1766Info_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage2_CreateConvertCharset_Proxy(
- IMultiLanguage2 * This,
- /* [in] */ UINT uiSrcCodePage,
- /* [in] */ UINT uiDstCodePage,
- /* [in] */ DWORD dwProperty,
- /* [out] */ IMLangConvertCharset **ppMLangConvertCharset);
- void __RPC_STUB IMultiLanguage2_CreateConvertCharset_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage2_ConvertStringInIStream_Proxy(
- IMultiLanguage2 * This,
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwFlag,
- /* [in] */ WCHAR *lpFallBack,
- /* [in] */ DWORD dwSrcEncoding,
- /* [in] */ DWORD dwDstEncoding,
- /* [in] */ IStream *pstmIn,
- /* [in] */ IStream *pstmOut);
- void __RPC_STUB IMultiLanguage2_ConvertStringInIStream_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage2_ConvertStringToUnicodeEx_Proxy(
- IMultiLanguage2 * This,
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwEncoding,
- /* [in] */ CHAR *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ WCHAR *pDstStr,
- /* [out][in] */ UINT *pcDstSize,
- /* [in] */ DWORD dwFlag,
- /* [in] */ WCHAR *lpFallBack);
- void __RPC_STUB IMultiLanguage2_ConvertStringToUnicodeEx_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage2_ConvertStringFromUnicodeEx_Proxy(
- IMultiLanguage2 * This,
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwEncoding,
- /* [in] */ WCHAR *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ CHAR *pDstStr,
- /* [out][in] */ UINT *pcDstSize,
- /* [in] */ DWORD dwFlag,
- /* [in] */ WCHAR *lpFallBack);
- void __RPC_STUB IMultiLanguage2_ConvertStringFromUnicodeEx_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage2_DetectCodepageInIStream_Proxy(
- IMultiLanguage2 * This,
- /* [in] */ DWORD dwFlag,
- /* [in] */ DWORD dwPrefWinCodePage,
- /* [in] */ IStream *pstmIn,
- /* [out][in] */ DetectEncodingInfo *lpEncoding,
- /* [out][in] */ INT *pnScores);
- void __RPC_STUB IMultiLanguage2_DetectCodepageInIStream_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage2_DetectInputCodepage_Proxy(
- IMultiLanguage2 * This,
- /* [in] */ DWORD dwFlag,
- /* [in] */ DWORD dwPrefWinCodePage,
- /* [in] */ CHAR *pSrcStr,
- /* [out][in] */ INT *pcSrcSize,
- /* [out][in] */ DetectEncodingInfo *lpEncoding,
- /* [out][in] */ INT *pnScores);
- void __RPC_STUB IMultiLanguage2_DetectInputCodepage_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage2_ValidateCodePage_Proxy(
- IMultiLanguage2 * This,
- /* [in] */ UINT uiCodePage,
- /* [in] */ HWND hwnd);
- void __RPC_STUB IMultiLanguage2_ValidateCodePage_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage2_GetCodePageDescription_Proxy(
- IMultiLanguage2 * This,
- /* [in] */ UINT uiCodePage,
- /* [in] */ LCID lcid,
- /* [out][in] */ LPWSTR lpWideCharStr,
- /* [in] */ int cchWideChar);
- void __RPC_STUB IMultiLanguage2_GetCodePageDescription_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage2_IsCodePageInstallable_Proxy(
- IMultiLanguage2 * This,
- /* [in] */ UINT uiCodePage);
- void __RPC_STUB IMultiLanguage2_IsCodePageInstallable_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage2_SetMimeDBSource_Proxy(
- IMultiLanguage2 * This,
- /* [in] */ MIMECONTF dwSource);
- void __RPC_STUB IMultiLanguage2_SetMimeDBSource_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage2_GetNumberOfScripts_Proxy(
- IMultiLanguage2 * This,
- /* [out] */ UINT *pnScripts);
- void __RPC_STUB IMultiLanguage2_GetNumberOfScripts_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage2_EnumScripts_Proxy(
- IMultiLanguage2 * This,
- /* [in] */ DWORD dwFlags,
- /* [in] */ LANGID LangId,
- /* [out] */ IEnumScript **ppEnumScript);
- void __RPC_STUB IMultiLanguage2_EnumScripts_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage2_ValidateCodePageEx_Proxy(
- IMultiLanguage2 * This,
- /* [in] */ UINT uiCodePage,
- /* [in] */ HWND hwnd,
- /* [in] */ DWORD dwfIODControl);
- void __RPC_STUB IMultiLanguage2_ValidateCodePageEx_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __IMultiLanguage2_INTERFACE_DEFINED__ */
- #ifndef __IMLangCodePages_INTERFACE_DEFINED__
- #define __IMLangCodePages_INTERFACE_DEFINED__
- /* interface IMLangCodePages */
- /* [object][unique][helpstring][uuid] */
- typedef /* [unique] */ IMLangCodePages *PMLANGCODEPAGES;
- EXTERN_C const IID IID_IMLangCodePages;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("359F3443-BD4A-11D0-B188-00AA0038C969")
- IMLangCodePages : public IUnknown
- {
- public:
- virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetCharCodePages(
- /* [in] */ WCHAR chSrc,
- /* [out] */ DWORD *pdwCodePages) = 0;
-
- virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetStrCodePages(
- /* [size_is][in] */ const WCHAR *pszSrc,
- /* [in] */ long cchSrc,
- /* [in] */ DWORD dwPriorityCodePages,
- /* [out] */ DWORD *pdwCodePages,
- /* [out] */ long *pcchCodePages) = 0;
-
- virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CodePageToCodePages(
- /* [in] */ UINT uCodePage,
- /* [out] */ DWORD *pdwCodePages) = 0;
-
- virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CodePagesToCodePage(
- /* [in] */ DWORD dwCodePages,
- /* [in] */ UINT uDefaultCodePage,
- /* [out] */ UINT *puCodePage) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct IMLangCodePagesVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- IMLangCodePages * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- IMLangCodePages * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- IMLangCodePages * This);
-
- /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetCharCodePages )(
- IMLangCodePages * This,
- /* [in] */ WCHAR chSrc,
- /* [out] */ DWORD *pdwCodePages);
-
- /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetStrCodePages )(
- IMLangCodePages * This,
- /* [size_is][in] */ const WCHAR *pszSrc,
- /* [in] */ long cchSrc,
- /* [in] */ DWORD dwPriorityCodePages,
- /* [out] */ DWORD *pdwCodePages,
- /* [out] */ long *pcchCodePages);
-
- /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CodePageToCodePages )(
- IMLangCodePages * This,
- /* [in] */ UINT uCodePage,
- /* [out] */ DWORD *pdwCodePages);
-
- /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CodePagesToCodePage )(
- IMLangCodePages * This,
- /* [in] */ DWORD dwCodePages,
- /* [in] */ UINT uDefaultCodePage,
- /* [out] */ UINT *puCodePage);
-
- END_INTERFACE
- } IMLangCodePagesVtbl;
- interface IMLangCodePages
- {
- CONST_VTBL struct IMLangCodePagesVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define IMLangCodePages_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define IMLangCodePages_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define IMLangCodePages_Release(This)
- (This)->lpVtbl -> Release(This)
- #define IMLangCodePages_GetCharCodePages(This,chSrc,pdwCodePages)
- (This)->lpVtbl -> GetCharCodePages(This,chSrc,pdwCodePages)
- #define IMLangCodePages_GetStrCodePages(This,pszSrc,cchSrc,dwPriorityCodePages,pdwCodePages,pcchCodePages)
- (This)->lpVtbl -> GetStrCodePages(This,pszSrc,cchSrc,dwPriorityCodePages,pdwCodePages,pcchCodePages)
- #define IMLangCodePages_CodePageToCodePages(This,uCodePage,pdwCodePages)
- (This)->lpVtbl -> CodePageToCodePages(This,uCodePage,pdwCodePages)
- #define IMLangCodePages_CodePagesToCodePage(This,dwCodePages,uDefaultCodePage,puCodePage)
- (This)->lpVtbl -> CodePagesToCodePage(This,dwCodePages,uDefaultCodePage,puCodePage)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- /* [helpstring] */ HRESULT STDMETHODCALLTYPE IMLangCodePages_GetCharCodePages_Proxy(
- IMLangCodePages * This,
- /* [in] */ WCHAR chSrc,
- /* [out] */ DWORD *pdwCodePages);
- void __RPC_STUB IMLangCodePages_GetCharCodePages_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- /* [helpstring] */ HRESULT STDMETHODCALLTYPE IMLangCodePages_GetStrCodePages_Proxy(
- IMLangCodePages * This,
- /* [size_is][in] */ const WCHAR *pszSrc,
- /* [in] */ long cchSrc,
- /* [in] */ DWORD dwPriorityCodePages,
- /* [out] */ DWORD *pdwCodePages,
- /* [out] */ long *pcchCodePages);
- void __RPC_STUB IMLangCodePages_GetStrCodePages_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- /* [helpstring] */ HRESULT STDMETHODCALLTYPE IMLangCodePages_CodePageToCodePages_Proxy(
- IMLangCodePages * This,
- /* [in] */ UINT uCodePage,
- /* [out] */ DWORD *pdwCodePages);
- void __RPC_STUB IMLangCodePages_CodePageToCodePages_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- /* [helpstring] */ HRESULT STDMETHODCALLTYPE IMLangCodePages_CodePagesToCodePage_Proxy(
- IMLangCodePages * This,
- /* [in] */ DWORD dwCodePages,
- /* [in] */ UINT uDefaultCodePage,
- /* [out] */ UINT *puCodePage);
- void __RPC_STUB IMLangCodePages_CodePagesToCodePage_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __IMLangCodePages_INTERFACE_DEFINED__ */
- #ifndef __IMLangFontLink_INTERFACE_DEFINED__
- #define __IMLangFontLink_INTERFACE_DEFINED__
- /* interface IMLangFontLink */
- /* [object][unique][helpstring][uuid] */
- typedef /* [unique] */ IMLangFontLink *PMLANGFONTLINK;
- EXTERN_C const IID IID_IMLangFontLink;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("359F3441-BD4A-11D0-B188-00AA0038C969")
- IMLangFontLink : public IMLangCodePages
- {
- public:
- virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetFontCodePages(
- /* [in] */ HDC hDC,
- /* [in] */ HFONT hFont,
- /* [out] */ DWORD *pdwCodePages) = 0;
-
- virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE MapFont(
- /* [in] */ HDC hDC,
- /* [in] */ DWORD dwCodePages,
- /* [in] */ HFONT hSrcFont,
- /* [out] */ HFONT *phDestFont) = 0;
-
- virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ReleaseFont(
- /* [in] */ HFONT hFont) = 0;
-
- virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ResetFontMapping( void) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct IMLangFontLinkVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- IMLangFontLink * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- IMLangFontLink * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- IMLangFontLink * This);
-
- /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetCharCodePages )(
- IMLangFontLink * This,
- /* [in] */ WCHAR chSrc,
- /* [out] */ DWORD *pdwCodePages);
-
- /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetStrCodePages )(
- IMLangFontLink * This,
- /* [size_is][in] */ const WCHAR *pszSrc,
- /* [in] */ long cchSrc,
- /* [in] */ DWORD dwPriorityCodePages,
- /* [out] */ DWORD *pdwCodePages,
- /* [out] */ long *pcchCodePages);
-
- /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CodePageToCodePages )(
- IMLangFontLink * This,
- /* [in] */ UINT uCodePage,
- /* [out] */ DWORD *pdwCodePages);
-
- /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CodePagesToCodePage )(
- IMLangFontLink * This,
- /* [in] */ DWORD dwCodePages,
- /* [in] */ UINT uDefaultCodePage,
- /* [out] */ UINT *puCodePage);
-
- /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetFontCodePages )(
- IMLangFontLink * This,
- /* [in] */ HDC hDC,
- /* [in] */ HFONT hFont,
- /* [out] */ DWORD *pdwCodePages);
-
- /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *MapFont )(
- IMLangFontLink * This,
- /* [in] */ HDC hDC,
- /* [in] */ DWORD dwCodePages,
- /* [in] */ HFONT hSrcFont,
- /* [out] */ HFONT *phDestFont);
-
- /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ReleaseFont )(
- IMLangFontLink * This,
- /* [in] */ HFONT hFont);
-
- /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ResetFontMapping )(
- IMLangFontLink * This);
-
- END_INTERFACE
- } IMLangFontLinkVtbl;
- interface IMLangFontLink
- {
- CONST_VTBL struct IMLangFontLinkVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define IMLangFontLink_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define IMLangFontLink_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define IMLangFontLink_Release(This)
- (This)->lpVtbl -> Release(This)
- #define IMLangFontLink_GetCharCodePages(This,chSrc,pdwCodePages)
- (This)->lpVtbl -> GetCharCodePages(This,chSrc,pdwCodePages)
- #define IMLangFontLink_GetStrCodePages(This,pszSrc,cchSrc,dwPriorityCodePages,pdwCodePages,pcchCodePages)
- (This)->lpVtbl -> GetStrCodePages(This,pszSrc,cchSrc,dwPriorityCodePages,pdwCodePages,pcchCodePages)
- #define IMLangFontLink_CodePageToCodePages(This,uCodePage,pdwCodePages)
- (This)->lpVtbl -> CodePageToCodePages(This,uCodePage,pdwCodePages)
- #define IMLangFontLink_CodePagesToCodePage(This,dwCodePages,uDefaultCodePage,puCodePage)
- (This)->lpVtbl -> CodePagesToCodePage(This,dwCodePages,uDefaultCodePage,puCodePage)
- #define IMLangFontLink_GetFontCodePages(This,hDC,hFont,pdwCodePages)
- (This)->lpVtbl -> GetFontCodePages(This,hDC,hFont,pdwCodePages)
- #define IMLangFontLink_MapFont(This,hDC,dwCodePages,hSrcFont,phDestFont)
- (This)->lpVtbl -> MapFont(This,hDC,dwCodePages,hSrcFont,phDestFont)
- #define IMLangFontLink_ReleaseFont(This,hFont)
- (This)->lpVtbl -> ReleaseFont(This,hFont)
- #define IMLangFontLink_ResetFontMapping(This)
- (This)->lpVtbl -> ResetFontMapping(This)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- /* [helpstring] */ HRESULT STDMETHODCALLTYPE IMLangFontLink_GetFontCodePages_Proxy(
- IMLangFontLink * This,
- /* [in] */ HDC hDC,
- /* [in] */ HFONT hFont,
- /* [out] */ DWORD *pdwCodePages);
- void __RPC_STUB IMLangFontLink_GetFontCodePages_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- /* [helpstring] */ HRESULT STDMETHODCALLTYPE IMLangFontLink_MapFont_Proxy(
- IMLangFontLink * This,
- /* [in] */ HDC hDC,
- /* [in] */ DWORD dwCodePages,
- /* [in] */ HFONT hSrcFont,
- /* [out] */ HFONT *phDestFont);
- void __RPC_STUB IMLangFontLink_MapFont_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- /* [helpstring] */ HRESULT STDMETHODCALLTYPE IMLangFontLink_ReleaseFont_Proxy(
- IMLangFontLink * This,
- /* [in] */ HFONT hFont);
- void __RPC_STUB IMLangFontLink_ReleaseFont_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- /* [helpstring] */ HRESULT STDMETHODCALLTYPE IMLangFontLink_ResetFontMapping_Proxy(
- IMLangFontLink * This);
- void __RPC_STUB IMLangFontLink_ResetFontMapping_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __IMLangFontLink_INTERFACE_DEFINED__ */
- #ifndef __IMLangFontLink2_INTERFACE_DEFINED__
- #define __IMLangFontLink2_INTERFACE_DEFINED__
- /* interface IMLangFontLink2 */
- /* [object][unique][helpstring][uuid] */
- typedef struct tagUNICODERANGE
- {
- WCHAR wcFrom;
- WCHAR wcTo;
- } UNICODERANGE;
- typedef /* [unique] */ IMLangFontLink2 *PMLANGFONTLINK2;
- EXTERN_C const IID IID_IMLangFontLink2;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("DCCFC162-2B38-11d2-B7EC-00C04F8F5D9A")
- IMLangFontLink2 : public IMLangCodePages
- {
- public:
- virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetFontCodePages(
- /* [in] */ HDC hDC,
- /* [in] */ HFONT hFont,
- /* [out] */ DWORD *pdwCodePages) = 0;
-
- virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ReleaseFont(
- /* [in] */ HFONT hFont) = 0;
-
- virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ResetFontMapping( void) = 0;
-
- virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE MapFont(
- /* [in] */ HDC hDC,
- /* [in] */ DWORD dwCodePages,
- /* [in] */ WCHAR chSrc,
- /* [out] */ HFONT *pFont) = 0;
-
- virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetFontUnicodeRanges(
- /* [in] */ HDC hDC,
- /* [out][in] */ UINT *puiRanges,
- /* [out] */ UNICODERANGE *pUranges) = 0;
-
- virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetScriptFontInfo(
- /* [in] */ SCRIPT_ID sid,
- /* [in] */ DWORD dwFlags,
- /* [out][in] */ UINT *puiFonts,
- /* [out] */ SCRIPTFONTINFO *pScriptFont) = 0;
-
- virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CodePageToScriptID(
- /* [in] */ UINT uiCodePage,
- /* [out] */ SCRIPT_ID *pSid) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct IMLangFontLink2Vtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- IMLangFontLink2 * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- IMLangFontLink2 * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- IMLangFontLink2 * This);
-
- /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetCharCodePages )(
- IMLangFontLink2 * This,
- /* [in] */ WCHAR chSrc,
- /* [out] */ DWORD *pdwCodePages);
-
- /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetStrCodePages )(
- IMLangFontLink2 * This,
- /* [size_is][in] */ const WCHAR *pszSrc,
- /* [in] */ long cchSrc,
- /* [in] */ DWORD dwPriorityCodePages,
- /* [out] */ DWORD *pdwCodePages,
- /* [out] */ long *pcchCodePages);
-
- /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CodePageToCodePages )(
- IMLangFontLink2 * This,
- /* [in] */ UINT uCodePage,
- /* [out] */ DWORD *pdwCodePages);
-
- /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CodePagesToCodePage )(
- IMLangFontLink2 * This,
- /* [in] */ DWORD dwCodePages,
- /* [in] */ UINT uDefaultCodePage,
- /* [out] */ UINT *puCodePage);
-
- /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetFontCodePages )(
- IMLangFontLink2 * This,
- /* [in] */ HDC hDC,
- /* [in] */ HFONT hFont,
- /* [out] */ DWORD *pdwCodePages);
-
- /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ReleaseFont )(
- IMLangFontLink2 * This,
- /* [in] */ HFONT hFont);
-
- /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ResetFontMapping )(
- IMLangFontLink2 * This);
-
- /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *MapFont )(
- IMLangFontLink2 * This,
- /* [in] */ HDC hDC,
- /* [in] */ DWORD dwCodePages,
- /* [in] */ WCHAR chSrc,
- /* [out] */ HFONT *pFont);
-
- /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetFontUnicodeRanges )(
- IMLangFontLink2 * This,
- /* [in] */ HDC hDC,
- /* [out][in] */ UINT *puiRanges,
- /* [out] */ UNICODERANGE *pUranges);
-
- /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetScriptFontInfo )(
- IMLangFontLink2 * This,
- /* [in] */ SCRIPT_ID sid,
- /* [in] */ DWORD dwFlags,
- /* [out][in] */ UINT *puiFonts,
- /* [out] */ SCRIPTFONTINFO *pScriptFont);
-
- /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CodePageToScriptID )(
- IMLangFontLink2 * This,
- /* [in] */ UINT uiCodePage,
- /* [out] */ SCRIPT_ID *pSid);
-
- END_INTERFACE
- } IMLangFontLink2Vtbl;
- interface IMLangFontLink2
- {
- CONST_VTBL struct IMLangFontLink2Vtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define IMLangFontLink2_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define IMLangFontLink2_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define IMLangFontLink2_Release(This)
- (This)->lpVtbl -> Release(This)
- #define IMLangFontLink2_GetCharCodePages(This,chSrc,pdwCodePages)
- (This)->lpVtbl -> GetCharCodePages(This,chSrc,pdwCodePages)
- #define IMLangFontLink2_GetStrCodePages(This,pszSrc,cchSrc,dwPriorityCodePages,pdwCodePages,pcchCodePages)
- (This)->lpVtbl -> GetStrCodePages(This,pszSrc,cchSrc,dwPriorityCodePages,pdwCodePages,pcchCodePages)
- #define IMLangFontLink2_CodePageToCodePages(This,uCodePage,pdwCodePages)
- (This)->lpVtbl -> CodePageToCodePages(This,uCodePage,pdwCodePages)
- #define IMLangFontLink2_CodePagesToCodePage(This,dwCodePages,uDefaultCodePage,puCodePage)
- (This)->lpVtbl -> CodePagesToCodePage(This,dwCodePages,uDefaultCodePage,puCodePage)
- #define IMLangFontLink2_GetFontCodePages(This,hDC,hFont,pdwCodePages)
- (This)->lpVtbl -> GetFontCodePages(This,hDC,hFont,pdwCodePages)
- #define IMLangFontLink2_ReleaseFont(This,hFont)
- (This)->lpVtbl -> ReleaseFont(This,hFont)
- #define IMLangFontLink2_ResetFontMapping(This)
- (This)->lpVtbl -> ResetFontMapping(This)
- #define IMLangFontLink2_MapFont(This,hDC,dwCodePages,chSrc,pFont)
- (This)->lpVtbl -> MapFont(This,hDC,dwCodePages,chSrc,pFont)
- #define IMLangFontLink2_GetFontUnicodeRanges(This,hDC,puiRanges,pUranges)
- (This)->lpVtbl -> GetFontUnicodeRanges(This,hDC,puiRanges,pUranges)
- #define IMLangFontLink2_GetScriptFontInfo(This,sid,dwFlags,puiFonts,pScriptFont)
- (This)->lpVtbl -> GetScriptFontInfo(This,sid,dwFlags,puiFonts,pScriptFont)
- #define IMLangFontLink2_CodePageToScriptID(This,uiCodePage,pSid)
- (This)->lpVtbl -> CodePageToScriptID(This,uiCodePage,pSid)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- /* [helpstring] */ HRESULT STDMETHODCALLTYPE IMLangFontLink2_GetFontCodePages_Proxy(
- IMLangFontLink2 * This,
- /* [in] */ HDC hDC,
- /* [in] */ HFONT hFont,
- /* [out] */ DWORD *pdwCodePages);
- void __RPC_STUB IMLangFontLink2_GetFontCodePages_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- /* [helpstring] */ HRESULT STDMETHODCALLTYPE IMLangFontLink2_ReleaseFont_Proxy(
- IMLangFontLink2 * This,
- /* [in] */ HFONT hFont);
- void __RPC_STUB IMLangFontLink2_ReleaseFont_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- /* [helpstring] */ HRESULT STDMETHODCALLTYPE IMLangFontLink2_ResetFontMapping_Proxy(
- IMLangFontLink2 * This);
- void __RPC_STUB IMLangFontLink2_ResetFontMapping_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- /* [helpstring] */ HRESULT STDMETHODCALLTYPE IMLangFontLink2_MapFont_Proxy(
- IMLangFontLink2 * This,
- /* [in] */ HDC hDC,
- /* [in] */ DWORD dwCodePages,
- /* [in] */ WCHAR chSrc,
- /* [out] */ HFONT *pFont);
- void __RPC_STUB IMLangFontLink2_MapFont_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- /* [helpstring] */ HRESULT STDMETHODCALLTYPE IMLangFontLink2_GetFontUnicodeRanges_Proxy(
- IMLangFontLink2 * This,
- /* [in] */ HDC hDC,
- /* [out][in] */ UINT *puiRanges,
- /* [out] */ UNICODERANGE *pUranges);
- void __RPC_STUB IMLangFontLink2_GetFontUnicodeRanges_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- /* [helpstring] */ HRESULT STDMETHODCALLTYPE IMLangFontLink2_GetScriptFontInfo_Proxy(
- IMLangFontLink2 * This,
- /* [in] */ SCRIPT_ID sid,
- /* [in] */ DWORD dwFlags,
- /* [out][in] */ UINT *puiFonts,
- /* [out] */ SCRIPTFONTINFO *pScriptFont);
- void __RPC_STUB IMLangFontLink2_GetScriptFontInfo_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- /* [helpstring] */ HRESULT STDMETHODCALLTYPE IMLangFontLink2_CodePageToScriptID_Proxy(
- IMLangFontLink2 * This,
- /* [in] */ UINT uiCodePage,
- /* [out] */ SCRIPT_ID *pSid);
- void __RPC_STUB IMLangFontLink2_CodePageToScriptID_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __IMLangFontLink2_INTERFACE_DEFINED__ */
- #ifndef __IMultiLanguage3_INTERFACE_DEFINED__
- #define __IMultiLanguage3_INTERFACE_DEFINED__
- /* interface IMultiLanguage3 */
- /* [unique][uuid][object] */
- typedef /* [unique] */ IMultiLanguage3 *LPMULTILANGUAGE3;
- EXTERN_C const IID IID_IMultiLanguage3;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("4e5868ab-b157-4623-9acc-6a1d9caebe04")
- IMultiLanguage3 : public IMultiLanguage2
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE DetectOutboundCodePage(
- /* [in] */ DWORD dwFlags,
- /* [in] */ LPCWSTR lpWideCharStr,
- /* [in] */ UINT cchWideChar,
- /* [in] */ UINT *puiPreferredCodePages,
- /* [in] */ UINT nPreferredCodePages,
- /* [in] */ UINT *puiDetectedCodePages,
- /* [out][in] */ UINT *pnDetectedCodePages,
- /* [in] */ WCHAR *lpSpecialChar) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE DetectOutboundCodePageInIStream(
- /* [in] */ DWORD dwFlags,
- /* [in] */ IStream *pStrIn,
- /* [in] */ UINT *puiPreferredCodePages,
- /* [in] */ UINT nPreferredCodePages,
- /* [in] */ UINT *puiDetectedCodePages,
- /* [out][in] */ UINT *pnDetectedCodePages,
- /* [in] */ WCHAR *lpSpecialChar) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct IMultiLanguage3Vtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- IMultiLanguage3 * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- IMultiLanguage3 * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- IMultiLanguage3 * This);
-
- HRESULT ( STDMETHODCALLTYPE *GetNumberOfCodePageInfo )(
- IMultiLanguage3 * This,
- /* [out] */ UINT *pcCodePage);
-
- HRESULT ( STDMETHODCALLTYPE *GetCodePageInfo )(
- IMultiLanguage3 * This,
- /* [in] */ UINT uiCodePage,
- /* [in] */ LANGID LangId,
- /* [out] */ PMIMECPINFO pCodePageInfo);
-
- HRESULT ( STDMETHODCALLTYPE *GetFamilyCodePage )(
- IMultiLanguage3 * This,
- /* [in] */ UINT uiCodePage,
- /* [out] */ UINT *puiFamilyCodePage);
-
- HRESULT ( STDMETHODCALLTYPE *EnumCodePages )(
- IMultiLanguage3 * This,
- /* [in] */ DWORD grfFlags,
- /* [in] */ LANGID LangId,
- /* [out] */ IEnumCodePage **ppEnumCodePage);
-
- HRESULT ( STDMETHODCALLTYPE *GetCharsetInfo )(
- IMultiLanguage3 * This,
- /* [in] */ BSTR Charset,
- /* [out] */ PMIMECSETINFO pCharsetInfo);
-
- HRESULT ( STDMETHODCALLTYPE *IsConvertible )(
- IMultiLanguage3 * This,
- /* [in] */ DWORD dwSrcEncoding,
- /* [in] */ DWORD dwDstEncoding);
-
- HRESULT ( STDMETHODCALLTYPE *ConvertString )(
- IMultiLanguage3 * This,
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwSrcEncoding,
- /* [in] */ DWORD dwDstEncoding,
- /* [in] */ BYTE *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ BYTE *pDstStr,
- /* [out][in] */ UINT *pcDstSize);
-
- HRESULT ( STDMETHODCALLTYPE *ConvertStringToUnicode )(
- IMultiLanguage3 * This,
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwEncoding,
- /* [in] */ CHAR *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ WCHAR *pDstStr,
- /* [out][in] */ UINT *pcDstSize);
-
- HRESULT ( STDMETHODCALLTYPE *ConvertStringFromUnicode )(
- IMultiLanguage3 * This,
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwEncoding,
- /* [in] */ WCHAR *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ CHAR *pDstStr,
- /* [out][in] */ UINT *pcDstSize);
-
- HRESULT ( STDMETHODCALLTYPE *ConvertStringReset )(
- IMultiLanguage3 * This);
-
- HRESULT ( STDMETHODCALLTYPE *GetRfc1766FromLcid )(
- IMultiLanguage3 * This,
- /* [in] */ LCID Locale,
- /* [out] */ BSTR *pbstrRfc1766);
-
- HRESULT ( STDMETHODCALLTYPE *GetLcidFromRfc1766 )(
- IMultiLanguage3 * This,
- /* [out] */ LCID *pLocale,
- /* [in] */ BSTR bstrRfc1766);
-
- HRESULT ( STDMETHODCALLTYPE *EnumRfc1766 )(
- IMultiLanguage3 * This,
- /* [in] */ LANGID LangId,
- /* [out] */ IEnumRfc1766 **ppEnumRfc1766);
-
- HRESULT ( STDMETHODCALLTYPE *GetRfc1766Info )(
- IMultiLanguage3 * This,
- /* [in] */ LCID Locale,
- /* [in] */ LANGID LangId,
- /* [out] */ PRFC1766INFO pRfc1766Info);
-
- HRESULT ( STDMETHODCALLTYPE *CreateConvertCharset )(
- IMultiLanguage3 * This,
- /* [in] */ UINT uiSrcCodePage,
- /* [in] */ UINT uiDstCodePage,
- /* [in] */ DWORD dwProperty,
- /* [out] */ IMLangConvertCharset **ppMLangConvertCharset);
-
- HRESULT ( STDMETHODCALLTYPE *ConvertStringInIStream )(
- IMultiLanguage3 * This,
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwFlag,
- /* [in] */ WCHAR *lpFallBack,
- /* [in] */ DWORD dwSrcEncoding,
- /* [in] */ DWORD dwDstEncoding,
- /* [in] */ IStream *pstmIn,
- /* [in] */ IStream *pstmOut);
-
- HRESULT ( STDMETHODCALLTYPE *ConvertStringToUnicodeEx )(
- IMultiLanguage3 * This,
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwEncoding,
- /* [in] */ CHAR *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ WCHAR *pDstStr,
- /* [out][in] */ UINT *pcDstSize,
- /* [in] */ DWORD dwFlag,
- /* [in] */ WCHAR *lpFallBack);
-
- HRESULT ( STDMETHODCALLTYPE *ConvertStringFromUnicodeEx )(
- IMultiLanguage3 * This,
- /* [out][in] */ DWORD *pdwMode,
- /* [in] */ DWORD dwEncoding,
- /* [in] */ WCHAR *pSrcStr,
- /* [out][in] */ UINT *pcSrcSize,
- /* [in] */ CHAR *pDstStr,
- /* [out][in] */ UINT *pcDstSize,
- /* [in] */ DWORD dwFlag,
- /* [in] */ WCHAR *lpFallBack);
-
- HRESULT ( STDMETHODCALLTYPE *DetectCodepageInIStream )(
- IMultiLanguage3 * This,
- /* [in] */ DWORD dwFlag,
- /* [in] */ DWORD dwPrefWinCodePage,
- /* [in] */ IStream *pstmIn,
- /* [out][in] */ DetectEncodingInfo *lpEncoding,
- /* [out][in] */ INT *pnScores);
-
- HRESULT ( STDMETHODCALLTYPE *DetectInputCodepage )(
- IMultiLanguage3 * This,
- /* [in] */ DWORD dwFlag,
- /* [in] */ DWORD dwPrefWinCodePage,
- /* [in] */ CHAR *pSrcStr,
- /* [out][in] */ INT *pcSrcSize,
- /* [out][in] */ DetectEncodingInfo *lpEncoding,
- /* [out][in] */ INT *pnScores);
-
- HRESULT ( STDMETHODCALLTYPE *ValidateCodePage )(
- IMultiLanguage3 * This,
- /* [in] */ UINT uiCodePage,
- /* [in] */ HWND hwnd);
-
- HRESULT ( STDMETHODCALLTYPE *GetCodePageDescription )(
- IMultiLanguage3 * This,
- /* [in] */ UINT uiCodePage,
- /* [in] */ LCID lcid,
- /* [out][in] */ LPWSTR lpWideCharStr,
- /* [in] */ int cchWideChar);
-
- HRESULT ( STDMETHODCALLTYPE *IsCodePageInstallable )(
- IMultiLanguage3 * This,
- /* [in] */ UINT uiCodePage);
-
- HRESULT ( STDMETHODCALLTYPE *SetMimeDBSource )(
- IMultiLanguage3 * This,
- /* [in] */ MIMECONTF dwSource);
-
- HRESULT ( STDMETHODCALLTYPE *GetNumberOfScripts )(
- IMultiLanguage3 * This,
- /* [out] */ UINT *pnScripts);
-
- HRESULT ( STDMETHODCALLTYPE *EnumScripts )(
- IMultiLanguage3 * This,
- /* [in] */ DWORD dwFlags,
- /* [in] */ LANGID LangId,
- /* [out] */ IEnumScript **ppEnumScript);
-
- HRESULT ( STDMETHODCALLTYPE *ValidateCodePageEx )(
- IMultiLanguage3 * This,
- /* [in] */ UINT uiCodePage,
- /* [in] */ HWND hwnd,
- /* [in] */ DWORD dwfIODControl);
-
- HRESULT ( STDMETHODCALLTYPE *DetectOutboundCodePage )(
- IMultiLanguage3 * This,
- /* [in] */ DWORD dwFlags,
- /* [in] */ LPCWSTR lpWideCharStr,
- /* [in] */ UINT cchWideChar,
- /* [in] */ UINT *puiPreferredCodePages,
- /* [in] */ UINT nPreferredCodePages,
- /* [in] */ UINT *puiDetectedCodePages,
- /* [out][in] */ UINT *pnDetectedCodePages,
- /* [in] */ WCHAR *lpSpecialChar);
-
- HRESULT ( STDMETHODCALLTYPE *DetectOutboundCodePageInIStream )(
- IMultiLanguage3 * This,
- /* [in] */ DWORD dwFlags,
- /* [in] */ IStream *pStrIn,
- /* [in] */ UINT *puiPreferredCodePages,
- /* [in] */ UINT nPreferredCodePages,
- /* [in] */ UINT *puiDetectedCodePages,
- /* [out][in] */ UINT *pnDetectedCodePages,
- /* [in] */ WCHAR *lpSpecialChar);
-
- END_INTERFACE
- } IMultiLanguage3Vtbl;
- interface IMultiLanguage3
- {
- CONST_VTBL struct IMultiLanguage3Vtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define IMultiLanguage3_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define IMultiLanguage3_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define IMultiLanguage3_Release(This)
- (This)->lpVtbl -> Release(This)
- #define IMultiLanguage3_GetNumberOfCodePageInfo(This,pcCodePage)
- (This)->lpVtbl -> GetNumberOfCodePageInfo(This,pcCodePage)
- #define IMultiLanguage3_GetCodePageInfo(This,uiCodePage,LangId,pCodePageInfo)
- (This)->lpVtbl -> GetCodePageInfo(This,uiCodePage,LangId,pCodePageInfo)
- #define IMultiLanguage3_GetFamilyCodePage(This,uiCodePage,puiFamilyCodePage)
- (This)->lpVtbl -> GetFamilyCodePage(This,uiCodePage,puiFamilyCodePage)
- #define IMultiLanguage3_EnumCodePages(This,grfFlags,LangId,ppEnumCodePage)
- (This)->lpVtbl -> EnumCodePages(This,grfFlags,LangId,ppEnumCodePage)
- #define IMultiLanguage3_GetCharsetInfo(This,Charset,pCharsetInfo)
- (This)->lpVtbl -> GetCharsetInfo(This,Charset,pCharsetInfo)
- #define IMultiLanguage3_IsConvertible(This,dwSrcEncoding,dwDstEncoding)
- (This)->lpVtbl -> IsConvertible(This,dwSrcEncoding,dwDstEncoding)
- #define IMultiLanguage3_ConvertString(This,pdwMode,dwSrcEncoding,dwDstEncoding,pSrcStr,pcSrcSize,pDstStr,pcDstSize)
- (This)->lpVtbl -> ConvertString(This,pdwMode,dwSrcEncoding,dwDstEncoding,pSrcStr,pcSrcSize,pDstStr,pcDstSize)
- #define IMultiLanguage3_ConvertStringToUnicode(This,pdwMode,dwEncoding,pSrcStr,pcSrcSize,pDstStr,pcDstSize)
- (This)->lpVtbl -> ConvertStringToUnicode(This,pdwMode,dwEncoding,pSrcStr,pcSrcSize,pDstStr,pcDstSize)
- #define IMultiLanguage3_ConvertStringFromUnicode(This,pdwMode,dwEncoding,pSrcStr,pcSrcSize,pDstStr,pcDstSize)
- (This)->lpVtbl -> ConvertStringFromUnicode(This,pdwMode,dwEncoding,pSrcStr,pcSrcSize,pDstStr,pcDstSize)
- #define IMultiLanguage3_ConvertStringReset(This)
- (This)->lpVtbl -> ConvertStringReset(This)
- #define IMultiLanguage3_GetRfc1766FromLcid(This,Locale,pbstrRfc1766)
- (This)->lpVtbl -> GetRfc1766FromLcid(This,Locale,pbstrRfc1766)
- #define IMultiLanguage3_GetLcidFromRfc1766(This,pLocale,bstrRfc1766)
- (This)->lpVtbl -> GetLcidFromRfc1766(This,pLocale,bstrRfc1766)
- #define IMultiLanguage3_EnumRfc1766(This,LangId,ppEnumRfc1766)
- (This)->lpVtbl -> EnumRfc1766(This,LangId,ppEnumRfc1766)
- #define IMultiLanguage3_GetRfc1766Info(This,Locale,LangId,pRfc1766Info)
- (This)->lpVtbl -> GetRfc1766Info(This,Locale,LangId,pRfc1766Info)
- #define IMultiLanguage3_CreateConvertCharset(This,uiSrcCodePage,uiDstCodePage,dwProperty,ppMLangConvertCharset)
- (This)->lpVtbl -> CreateConvertCharset(This,uiSrcCodePage,uiDstCodePage,dwProperty,ppMLangConvertCharset)
- #define IMultiLanguage3_ConvertStringInIStream(This,pdwMode,dwFlag,lpFallBack,dwSrcEncoding,dwDstEncoding,pstmIn,pstmOut)
- (This)->lpVtbl -> ConvertStringInIStream(This,pdwMode,dwFlag,lpFallBack,dwSrcEncoding,dwDstEncoding,pstmIn,pstmOut)
- #define IMultiLanguage3_ConvertStringToUnicodeEx(This,pdwMode,dwEncoding,pSrcStr,pcSrcSize,pDstStr,pcDstSize,dwFlag,lpFallBack)
- (This)->lpVtbl -> ConvertStringToUnicodeEx(This,pdwMode,dwEncoding,pSrcStr,pcSrcSize,pDstStr,pcDstSize,dwFlag,lpFallBack)
- #define IMultiLanguage3_ConvertStringFromUnicodeEx(This,pdwMode,dwEncoding,pSrcStr,pcSrcSize,pDstStr,pcDstSize,dwFlag,lpFallBack)
- (This)->lpVtbl -> ConvertStringFromUnicodeEx(This,pdwMode,dwEncoding,pSrcStr,pcSrcSize,pDstStr,pcDstSize,dwFlag,lpFallBack)
- #define IMultiLanguage3_DetectCodepageInIStream(This,dwFlag,dwPrefWinCodePage,pstmIn,lpEncoding,pnScores)
- (This)->lpVtbl -> DetectCodepageInIStream(This,dwFlag,dwPrefWinCodePage,pstmIn,lpEncoding,pnScores)
- #define IMultiLanguage3_DetectInputCodepage(This,dwFlag,dwPrefWinCodePage,pSrcStr,pcSrcSize,lpEncoding,pnScores)
- (This)->lpVtbl -> DetectInputCodepage(This,dwFlag,dwPrefWinCodePage,pSrcStr,pcSrcSize,lpEncoding,pnScores)
- #define IMultiLanguage3_ValidateCodePage(This,uiCodePage,hwnd)
- (This)->lpVtbl -> ValidateCodePage(This,uiCodePage,hwnd)
- #define IMultiLanguage3_GetCodePageDescription(This,uiCodePage,lcid,lpWideCharStr,cchWideChar)
- (This)->lpVtbl -> GetCodePageDescription(This,uiCodePage,lcid,lpWideCharStr,cchWideChar)
- #define IMultiLanguage3_IsCodePageInstallable(This,uiCodePage)
- (This)->lpVtbl -> IsCodePageInstallable(This,uiCodePage)
- #define IMultiLanguage3_SetMimeDBSource(This,dwSource)
- (This)->lpVtbl -> SetMimeDBSource(This,dwSource)
- #define IMultiLanguage3_GetNumberOfScripts(This,pnScripts)
- (This)->lpVtbl -> GetNumberOfScripts(This,pnScripts)
- #define IMultiLanguage3_EnumScripts(This,dwFlags,LangId,ppEnumScript)
- (This)->lpVtbl -> EnumScripts(This,dwFlags,LangId,ppEnumScript)
- #define IMultiLanguage3_ValidateCodePageEx(This,uiCodePage,hwnd,dwfIODControl)
- (This)->lpVtbl -> ValidateCodePageEx(This,uiCodePage,hwnd,dwfIODControl)
- #define IMultiLanguage3_DetectOutboundCodePage(This,dwFlags,lpWideCharStr,cchWideChar,puiPreferredCodePages,nPreferredCodePages,puiDetectedCodePages,pnDetectedCodePages,lpSpecialChar)
- (This)->lpVtbl -> DetectOutboundCodePage(This,dwFlags,lpWideCharStr,cchWideChar,puiPreferredCodePages,nPreferredCodePages,puiDetectedCodePages,pnDetectedCodePages,lpSpecialChar)
- #define IMultiLanguage3_DetectOutboundCodePageInIStream(This,dwFlags,pStrIn,puiPreferredCodePages,nPreferredCodePages,puiDetectedCodePages,pnDetectedCodePages,lpSpecialChar)
- (This)->lpVtbl -> DetectOutboundCodePageInIStream(This,dwFlags,pStrIn,puiPreferredCodePages,nPreferredCodePages,puiDetectedCodePages,pnDetectedCodePages,lpSpecialChar)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE IMultiLanguage3_DetectOutboundCodePage_Proxy(
- IMultiLanguage3 * This,
- /* [in] */ DWORD dwFlags,
- /* [in] */ LPCWSTR lpWideCharStr,
- /* [in] */ UINT cchWideChar,
- /* [in] */ UINT *puiPreferredCodePages,
- /* [in] */ UINT nPreferredCodePages,
- /* [in] */ UINT *puiDetectedCodePages,
- /* [out][in] */ UINT *pnDetectedCodePages,
- /* [in] */ WCHAR *lpSpecialChar);
- void __RPC_STUB IMultiLanguage3_DetectOutboundCodePage_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IMultiLanguage3_DetectOutboundCodePageInIStream_Proxy(
- IMultiLanguage3 * This,
- /* [in] */ DWORD dwFlags,
- /* [in] */ IStream *pStrIn,
- /* [in] */ UINT *puiPreferredCodePages,
- /* [in] */ UINT nPreferredCodePages,
- /* [in] */ UINT *puiDetectedCodePages,
- /* [out][in] */ UINT *pnDetectedCodePages,
- /* [in] */ WCHAR *lpSpecialChar);
- void __RPC_STUB IMultiLanguage3_DetectOutboundCodePageInIStream_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __IMultiLanguage3_INTERFACE_DEFINED__ */
- EXTERN_C const CLSID CLSID_CMultiLanguage;
- #ifdef __cplusplus
- class DECLSPEC_UUID("275c23e2-3747-11d0-9fea-00aa003f8646")
- CMultiLanguage;
- #endif
- #endif /* __MultiLanguage_LIBRARY_DEFINED__ */
- /* interface __MIDL_itf_mlang_0126 */
- /* [local] */
- #ifndef _MLANG_H_API_DEF_
- #define _MLANG_H_API_DEF_
-
- // APIs prototypes
- STDAPI LcidToRfc1766A(LCID Locale, LPSTR pszRfc1766, int iMaxLength);
- STDAPI LcidToRfc1766W(LCID Locale, LPWSTR pszRfc1766, int nChar);
- #ifdef UNICODE
- #define LcidToRfc1766 LcidToRfc1766W
- #else
- #define LcidToRfc1766 LcidToRfc1766A
- #endif
- STDAPI Rfc1766ToLcidA(LCID *pLocale, LPCSTR pszRfc1766);
- STDAPI Rfc1766ToLcidW(LCID *pLocale, LPCWSTR pszRfc1766);
- #ifdef UNICODE
- #define Rfc1766ToLcid Rfc1766ToLcidW
- #else
- #define Rfc1766ToLcid Rfc1766ToLcidA
- #endif
-
- STDAPI IsConvertINetStringAvailable(DWORD dwSrcEncoding, DWORD dwDstEncoding);
- STDAPI ConvertINetString(LPDWORD lpdwMode, DWORD dwSrcEncoding, DWORD dwDstEncoding, LPCSTR lpSrcStr, LPINT lpnSrcSize, LPSTR lpDstStr, LPINT lpnDstSize);
- STDAPI ConvertINetMultiByteToUnicode(LPDWORD lpdwMode, DWORD dwEncoding, LPCSTR lpSrcStr, LPINT lpnMultiCharCount, LPWSTR lpDstStr, LPINT lpnWideCharCount);
- STDAPI ConvertINetUnicodeToMultiByte(LPDWORD lpdwMode, DWORD dwEncoding, LPCWSTR lpSrcStr, LPINT lpnWideCharCount, LPSTR lpDstStr, LPINT lpnMultiCharCount);
-
- #endif // _MLANG_H_API_DEF_
- extern RPC_IF_HANDLE __MIDL_itf_mlang_0126_v0_0_c_ifspec;
- extern RPC_IF_HANDLE __MIDL_itf_mlang_0126_v0_0_s_ifspec;
- /* Additional Prototypes for ALL interfaces */
- /* end of Additional Prototypes */
- #ifdef __cplusplus
- }
- #endif
- #endif