Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

435 lines
13 KiB

  1. #pragma warning( disable: 4049 ) /* more than 64k source lines */
  2. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  3. /* File created by MIDL compiler version 6.00.0357 */
  4. /* Compiler settings for imlang.idl:
  5. Oicf, W1, Zp8, env=Win32 (32b run)
  6. protocol : dce , ms_ext, c_ext, robust
  7. error checks: allocation ref bounds_check enum stub_data
  8. VC __declspec() decoration level:
  9. __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  10. DECLSPEC_UUID(), MIDL_INTERFACE()
  11. */
  12. //@@MIDL_FILE_HEADING( )
  13. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  14. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  15. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  16. #endif
  17. #include "rpc.h"
  18. #include "rpcndr.h"
  19. #ifndef __RPCNDR_H_VERSION__
  20. #error this stub requires an updated version of <rpcndr.h>
  21. #endif // __RPCNDR_H_VERSION__
  22. #ifndef COM_NO_WINDOWS_H
  23. #include "windows.h"
  24. #include "ole2.h"
  25. #endif /*COM_NO_WINDOWS_H*/
  26. #ifndef __imlang_h__
  27. #define __imlang_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */
  32. #ifndef __IIMLanguage_FWD_DEFINED__
  33. #define __IIMLanguage_FWD_DEFINED__
  34. typedef interface IIMLanguage IIMLanguage;
  35. #endif /* __IIMLanguage_FWD_DEFINED__ */
  36. #ifndef __IMLanguage_FWD_DEFINED__
  37. #define __IMLanguage_FWD_DEFINED__
  38. #ifdef __cplusplus
  39. typedef class IMLanguage IMLanguage;
  40. #else
  41. typedef struct IMLanguage IMLanguage;
  42. #endif /* __cplusplus */
  43. #endif /* __IMLanguage_FWD_DEFINED__ */
  44. #ifndef __IIMLanguageComponent_FWD_DEFINED__
  45. #define __IIMLanguageComponent_FWD_DEFINED__
  46. typedef interface IIMLanguageComponent IIMLanguageComponent;
  47. #endif /* __IIMLanguageComponent_FWD_DEFINED__ */
  48. /* header files for imported files */
  49. #include "unknwn.h"
  50. #ifdef __cplusplus
  51. extern "C"{
  52. #endif
  53. void * __RPC_USER MIDL_user_allocate(size_t);
  54. void __RPC_USER MIDL_user_free( void * );
  55. /* interface __MIDL_itf_imlang_0000 */
  56. /* [local] */
  57. //=--------------------------------------------------------------------------=
  58. // imlang.h
  59. // IIMLanguage interface.
  60. //=--------------------------------------------------------------------------=
  61. // (C) Copyright 1999-2001 Microsoft Corporation. All Rights Reserved.
  62. //
  63. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  64. // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  65. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  66. // PARTICULAR PURPOSE.
  67. //=--------------------------------------------------------------------------=
  68. //Tuning parameter for Language model
  69. typedef struct IMLANGUAGE_LM_PARAM
  70. {
  71. GUID guid;
  72. DWORD dwSize;
  73. /* [size_is] */ BYTE *pbData;
  74. } IMLANGUAGE_LM_PARAM;
  75. typedef struct IMLANGUAGE_LM_PARAM *LPIMLANGUAGE_LM_PARAM;
  76. //Language model item
  77. typedef struct tagIMLANGUAGE_LM
  78. {
  79. GUID guid;
  80. IMLANGUAGE_LM_PARAM *pParam;
  81. } IMLANGUAGE_LM;
  82. typedef struct tagIMLANGUAGE_LM *LPIMLANGUAGE_LM;
  83. //IMLanguageComponent Application GUID
  84. DEFINE_GUID( CLSID_CHS_IMELM_BBO, 0xd8b9f621, 0x3c24, 0x11d4, 0x97, 0xc2, 0x00, 0x80, 0xc8, 0x82, 0x68, 0x7e );
  85. DEFINE_GUID( CLSID_CHT_IMELM_BBO, 0xd8b9f622, 0x3c24, 0x11d4, 0x97, 0xc2, 0x00, 0x80, 0xc8, 0x82, 0x68, 0x7e );
  86. DEFINE_GUID( CLSID_KOR_IMELM_BBO, 0x254d975e, 0xacc9, 0x478b, 0xa0, 0x7b, 0x38, 0x5d, 0xaf, 0xaa, 0x4f, 0xb2 );
  87. DEFINE_GUID( CLSID_JPN_IMELM_BBO, 0x4e3ac8a1, 0xbcb4, 0x4d2d, 0x83, 0x9b, 0xb1, 0x56, 0x0a, 0x11, 0x0d, 0x67 );
  88. DEFINE_GUID( CLSID_MakeLatticeForChar, 0x258941B5, 0x9E27, 0x11d3, 0xB6, 0xD0, 0x00, 0xC0, 0x4F, 0x7A, 0x02, 0xAD );
  89. DEFINE_GUID( CLSID_AttachNGram, 0x258941B6, 0x9E27, 0x11d3, 0xB6, 0xD0, 0x00, 0xC0, 0x4F, 0x7A, 0x02, 0xAD );
  90. DEFINE_GUID( CLSID_SearchBestPath, 0x258941B7, 0x9E27, 0x11d3, 0xB6, 0xD0, 0x00, 0xC0, 0x4F, 0x7A, 0x02, 0xAD );
  91. //IMLanguageComponent OS GUID
  92. DEFINE_GUID( CLSID_CHS_IMELM_BBO_OS, 0x3acd1d47, 0xe067, 0x429c, 0xac, 0x6d, 0x47, 0xc6, 0x7e, 0x6c, 0x8d, 0xac);
  93. DEFINE_GUID( CLSID_CHT_IMELM_BBO_OS, 0x84999b88, 0x25d2, 0x4648, 0xbb, 0xa7, 0x1e, 0x35, 0xa7, 0xc7, 0x4e, 0x16);
  94. DEFINE_GUID( CLSID_KOR_IMELM_BBO_OS, 0xe09ace0d, 0x6eea, 0x4be9, 0x8d, 0xb8, 0xf8, 0x75, 0xc2, 0xd0, 0xde, 0xca);
  95. DEFINE_GUID( CLSID_JPN_IMELM_BBO_OS, 0x9c7e214c, 0x5709, 0x4457, 0xac, 0x4c, 0x19, 0x30, 0xb3, 0x68, 0x6c, 0x81);
  96. DEFINE_GUID( CLSID_MakeLatticeForChar_OS, 0x61991eb2, 0xca2e, 0x4c53, 0x83, 0x5f, 0xd7, 0x1d, 0x34, 0x35, 0x4b, 0x8f);
  97. DEFINE_GUID( CLSID_AttachNGram_OS, 0xfa786731, 0xb396, 0x4124, 0xa6, 0x25, 0x6c, 0xc9, 0x47, 0xcc, 0x27, 0x38);
  98. DEFINE_GUID( CLSID_SearchBestPath_OS, 0x3f9cc862, 0x58a3, 0x4a9a, 0xa4, 0x1b, 0x1d, 0xb8, 0xca, 0xf7, 0x5b, 0x20);
  99. //Data area for lattice element
  100. typedef struct tagIMLANGUAGE_INFO
  101. {
  102. GUID guid;
  103. DWORD dwSize;
  104. /* [size_is] */ BYTE *pbData;
  105. } IMLANGUAGE_INFO;
  106. typedef struct tagIMLANGUAGE_INFO *LPIMLANGUAGE_INFO;
  107. //Lattice element
  108. typedef struct tagIMLANGUAGE_ELEMENT
  109. {
  110. DWORD dwFrameStart;
  111. DWORD dwFrameLen;
  112. DWORD dwTotalInfo;
  113. /* [size_is] */ IMLANGUAGE_INFO *pInfo;
  114. } IMLANGUAGE_ELEMENT;
  115. typedef struct tagIMLANGUAGE_ELEMENT *LPIMLANGUAGE_ELEMENT;
  116. //Data type for IMLANGUAGE_INFO
  117. DEFINE_GUID( GUID_IMLANGUAGE_INFO_NEUTRAL1, 0x77d576f4, 0x7713, 0x11d3, 0xb6, 0xb9, 0x0, 0xc0, 0x4f, 0x7a, 0x2, 0xad );
  118. typedef struct tag_IMLANGUAGE_INFO_NEUTRAL1
  119. {
  120. DWORD dwUnigram;
  121. struct
  122. {
  123. BOOL fHypothesis : 1;
  124. DWORD reserved : 31;
  125. } ;
  126. WCHAR wsz[ 1 ];
  127. } IMLANGUAGE_INFO_NEUTRAL1;
  128. //
  129. //
  130. //
  131. //Interface IIMLanguage
  132. //
  133. //
  134. DEFINE_GUID( IID_IMLanguage, 0x258941B1, 0x9E27, 0x11d3, 0xB6, 0xD0, 0x00, 0xC0, 0x4F, 0x7A, 0x02, 0xAD );
  135. DEFINE_GUID( LIBID_IMLanguage, 0x258941B2, 0x9E27, 0x11d3, 0xB6, 0xD0, 0x00, 0xC0, 0x4F, 0x7A, 0x02, 0xAD );
  136. DEFINE_GUID( CLSID_IMLanguage, 0x258941B3, 0x9E27, 0x11d3, 0xB6, 0xD0, 0x00, 0xC0, 0x4F, 0x7A, 0x02, 0xAD );
  137. DEFINE_GUID( CLSID_IMLanguage_OS, 0xefa75289, 0x66e, 0x4a8f, 0xa9, 0x78, 0x74, 0x9b, 0x1d, 0xd2, 0x38, 0x58);
  138. extern RPC_IF_HANDLE __MIDL_itf_imlang_0000_v0_0_c_ifspec;
  139. extern RPC_IF_HANDLE __MIDL_itf_imlang_0000_v0_0_s_ifspec;
  140. #ifndef __IIMLanguage_INTERFACE_DEFINED__
  141. #define __IIMLanguage_INTERFACE_DEFINED__
  142. /* interface IIMLanguage */
  143. /* [unique][helpstring][uuid][object] */
  144. EXTERN_C const IID IID_IIMLanguage;
  145. #if defined(__cplusplus) && !defined(CINTERFACE)
  146. MIDL_INTERFACE("258941B1-9E27-11d3-B6D0-00C04F7A02AD")
  147. IIMLanguage : public IUnknown
  148. {
  149. public:
  150. virtual HRESULT STDMETHODCALLTYPE GetLatticeMorphResult(
  151. /* [in] */ DWORD dwNumLMITEM,
  152. /* [size_is][in] */ IMLANGUAGE_LM aIMLANGUAGE_LM[ ],
  153. /* [in] */ DWORD dwTotalElemIn,
  154. /* [size_is][in] */ IMLANGUAGE_ELEMENT aElemIn[ ],
  155. /* [out] */ DWORD *pdwTotalElemOut,
  156. /* [size_is][size_is][out] */ IMLANGUAGE_ELEMENT **ppElemOut) = 0;
  157. };
  158. #else /* C style interface */
  159. typedef struct IIMLanguageVtbl
  160. {
  161. BEGIN_INTERFACE
  162. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  163. IIMLanguage * This,
  164. /* [in] */ REFIID riid,
  165. /* [iid_is][out] */ void **ppvObject);
  166. ULONG ( STDMETHODCALLTYPE *AddRef )(
  167. IIMLanguage * This);
  168. ULONG ( STDMETHODCALLTYPE *Release )(
  169. IIMLanguage * This);
  170. HRESULT ( STDMETHODCALLTYPE *GetLatticeMorphResult )(
  171. IIMLanguage * This,
  172. /* [in] */ DWORD dwNumLMITEM,
  173. /* [size_is][in] */ IMLANGUAGE_LM aIMLANGUAGE_LM[ ],
  174. /* [in] */ DWORD dwTotalElemIn,
  175. /* [size_is][in] */ IMLANGUAGE_ELEMENT aElemIn[ ],
  176. /* [out] */ DWORD *pdwTotalElemOut,
  177. /* [size_is][size_is][out] */ IMLANGUAGE_ELEMENT **ppElemOut);
  178. END_INTERFACE
  179. } IIMLanguageVtbl;
  180. interface IIMLanguage
  181. {
  182. CONST_VTBL struct IIMLanguageVtbl *lpVtbl;
  183. };
  184. #ifdef COBJMACROS
  185. #define IIMLanguage_QueryInterface(This,riid,ppvObject) \
  186. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  187. #define IIMLanguage_AddRef(This) \
  188. (This)->lpVtbl -> AddRef(This)
  189. #define IIMLanguage_Release(This) \
  190. (This)->lpVtbl -> Release(This)
  191. #define IIMLanguage_GetLatticeMorphResult(This,dwNumLMITEM,aIMLANGUAGE_LM,dwTotalElemIn,aElemIn,pdwTotalElemOut,ppElemOut) \
  192. (This)->lpVtbl -> GetLatticeMorphResult(This,dwNumLMITEM,aIMLANGUAGE_LM,dwTotalElemIn,aElemIn,pdwTotalElemOut,ppElemOut)
  193. #endif /* COBJMACROS */
  194. #endif /* C style interface */
  195. HRESULT STDMETHODCALLTYPE IIMLanguage_GetLatticeMorphResult_Proxy(
  196. IIMLanguage * This,
  197. /* [in] */ DWORD dwNumLMITEM,
  198. /* [size_is][in] */ IMLANGUAGE_LM aIMLANGUAGE_LM[ ],
  199. /* [in] */ DWORD dwTotalElemIn,
  200. /* [size_is][in] */ IMLANGUAGE_ELEMENT aElemIn[ ],
  201. /* [out] */ DWORD *pdwTotalElemOut,
  202. /* [size_is][size_is][out] */ IMLANGUAGE_ELEMENT **ppElemOut);
  203. void __RPC_STUB IIMLanguage_GetLatticeMorphResult_Stub(
  204. IRpcStubBuffer *This,
  205. IRpcChannelBuffer *_pRpcChannelBuffer,
  206. PRPC_MESSAGE _pRpcMessage,
  207. DWORD *_pdwStubPhase);
  208. #endif /* __IIMLanguage_INTERFACE_DEFINED__ */
  209. #ifndef __IMLanguage_LIBRARY_DEFINED__
  210. #define __IMLanguage_LIBRARY_DEFINED__
  211. /* library IMLanguage */
  212. /* [helpstring][version][uuid] */
  213. EXTERN_C const IID LIBID_IMLanguage;
  214. EXTERN_C const CLSID CLSID_IMLanguage;
  215. #ifdef __cplusplus
  216. class DECLSPEC_UUID("258941B3-9E27-11d3-B6D0-00C04F7A02AD")
  217. IMLanguage;
  218. #endif
  219. #endif /* __IMLanguage_LIBRARY_DEFINED__ */
  220. /* interface __MIDL_itf_imlang_0009 */
  221. /* [local] */
  222. //
  223. //
  224. //
  225. //Interface of IIMLanguageComponent
  226. //(only for those who make language components)
  227. //
  228. DEFINE_GUID( IID_IMLanguageComponent, 0x5F4FCFB0, 0xF961, 0x11d2, 0xB6, 0x13, 0x00, 0xC0, 0x4F, 0x7A, 0x02, 0xAD );
  229. extern RPC_IF_HANDLE __MIDL_itf_imlang_0009_v0_0_c_ifspec;
  230. extern RPC_IF_HANDLE __MIDL_itf_imlang_0009_v0_0_s_ifspec;
  231. #ifndef __IIMLanguageComponent_INTERFACE_DEFINED__
  232. #define __IIMLanguageComponent_INTERFACE_DEFINED__
  233. /* interface IIMLanguageComponent */
  234. /* [unique][helpstring][uuid][object] */
  235. EXTERN_C const IID IID_IIMLanguageComponent;
  236. #if defined(__cplusplus) && !defined(CINTERFACE)
  237. MIDL_INTERFACE("5F4FCFB0-F961-11d2-B613-00C04F7A02AD")
  238. IIMLanguageComponent : public IUnknown
  239. {
  240. public:
  241. virtual HRESULT STDMETHODCALLTYPE GetLatticeMorphResult(
  242. /* [in] */ IMLANGUAGE_LM_PARAM *pTuneParam,
  243. /* [in] */ DWORD dwTotalElemIn,
  244. /* [size_is][in] */ IMLANGUAGE_ELEMENT aElemIn[ ],
  245. /* [out] */ DWORD *pdwTotalElemOut,
  246. /* [size_is][size_is][out] */ IMLANGUAGE_ELEMENT **ppElemOut) = 0;
  247. };
  248. #else /* C style interface */
  249. typedef struct IIMLanguageComponentVtbl
  250. {
  251. BEGIN_INTERFACE
  252. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  253. IIMLanguageComponent * This,
  254. /* [in] */ REFIID riid,
  255. /* [iid_is][out] */ void **ppvObject);
  256. ULONG ( STDMETHODCALLTYPE *AddRef )(
  257. IIMLanguageComponent * This);
  258. ULONG ( STDMETHODCALLTYPE *Release )(
  259. IIMLanguageComponent * This);
  260. HRESULT ( STDMETHODCALLTYPE *GetLatticeMorphResult )(
  261. IIMLanguageComponent * This,
  262. /* [in] */ IMLANGUAGE_LM_PARAM *pTuneParam,
  263. /* [in] */ DWORD dwTotalElemIn,
  264. /* [size_is][in] */ IMLANGUAGE_ELEMENT aElemIn[ ],
  265. /* [out] */ DWORD *pdwTotalElemOut,
  266. /* [size_is][size_is][out] */ IMLANGUAGE_ELEMENT **ppElemOut);
  267. END_INTERFACE
  268. } IIMLanguageComponentVtbl;
  269. interface IIMLanguageComponent
  270. {
  271. CONST_VTBL struct IIMLanguageComponentVtbl *lpVtbl;
  272. };
  273. #ifdef COBJMACROS
  274. #define IIMLanguageComponent_QueryInterface(This,riid,ppvObject) \
  275. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  276. #define IIMLanguageComponent_AddRef(This) \
  277. (This)->lpVtbl -> AddRef(This)
  278. #define IIMLanguageComponent_Release(This) \
  279. (This)->lpVtbl -> Release(This)
  280. #define IIMLanguageComponent_GetLatticeMorphResult(This,pTuneParam,dwTotalElemIn,aElemIn,pdwTotalElemOut,ppElemOut) \
  281. (This)->lpVtbl -> GetLatticeMorphResult(This,pTuneParam,dwTotalElemIn,aElemIn,pdwTotalElemOut,ppElemOut)
  282. #endif /* COBJMACROS */
  283. #endif /* C style interface */
  284. HRESULT STDMETHODCALLTYPE IIMLanguageComponent_GetLatticeMorphResult_Proxy(
  285. IIMLanguageComponent * This,
  286. /* [in] */ IMLANGUAGE_LM_PARAM *pTuneParam,
  287. /* [in] */ DWORD dwTotalElemIn,
  288. /* [size_is][in] */ IMLANGUAGE_ELEMENT aElemIn[ ],
  289. /* [out] */ DWORD *pdwTotalElemOut,
  290. /* [size_is][size_is][out] */ IMLANGUAGE_ELEMENT **ppElemOut);
  291. void __RPC_STUB IIMLanguageComponent_GetLatticeMorphResult_Stub(
  292. IRpcStubBuffer *This,
  293. IRpcChannelBuffer *_pRpcChannelBuffer,
  294. PRPC_MESSAGE _pRpcMessage,
  295. DWORD *_pdwStubPhase);
  296. #endif /* __IIMLanguageComponent_INTERFACE_DEFINED__ */
  297. /* Additional Prototypes for ALL interfaces */
  298. /* end of Additional Prototypes */
  299. #ifdef __cplusplus
  300. }
  301. #endif
  302. #endif