Leaked source code of windows server 2003
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.

3734 lines
114 KiB

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2. /* File created by MIDL compiler version 6.00.0361 */
  3. /* Compiler settings for msctfp.idl:
  4. Oicf, W1, Zp8, env=Win32 (32b run)
  5. protocol : dce , ms_ext, c_ext, robust
  6. error checks: allocation ref bounds_check enum stub_data
  7. VC __declspec() decoration level:
  8. __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  9. DECLSPEC_UUID(), MIDL_INTERFACE()
  10. */
  11. //@@MIDL_FILE_HEADING( )
  12. #pragma warning( disable: 4049 ) /* more than 64k source lines */
  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 __msctfp_h__
  27. #define __msctfp_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */
  32. #ifndef __ITfThreadMgr_P_old_FWD_DEFINED__
  33. #define __ITfThreadMgr_P_old_FWD_DEFINED__
  34. typedef interface ITfThreadMgr_P_old ITfThreadMgr_P_old;
  35. #endif /* __ITfThreadMgr_P_old_FWD_DEFINED__ */
  36. #ifndef __ITfThreadMgr_P_FWD_DEFINED__
  37. #define __ITfThreadMgr_P_FWD_DEFINED__
  38. typedef interface ITfThreadMgr_P ITfThreadMgr_P;
  39. #endif /* __ITfThreadMgr_P_FWD_DEFINED__ */
  40. #ifndef __ITfKeystrokeMgr_P_FWD_DEFINED__
  41. #define __ITfKeystrokeMgr_P_FWD_DEFINED__
  42. typedef interface ITfKeystrokeMgr_P ITfKeystrokeMgr_P;
  43. #endif /* __ITfKeystrokeMgr_P_FWD_DEFINED__ */
  44. #ifndef __ITfSysHookSink_FWD_DEFINED__
  45. #define __ITfSysHookSink_FWD_DEFINED__
  46. typedef interface ITfSysHookSink ITfSysHookSink;
  47. #endif /* __ITfSysHookSink_FWD_DEFINED__ */
  48. #ifndef __ITfStartReconversionNotifySink_FWD_DEFINED__
  49. #define __ITfStartReconversionNotifySink_FWD_DEFINED__
  50. typedef interface ITfStartReconversionNotifySink ITfStartReconversionNotifySink;
  51. #endif /* __ITfStartReconversionNotifySink_FWD_DEFINED__ */
  52. #ifndef __ITfLangBarEventSink_P_FWD_DEFINED__
  53. #define __ITfLangBarEventSink_P_FWD_DEFINED__
  54. typedef interface ITfLangBarEventSink_P ITfLangBarEventSink_P;
  55. #endif /* __ITfLangBarEventSink_P_FWD_DEFINED__ */
  56. #ifndef __ITfLangBarMgr_P_FWD_DEFINED__
  57. #define __ITfLangBarMgr_P_FWD_DEFINED__
  58. typedef interface ITfLangBarMgr_P ITfLangBarMgr_P;
  59. #endif /* __ITfLangBarMgr_P_FWD_DEFINED__ */
  60. #ifndef __ITfContext_P_FWD_DEFINED__
  61. #define __ITfContext_P_FWD_DEFINED__
  62. typedef interface ITfContext_P ITfContext_P;
  63. #endif /* __ITfContext_P_FWD_DEFINED__ */
  64. #ifndef __ITfRangeChangeSink_FWD_DEFINED__
  65. #define __ITfRangeChangeSink_FWD_DEFINED__
  66. typedef interface ITfRangeChangeSink ITfRangeChangeSink;
  67. #endif /* __ITfRangeChangeSink_FWD_DEFINED__ */
  68. #ifndef __ITfFnAbort_FWD_DEFINED__
  69. #define __ITfFnAbort_FWD_DEFINED__
  70. typedef interface ITfFnAbort ITfFnAbort;
  71. #endif /* __ITfFnAbort_FWD_DEFINED__ */
  72. #ifndef __ITfMouseTrackerAnchor_FWD_DEFINED__
  73. #define __ITfMouseTrackerAnchor_FWD_DEFINED__
  74. typedef interface ITfMouseTrackerAnchor ITfMouseTrackerAnchor;
  75. #endif /* __ITfMouseTrackerAnchor_FWD_DEFINED__ */
  76. #ifndef __ITfRangeAnchor_FWD_DEFINED__
  77. #define __ITfRangeAnchor_FWD_DEFINED__
  78. typedef interface ITfRangeAnchor ITfRangeAnchor;
  79. #endif /* __ITfRangeAnchor_FWD_DEFINED__ */
  80. #ifndef __ITfPersistentPropertyLoaderAnchor_FWD_DEFINED__
  81. #define __ITfPersistentPropertyLoaderAnchor_FWD_DEFINED__
  82. typedef interface ITfPersistentPropertyLoaderAnchor ITfPersistentPropertyLoaderAnchor;
  83. #endif /* __ITfPersistentPropertyLoaderAnchor_FWD_DEFINED__ */
  84. #ifndef __ITextStoreAnchorServices_FWD_DEFINED__
  85. #define __ITextStoreAnchorServices_FWD_DEFINED__
  86. typedef interface ITextStoreAnchorServices ITextStoreAnchorServices;
  87. #endif /* __ITextStoreAnchorServices_FWD_DEFINED__ */
  88. #ifndef __ITfProperty2_FWD_DEFINED__
  89. #define __ITfProperty2_FWD_DEFINED__
  90. typedef interface ITfProperty2 ITfProperty2;
  91. #endif /* __ITfProperty2_FWD_DEFINED__ */
  92. #ifndef __IEnumTfCollection_FWD_DEFINED__
  93. #define __IEnumTfCollection_FWD_DEFINED__
  94. typedef interface IEnumTfCollection IEnumTfCollection;
  95. #endif /* __IEnumTfCollection_FWD_DEFINED__ */
  96. #ifndef __ITfDisplayAttributeCollectionMgr_FWD_DEFINED__
  97. #define __ITfDisplayAttributeCollectionMgr_FWD_DEFINED__
  98. typedef interface ITfDisplayAttributeCollectionMgr ITfDisplayAttributeCollectionMgr;
  99. #endif /* __ITfDisplayAttributeCollectionMgr_FWD_DEFINED__ */
  100. #ifndef __ITfDisplayAttributeCollectionProvider_FWD_DEFINED__
  101. #define __ITfDisplayAttributeCollectionProvider_FWD_DEFINED__
  102. typedef interface ITfDisplayAttributeCollectionProvider ITfDisplayAttributeCollectionProvider;
  103. #endif /* __ITfDisplayAttributeCollectionProvider_FWD_DEFINED__ */
  104. #ifndef __IEnumTfRenderingMarkup_FWD_DEFINED__
  105. #define __IEnumTfRenderingMarkup_FWD_DEFINED__
  106. typedef interface IEnumTfRenderingMarkup IEnumTfRenderingMarkup;
  107. #endif /* __IEnumTfRenderingMarkup_FWD_DEFINED__ */
  108. #ifndef __ITfContextRenderingMarkup_FWD_DEFINED__
  109. #define __ITfContextRenderingMarkup_FWD_DEFINED__
  110. typedef interface ITfContextRenderingMarkup ITfContextRenderingMarkup;
  111. #endif /* __ITfContextRenderingMarkup_FWD_DEFINED__ */
  112. #ifndef __ITfBackgroundThreadMgr_FWD_DEFINED__
  113. #define __ITfBackgroundThreadMgr_FWD_DEFINED__
  114. typedef interface ITfBackgroundThreadMgr ITfBackgroundThreadMgr;
  115. #endif /* __ITfBackgroundThreadMgr_FWD_DEFINED__ */
  116. /* header files for imported files */
  117. #include "oaidl.h"
  118. #include "msctf.h"
  119. #ifdef __cplusplus
  120. extern "C"{
  121. #endif
  122. void * __RPC_USER MIDL_user_allocate(size_t);
  123. void __RPC_USER MIDL_user_free( void * );
  124. /* interface __MIDL_itf_msctfp_0000 */
  125. /* [local] */
  126. //=--------------------------------------------------------------------------=
  127. // msctfp.h
  128. //=--------------------------------------------------------------------------=
  129. // (C) Copyright 1995-2000 Microsoft Corporation. All Rights Reserved.
  130. //
  131. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  132. // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  133. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  134. // PARTICULAR PURPOSE.
  135. //=--------------------------------------------------------------------------=
  136. #pragma comment(lib,"uuid.lib")
  137. //--------------------------------------------------------------------------
  138. // MSCTF Private Interfaces.
  139. #ifndef MSCTFP_DEFINED
  140. #define MSCTFP_DEFINED
  141. #include <windows.h>
  142. EXTERN_C const GUID GUID_TFCAT_TIP_REFERENCE;
  143. EXTERN_C const GUID GUID_TFCAT_TIP_PROOFING;
  144. EXTERN_C const GUID GUID_TFCAT_TIP_SMARTTAG;
  145. EXTERN_C const GUID GUID_TFCAT_PROPSTYLE_CUSTOM_COMPACT;
  146. EXTERN_C const GUID GUID_SERVICE_TEXTSTORE;
  147. EXTERN_C const GUID GUID_SERVICE_TF;
  148. EXTERN_C const GUID GUID_COMPARTMENT_MSCANDIDATEUI_WINDOW;
  149. #define TF_LBU_CAPSKANAKEY 1
  150. #define TF_LBU_NTCONSOLELANGCHANGE 2
  151. EXTERN_C const GUID GUID_MODEBIAS_DEFAULT;
  152. #define TF_LBUF_CAPS 0x0001
  153. #define TF_LBUF_KANA 0x0002
  154. #define TF_ES_READ_PROPERTY_WRITE ( 0x12 )
  155. #define TF_PKEX_SYSHOTKEY 0x0001
  156. #define TF_PKEX_NONEEDDIM 0x0002
  157. #define TF_TMAE_NOACTIVATETIP 0x0001
  158. #define TF_KEY_MSCTFIME 0x0001
  159. #define TF_KEY_TEST 0x0002
  160. #define TF_KEY_INTERNAL 0x0004
  161. extern RPC_IF_HANDLE __MIDL_itf_msctfp_0000_v0_0_c_ifspec;
  162. extern RPC_IF_HANDLE __MIDL_itf_msctfp_0000_v0_0_s_ifspec;
  163. #ifndef __ITfThreadMgr_P_old_INTERFACE_DEFINED__
  164. #define __ITfThreadMgr_P_old_INTERFACE_DEFINED__
  165. /* interface ITfThreadMgr_P_old */
  166. /* [unique][uuid][object] */
  167. EXTERN_C const IID IID_ITfThreadMgr_P_old;
  168. #if defined(__cplusplus) && !defined(CINTERFACE)
  169. MIDL_INTERFACE("f65567a7-34a1-46f4-b5dd-8804aeb06ff7")
  170. ITfThreadMgr_P_old : public ITfThreadMgr
  171. {
  172. public:
  173. virtual HRESULT STDMETHODCALLTYPE GetAssociated(
  174. /* [in] */ HWND hWnd,
  175. /* [out] */ ITfDocumentMgr **ppdim) = 0;
  176. virtual HRESULT STDMETHODCALLTYPE SetSysHookSink(
  177. /* [in] */ ITfSysHookSink *pSink) = 0;
  178. virtual HRESULT STDMETHODCALLTYPE RequestPostponedLock(
  179. /* [in] */ ITfContext *pic) = 0;
  180. virtual HRESULT STDMETHODCALLTYPE IsKeystrokeFeedEnabled(
  181. /* [out] */ BOOL *pfEnabled) = 0;
  182. };
  183. #else /* C style interface */
  184. typedef struct ITfThreadMgr_P_oldVtbl
  185. {
  186. BEGIN_INTERFACE
  187. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  188. ITfThreadMgr_P_old * This,
  189. /* [in] */ REFIID riid,
  190. /* [iid_is][out] */ void **ppvObject);
  191. ULONG ( STDMETHODCALLTYPE *AddRef )(
  192. ITfThreadMgr_P_old * This);
  193. ULONG ( STDMETHODCALLTYPE *Release )(
  194. ITfThreadMgr_P_old * This);
  195. HRESULT ( STDMETHODCALLTYPE *Activate )(
  196. ITfThreadMgr_P_old * This,
  197. /* [out] */ TfClientId *ptid);
  198. HRESULT ( STDMETHODCALLTYPE *Deactivate )(
  199. ITfThreadMgr_P_old * This);
  200. HRESULT ( STDMETHODCALLTYPE *CreateDocumentMgr )(
  201. ITfThreadMgr_P_old * This,
  202. /* [out] */ ITfDocumentMgr **ppdim);
  203. HRESULT ( STDMETHODCALLTYPE *EnumDocumentMgrs )(
  204. ITfThreadMgr_P_old * This,
  205. /* [out] */ IEnumTfDocumentMgrs **ppEnum);
  206. HRESULT ( STDMETHODCALLTYPE *GetFocus )(
  207. ITfThreadMgr_P_old * This,
  208. /* [out] */ ITfDocumentMgr **ppdimFocus);
  209. HRESULT ( STDMETHODCALLTYPE *SetFocus )(
  210. ITfThreadMgr_P_old * This,
  211. /* [in] */ ITfDocumentMgr *pdimFocus);
  212. HRESULT ( STDMETHODCALLTYPE *AssociateFocus )(
  213. ITfThreadMgr_P_old * This,
  214. /* [in] */ HWND hwnd,
  215. /* [unique][in] */ ITfDocumentMgr *pdimNew,
  216. /* [out] */ ITfDocumentMgr **ppdimPrev);
  217. HRESULT ( STDMETHODCALLTYPE *IsThreadFocus )(
  218. ITfThreadMgr_P_old * This,
  219. /* [out] */ BOOL *pfThreadFocus);
  220. HRESULT ( STDMETHODCALLTYPE *GetFunctionProvider )(
  221. ITfThreadMgr_P_old * This,
  222. /* [in] */ REFCLSID clsid,
  223. /* [out] */ ITfFunctionProvider **ppFuncProv);
  224. HRESULT ( STDMETHODCALLTYPE *EnumFunctionProviders )(
  225. ITfThreadMgr_P_old * This,
  226. /* [out] */ IEnumTfFunctionProviders **ppEnum);
  227. HRESULT ( STDMETHODCALLTYPE *GetGlobalCompartment )(
  228. ITfThreadMgr_P_old * This,
  229. /* [out] */ ITfCompartmentMgr **ppCompMgr);
  230. HRESULT ( STDMETHODCALLTYPE *GetAssociated )(
  231. ITfThreadMgr_P_old * This,
  232. /* [in] */ HWND hWnd,
  233. /* [out] */ ITfDocumentMgr **ppdim);
  234. HRESULT ( STDMETHODCALLTYPE *SetSysHookSink )(
  235. ITfThreadMgr_P_old * This,
  236. /* [in] */ ITfSysHookSink *pSink);
  237. HRESULT ( STDMETHODCALLTYPE *RequestPostponedLock )(
  238. ITfThreadMgr_P_old * This,
  239. /* [in] */ ITfContext *pic);
  240. HRESULT ( STDMETHODCALLTYPE *IsKeystrokeFeedEnabled )(
  241. ITfThreadMgr_P_old * This,
  242. /* [out] */ BOOL *pfEnabled);
  243. END_INTERFACE
  244. } ITfThreadMgr_P_oldVtbl;
  245. interface ITfThreadMgr_P_old
  246. {
  247. CONST_VTBL struct ITfThreadMgr_P_oldVtbl *lpVtbl;
  248. };
  249. #ifdef COBJMACROS
  250. #define ITfThreadMgr_P_old_QueryInterface(This,riid,ppvObject) \
  251. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  252. #define ITfThreadMgr_P_old_AddRef(This) \
  253. (This)->lpVtbl -> AddRef(This)
  254. #define ITfThreadMgr_P_old_Release(This) \
  255. (This)->lpVtbl -> Release(This)
  256. #define ITfThreadMgr_P_old_Activate(This,ptid) \
  257. (This)->lpVtbl -> Activate(This,ptid)
  258. #define ITfThreadMgr_P_old_Deactivate(This) \
  259. (This)->lpVtbl -> Deactivate(This)
  260. #define ITfThreadMgr_P_old_CreateDocumentMgr(This,ppdim) \
  261. (This)->lpVtbl -> CreateDocumentMgr(This,ppdim)
  262. #define ITfThreadMgr_P_old_EnumDocumentMgrs(This,ppEnum) \
  263. (This)->lpVtbl -> EnumDocumentMgrs(This,ppEnum)
  264. #define ITfThreadMgr_P_old_GetFocus(This,ppdimFocus) \
  265. (This)->lpVtbl -> GetFocus(This,ppdimFocus)
  266. #define ITfThreadMgr_P_old_SetFocus(This,pdimFocus) \
  267. (This)->lpVtbl -> SetFocus(This,pdimFocus)
  268. #define ITfThreadMgr_P_old_AssociateFocus(This,hwnd,pdimNew,ppdimPrev) \
  269. (This)->lpVtbl -> AssociateFocus(This,hwnd,pdimNew,ppdimPrev)
  270. #define ITfThreadMgr_P_old_IsThreadFocus(This,pfThreadFocus) \
  271. (This)->lpVtbl -> IsThreadFocus(This,pfThreadFocus)
  272. #define ITfThreadMgr_P_old_GetFunctionProvider(This,clsid,ppFuncProv) \
  273. (This)->lpVtbl -> GetFunctionProvider(This,clsid,ppFuncProv)
  274. #define ITfThreadMgr_P_old_EnumFunctionProviders(This,ppEnum) \
  275. (This)->lpVtbl -> EnumFunctionProviders(This,ppEnum)
  276. #define ITfThreadMgr_P_old_GetGlobalCompartment(This,ppCompMgr) \
  277. (This)->lpVtbl -> GetGlobalCompartment(This,ppCompMgr)
  278. #define ITfThreadMgr_P_old_GetAssociated(This,hWnd,ppdim) \
  279. (This)->lpVtbl -> GetAssociated(This,hWnd,ppdim)
  280. #define ITfThreadMgr_P_old_SetSysHookSink(This,pSink) \
  281. (This)->lpVtbl -> SetSysHookSink(This,pSink)
  282. #define ITfThreadMgr_P_old_RequestPostponedLock(This,pic) \
  283. (This)->lpVtbl -> RequestPostponedLock(This,pic)
  284. #define ITfThreadMgr_P_old_IsKeystrokeFeedEnabled(This,pfEnabled) \
  285. (This)->lpVtbl -> IsKeystrokeFeedEnabled(This,pfEnabled)
  286. #endif /* COBJMACROS */
  287. #endif /* C style interface */
  288. HRESULT STDMETHODCALLTYPE ITfThreadMgr_P_old_GetAssociated_Proxy(
  289. ITfThreadMgr_P_old * This,
  290. /* [in] */ HWND hWnd,
  291. /* [out] */ ITfDocumentMgr **ppdim);
  292. void __RPC_STUB ITfThreadMgr_P_old_GetAssociated_Stub(
  293. IRpcStubBuffer *This,
  294. IRpcChannelBuffer *_pRpcChannelBuffer,
  295. PRPC_MESSAGE _pRpcMessage,
  296. DWORD *_pdwStubPhase);
  297. HRESULT STDMETHODCALLTYPE ITfThreadMgr_P_old_SetSysHookSink_Proxy(
  298. ITfThreadMgr_P_old * This,
  299. /* [in] */ ITfSysHookSink *pSink);
  300. void __RPC_STUB ITfThreadMgr_P_old_SetSysHookSink_Stub(
  301. IRpcStubBuffer *This,
  302. IRpcChannelBuffer *_pRpcChannelBuffer,
  303. PRPC_MESSAGE _pRpcMessage,
  304. DWORD *_pdwStubPhase);
  305. HRESULT STDMETHODCALLTYPE ITfThreadMgr_P_old_RequestPostponedLock_Proxy(
  306. ITfThreadMgr_P_old * This,
  307. /* [in] */ ITfContext *pic);
  308. void __RPC_STUB ITfThreadMgr_P_old_RequestPostponedLock_Stub(
  309. IRpcStubBuffer *This,
  310. IRpcChannelBuffer *_pRpcChannelBuffer,
  311. PRPC_MESSAGE _pRpcMessage,
  312. DWORD *_pdwStubPhase);
  313. HRESULT STDMETHODCALLTYPE ITfThreadMgr_P_old_IsKeystrokeFeedEnabled_Proxy(
  314. ITfThreadMgr_P_old * This,
  315. /* [out] */ BOOL *pfEnabled);
  316. void __RPC_STUB ITfThreadMgr_P_old_IsKeystrokeFeedEnabled_Stub(
  317. IRpcStubBuffer *This,
  318. IRpcChannelBuffer *_pRpcChannelBuffer,
  319. PRPC_MESSAGE _pRpcMessage,
  320. DWORD *_pdwStubPhase);
  321. #endif /* __ITfThreadMgr_P_old_INTERFACE_DEFINED__ */
  322. #ifndef __ITfThreadMgr_P_INTERFACE_DEFINED__
  323. #define __ITfThreadMgr_P_INTERFACE_DEFINED__
  324. /* interface ITfThreadMgr_P */
  325. /* [unique][uuid][object] */
  326. EXTERN_C const IID IID_ITfThreadMgr_P;
  327. #if defined(__cplusplus) && !defined(CINTERFACE)
  328. MIDL_INTERFACE("7c6247a1-2884-4b7c-af24-f198047aa728")
  329. ITfThreadMgr_P : public ITfThreadMgr_P_old
  330. {
  331. public:
  332. virtual HRESULT STDMETHODCALLTYPE CallImm32HotkeyHanlder(
  333. /* [in] */ WPARAM wParam,
  334. /* [in] */ LPARAM lParam,
  335. /* [out] */ BOOL *pbHandled) = 0;
  336. virtual HRESULT STDMETHODCALLTYPE ActivateEx(
  337. /* [out] */ TfClientId *ptid,
  338. /* [in] */ DWORD dwFlags) = 0;
  339. };
  340. #else /* C style interface */
  341. typedef struct ITfThreadMgr_PVtbl
  342. {
  343. BEGIN_INTERFACE
  344. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  345. ITfThreadMgr_P * This,
  346. /* [in] */ REFIID riid,
  347. /* [iid_is][out] */ void **ppvObject);
  348. ULONG ( STDMETHODCALLTYPE *AddRef )(
  349. ITfThreadMgr_P * This);
  350. ULONG ( STDMETHODCALLTYPE *Release )(
  351. ITfThreadMgr_P * This);
  352. HRESULT ( STDMETHODCALLTYPE *Activate )(
  353. ITfThreadMgr_P * This,
  354. /* [out] */ TfClientId *ptid);
  355. HRESULT ( STDMETHODCALLTYPE *Deactivate )(
  356. ITfThreadMgr_P * This);
  357. HRESULT ( STDMETHODCALLTYPE *CreateDocumentMgr )(
  358. ITfThreadMgr_P * This,
  359. /* [out] */ ITfDocumentMgr **ppdim);
  360. HRESULT ( STDMETHODCALLTYPE *EnumDocumentMgrs )(
  361. ITfThreadMgr_P * This,
  362. /* [out] */ IEnumTfDocumentMgrs **ppEnum);
  363. HRESULT ( STDMETHODCALLTYPE *GetFocus )(
  364. ITfThreadMgr_P * This,
  365. /* [out] */ ITfDocumentMgr **ppdimFocus);
  366. HRESULT ( STDMETHODCALLTYPE *SetFocus )(
  367. ITfThreadMgr_P * This,
  368. /* [in] */ ITfDocumentMgr *pdimFocus);
  369. HRESULT ( STDMETHODCALLTYPE *AssociateFocus )(
  370. ITfThreadMgr_P * This,
  371. /* [in] */ HWND hwnd,
  372. /* [unique][in] */ ITfDocumentMgr *pdimNew,
  373. /* [out] */ ITfDocumentMgr **ppdimPrev);
  374. HRESULT ( STDMETHODCALLTYPE *IsThreadFocus )(
  375. ITfThreadMgr_P * This,
  376. /* [out] */ BOOL *pfThreadFocus);
  377. HRESULT ( STDMETHODCALLTYPE *GetFunctionProvider )(
  378. ITfThreadMgr_P * This,
  379. /* [in] */ REFCLSID clsid,
  380. /* [out] */ ITfFunctionProvider **ppFuncProv);
  381. HRESULT ( STDMETHODCALLTYPE *EnumFunctionProviders )(
  382. ITfThreadMgr_P * This,
  383. /* [out] */ IEnumTfFunctionProviders **ppEnum);
  384. HRESULT ( STDMETHODCALLTYPE *GetGlobalCompartment )(
  385. ITfThreadMgr_P * This,
  386. /* [out] */ ITfCompartmentMgr **ppCompMgr);
  387. HRESULT ( STDMETHODCALLTYPE *GetAssociated )(
  388. ITfThreadMgr_P * This,
  389. /* [in] */ HWND hWnd,
  390. /* [out] */ ITfDocumentMgr **ppdim);
  391. HRESULT ( STDMETHODCALLTYPE *SetSysHookSink )(
  392. ITfThreadMgr_P * This,
  393. /* [in] */ ITfSysHookSink *pSink);
  394. HRESULT ( STDMETHODCALLTYPE *RequestPostponedLock )(
  395. ITfThreadMgr_P * This,
  396. /* [in] */ ITfContext *pic);
  397. HRESULT ( STDMETHODCALLTYPE *IsKeystrokeFeedEnabled )(
  398. ITfThreadMgr_P * This,
  399. /* [out] */ BOOL *pfEnabled);
  400. HRESULT ( STDMETHODCALLTYPE *CallImm32HotkeyHanlder )(
  401. ITfThreadMgr_P * This,
  402. /* [in] */ WPARAM wParam,
  403. /* [in] */ LPARAM lParam,
  404. /* [out] */ BOOL *pbHandled);
  405. HRESULT ( STDMETHODCALLTYPE *ActivateEx )(
  406. ITfThreadMgr_P * This,
  407. /* [out] */ TfClientId *ptid,
  408. /* [in] */ DWORD dwFlags);
  409. END_INTERFACE
  410. } ITfThreadMgr_PVtbl;
  411. interface ITfThreadMgr_P
  412. {
  413. CONST_VTBL struct ITfThreadMgr_PVtbl *lpVtbl;
  414. };
  415. #ifdef COBJMACROS
  416. #define ITfThreadMgr_P_QueryInterface(This,riid,ppvObject) \
  417. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  418. #define ITfThreadMgr_P_AddRef(This) \
  419. (This)->lpVtbl -> AddRef(This)
  420. #define ITfThreadMgr_P_Release(This) \
  421. (This)->lpVtbl -> Release(This)
  422. #define ITfThreadMgr_P_Activate(This,ptid) \
  423. (This)->lpVtbl -> Activate(This,ptid)
  424. #define ITfThreadMgr_P_Deactivate(This) \
  425. (This)->lpVtbl -> Deactivate(This)
  426. #define ITfThreadMgr_P_CreateDocumentMgr(This,ppdim) \
  427. (This)->lpVtbl -> CreateDocumentMgr(This,ppdim)
  428. #define ITfThreadMgr_P_EnumDocumentMgrs(This,ppEnum) \
  429. (This)->lpVtbl -> EnumDocumentMgrs(This,ppEnum)
  430. #define ITfThreadMgr_P_GetFocus(This,ppdimFocus) \
  431. (This)->lpVtbl -> GetFocus(This,ppdimFocus)
  432. #define ITfThreadMgr_P_SetFocus(This,pdimFocus) \
  433. (This)->lpVtbl -> SetFocus(This,pdimFocus)
  434. #define ITfThreadMgr_P_AssociateFocus(This,hwnd,pdimNew,ppdimPrev) \
  435. (This)->lpVtbl -> AssociateFocus(This,hwnd,pdimNew,ppdimPrev)
  436. #define ITfThreadMgr_P_IsThreadFocus(This,pfThreadFocus) \
  437. (This)->lpVtbl -> IsThreadFocus(This,pfThreadFocus)
  438. #define ITfThreadMgr_P_GetFunctionProvider(This,clsid,ppFuncProv) \
  439. (This)->lpVtbl -> GetFunctionProvider(This,clsid,ppFuncProv)
  440. #define ITfThreadMgr_P_EnumFunctionProviders(This,ppEnum) \
  441. (This)->lpVtbl -> EnumFunctionProviders(This,ppEnum)
  442. #define ITfThreadMgr_P_GetGlobalCompartment(This,ppCompMgr) \
  443. (This)->lpVtbl -> GetGlobalCompartment(This,ppCompMgr)
  444. #define ITfThreadMgr_P_GetAssociated(This,hWnd,ppdim) \
  445. (This)->lpVtbl -> GetAssociated(This,hWnd,ppdim)
  446. #define ITfThreadMgr_P_SetSysHookSink(This,pSink) \
  447. (This)->lpVtbl -> SetSysHookSink(This,pSink)
  448. #define ITfThreadMgr_P_RequestPostponedLock(This,pic) \
  449. (This)->lpVtbl -> RequestPostponedLock(This,pic)
  450. #define ITfThreadMgr_P_IsKeystrokeFeedEnabled(This,pfEnabled) \
  451. (This)->lpVtbl -> IsKeystrokeFeedEnabled(This,pfEnabled)
  452. #define ITfThreadMgr_P_CallImm32HotkeyHanlder(This,wParam,lParam,pbHandled) \
  453. (This)->lpVtbl -> CallImm32HotkeyHanlder(This,wParam,lParam,pbHandled)
  454. #define ITfThreadMgr_P_ActivateEx(This,ptid,dwFlags) \
  455. (This)->lpVtbl -> ActivateEx(This,ptid,dwFlags)
  456. #endif /* COBJMACROS */
  457. #endif /* C style interface */
  458. HRESULT STDMETHODCALLTYPE ITfThreadMgr_P_CallImm32HotkeyHanlder_Proxy(
  459. ITfThreadMgr_P * This,
  460. /* [in] */ WPARAM wParam,
  461. /* [in] */ LPARAM lParam,
  462. /* [out] */ BOOL *pbHandled);
  463. void __RPC_STUB ITfThreadMgr_P_CallImm32HotkeyHanlder_Stub(
  464. IRpcStubBuffer *This,
  465. IRpcChannelBuffer *_pRpcChannelBuffer,
  466. PRPC_MESSAGE _pRpcMessage,
  467. DWORD *_pdwStubPhase);
  468. HRESULT STDMETHODCALLTYPE ITfThreadMgr_P_ActivateEx_Proxy(
  469. ITfThreadMgr_P * This,
  470. /* [out] */ TfClientId *ptid,
  471. /* [in] */ DWORD dwFlags);
  472. void __RPC_STUB ITfThreadMgr_P_ActivateEx_Stub(
  473. IRpcStubBuffer *This,
  474. IRpcChannelBuffer *_pRpcChannelBuffer,
  475. PRPC_MESSAGE _pRpcMessage,
  476. DWORD *_pdwStubPhase);
  477. #endif /* __ITfThreadMgr_P_INTERFACE_DEFINED__ */
  478. #ifndef __ITfKeystrokeMgr_P_INTERFACE_DEFINED__
  479. #define __ITfKeystrokeMgr_P_INTERFACE_DEFINED__
  480. /* interface ITfKeystrokeMgr_P */
  481. /* [unique][uuid][local][object] */
  482. EXTERN_C const IID IID_ITfKeystrokeMgr_P;
  483. #if defined(__cplusplus) && !defined(CINTERFACE)
  484. MIDL_INTERFACE("53fa1bec-5be1-458e-ae70-a9f1dc843e81")
  485. ITfKeystrokeMgr_P : public ITfKeystrokeMgr
  486. {
  487. public:
  488. virtual HRESULT STDMETHODCALLTYPE PreserveKeyEx(
  489. /* [in] */ TfClientId tid,
  490. /* [in] */ REFGUID rguid,
  491. /* [in] */ const TF_PRESERVEDKEY *prekey,
  492. /* [size_is][in] */ const WCHAR *pchDesc,
  493. /* [in] */ ULONG cchDesc,
  494. /* [in] */ DWORD dwFlags) = 0;
  495. virtual HRESULT STDMETHODCALLTYPE KeyDownUpEx(
  496. /* [in] */ WPARAM wParam,
  497. /* [in] */ LPARAM lParam,
  498. /* [in] */ DWORD dwFlags,
  499. /* [out] */ BOOL *pfEaten) = 0;
  500. };
  501. #else /* C style interface */
  502. typedef struct ITfKeystrokeMgr_PVtbl
  503. {
  504. BEGIN_INTERFACE
  505. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  506. ITfKeystrokeMgr_P * This,
  507. /* [in] */ REFIID riid,
  508. /* [iid_is][out] */ void **ppvObject);
  509. ULONG ( STDMETHODCALLTYPE *AddRef )(
  510. ITfKeystrokeMgr_P * This);
  511. ULONG ( STDMETHODCALLTYPE *Release )(
  512. ITfKeystrokeMgr_P * This);
  513. HRESULT ( STDMETHODCALLTYPE *AdviseKeyEventSink )(
  514. ITfKeystrokeMgr_P * This,
  515. /* [in] */ TfClientId tid,
  516. /* [in] */ ITfKeyEventSink *pSink,
  517. /* [in] */ BOOL fForeground);
  518. HRESULT ( STDMETHODCALLTYPE *UnadviseKeyEventSink )(
  519. ITfKeystrokeMgr_P * This,
  520. /* [in] */ TfClientId tid);
  521. HRESULT ( STDMETHODCALLTYPE *GetForeground )(
  522. ITfKeystrokeMgr_P * This,
  523. /* [out] */ CLSID *pclsid);
  524. HRESULT ( STDMETHODCALLTYPE *TestKeyDown )(
  525. ITfKeystrokeMgr_P * This,
  526. /* [in] */ WPARAM wParam,
  527. /* [in] */ LPARAM lParam,
  528. /* [out] */ BOOL *pfEaten);
  529. HRESULT ( STDMETHODCALLTYPE *TestKeyUp )(
  530. ITfKeystrokeMgr_P * This,
  531. /* [in] */ WPARAM wParam,
  532. /* [in] */ LPARAM lParam,
  533. /* [out] */ BOOL *pfEaten);
  534. HRESULT ( STDMETHODCALLTYPE *KeyDown )(
  535. ITfKeystrokeMgr_P * This,
  536. /* [in] */ WPARAM wParam,
  537. /* [in] */ LPARAM lParam,
  538. /* [out] */ BOOL *pfEaten);
  539. HRESULT ( STDMETHODCALLTYPE *KeyUp )(
  540. ITfKeystrokeMgr_P * This,
  541. /* [in] */ WPARAM wParam,
  542. /* [in] */ LPARAM lParam,
  543. /* [out] */ BOOL *pfEaten);
  544. HRESULT ( STDMETHODCALLTYPE *GetPreservedKey )(
  545. ITfKeystrokeMgr_P * This,
  546. /* [in] */ ITfContext *pic,
  547. /* [in] */ const TF_PRESERVEDKEY *pprekey,
  548. /* [out] */ GUID *pguid);
  549. HRESULT ( STDMETHODCALLTYPE *IsPreservedKey )(
  550. ITfKeystrokeMgr_P * This,
  551. /* [in] */ REFGUID rguid,
  552. /* [in] */ const TF_PRESERVEDKEY *pprekey,
  553. /* [out] */ BOOL *pfRegistered);
  554. HRESULT ( STDMETHODCALLTYPE *PreserveKey )(
  555. ITfKeystrokeMgr_P * This,
  556. /* [in] */ TfClientId tid,
  557. /* [in] */ REFGUID rguid,
  558. /* [in] */ const TF_PRESERVEDKEY *prekey,
  559. /* [size_is][in] */ const WCHAR *pchDesc,
  560. /* [in] */ ULONG cchDesc);
  561. HRESULT ( STDMETHODCALLTYPE *UnpreserveKey )(
  562. ITfKeystrokeMgr_P * This,
  563. /* [in] */ REFGUID rguid,
  564. /* [in] */ const TF_PRESERVEDKEY *pprekey);
  565. HRESULT ( STDMETHODCALLTYPE *SetPreservedKeyDescription )(
  566. ITfKeystrokeMgr_P * This,
  567. /* [in] */ REFGUID rguid,
  568. /* [size_is][in] */ const WCHAR *pchDesc,
  569. /* [in] */ ULONG cchDesc);
  570. HRESULT ( STDMETHODCALLTYPE *GetPreservedKeyDescription )(
  571. ITfKeystrokeMgr_P * This,
  572. /* [in] */ REFGUID rguid,
  573. /* [out] */ BSTR *pbstrDesc);
  574. HRESULT ( STDMETHODCALLTYPE *SimulatePreservedKey )(
  575. ITfKeystrokeMgr_P * This,
  576. /* [in] */ ITfContext *pic,
  577. /* [in] */ REFGUID rguid,
  578. /* [out] */ BOOL *pfEaten);
  579. HRESULT ( STDMETHODCALLTYPE *PreserveKeyEx )(
  580. ITfKeystrokeMgr_P * This,
  581. /* [in] */ TfClientId tid,
  582. /* [in] */ REFGUID rguid,
  583. /* [in] */ const TF_PRESERVEDKEY *prekey,
  584. /* [size_is][in] */ const WCHAR *pchDesc,
  585. /* [in] */ ULONG cchDesc,
  586. /* [in] */ DWORD dwFlags);
  587. HRESULT ( STDMETHODCALLTYPE *KeyDownUpEx )(
  588. ITfKeystrokeMgr_P * This,
  589. /* [in] */ WPARAM wParam,
  590. /* [in] */ LPARAM lParam,
  591. /* [in] */ DWORD dwFlags,
  592. /* [out] */ BOOL *pfEaten);
  593. END_INTERFACE
  594. } ITfKeystrokeMgr_PVtbl;
  595. interface ITfKeystrokeMgr_P
  596. {
  597. CONST_VTBL struct ITfKeystrokeMgr_PVtbl *lpVtbl;
  598. };
  599. #ifdef COBJMACROS
  600. #define ITfKeystrokeMgr_P_QueryInterface(This,riid,ppvObject) \
  601. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  602. #define ITfKeystrokeMgr_P_AddRef(This) \
  603. (This)->lpVtbl -> AddRef(This)
  604. #define ITfKeystrokeMgr_P_Release(This) \
  605. (This)->lpVtbl -> Release(This)
  606. #define ITfKeystrokeMgr_P_AdviseKeyEventSink(This,tid,pSink,fForeground) \
  607. (This)->lpVtbl -> AdviseKeyEventSink(This,tid,pSink,fForeground)
  608. #define ITfKeystrokeMgr_P_UnadviseKeyEventSink(This,tid) \
  609. (This)->lpVtbl -> UnadviseKeyEventSink(This,tid)
  610. #define ITfKeystrokeMgr_P_GetForeground(This,pclsid) \
  611. (This)->lpVtbl -> GetForeground(This,pclsid)
  612. #define ITfKeystrokeMgr_P_TestKeyDown(This,wParam,lParam,pfEaten) \
  613. (This)->lpVtbl -> TestKeyDown(This,wParam,lParam,pfEaten)
  614. #define ITfKeystrokeMgr_P_TestKeyUp(This,wParam,lParam,pfEaten) \
  615. (This)->lpVtbl -> TestKeyUp(This,wParam,lParam,pfEaten)
  616. #define ITfKeystrokeMgr_P_KeyDown(This,wParam,lParam,pfEaten) \
  617. (This)->lpVtbl -> KeyDown(This,wParam,lParam,pfEaten)
  618. #define ITfKeystrokeMgr_P_KeyUp(This,wParam,lParam,pfEaten) \
  619. (This)->lpVtbl -> KeyUp(This,wParam,lParam,pfEaten)
  620. #define ITfKeystrokeMgr_P_GetPreservedKey(This,pic,pprekey,pguid) \
  621. (This)->lpVtbl -> GetPreservedKey(This,pic,pprekey,pguid)
  622. #define ITfKeystrokeMgr_P_IsPreservedKey(This,rguid,pprekey,pfRegistered) \
  623. (This)->lpVtbl -> IsPreservedKey(This,rguid,pprekey,pfRegistered)
  624. #define ITfKeystrokeMgr_P_PreserveKey(This,tid,rguid,prekey,pchDesc,cchDesc) \
  625. (This)->lpVtbl -> PreserveKey(This,tid,rguid,prekey,pchDesc,cchDesc)
  626. #define ITfKeystrokeMgr_P_UnpreserveKey(This,rguid,pprekey) \
  627. (This)->lpVtbl -> UnpreserveKey(This,rguid,pprekey)
  628. #define ITfKeystrokeMgr_P_SetPreservedKeyDescription(This,rguid,pchDesc,cchDesc) \
  629. (This)->lpVtbl -> SetPreservedKeyDescription(This,rguid,pchDesc,cchDesc)
  630. #define ITfKeystrokeMgr_P_GetPreservedKeyDescription(This,rguid,pbstrDesc) \
  631. (This)->lpVtbl -> GetPreservedKeyDescription(This,rguid,pbstrDesc)
  632. #define ITfKeystrokeMgr_P_SimulatePreservedKey(This,pic,rguid,pfEaten) \
  633. (This)->lpVtbl -> SimulatePreservedKey(This,pic,rguid,pfEaten)
  634. #define ITfKeystrokeMgr_P_PreserveKeyEx(This,tid,rguid,prekey,pchDesc,cchDesc,dwFlags) \
  635. (This)->lpVtbl -> PreserveKeyEx(This,tid,rguid,prekey,pchDesc,cchDesc,dwFlags)
  636. #define ITfKeystrokeMgr_P_KeyDownUpEx(This,wParam,lParam,dwFlags,pfEaten) \
  637. (This)->lpVtbl -> KeyDownUpEx(This,wParam,lParam,dwFlags,pfEaten)
  638. #endif /* COBJMACROS */
  639. #endif /* C style interface */
  640. HRESULT STDMETHODCALLTYPE ITfKeystrokeMgr_P_PreserveKeyEx_Proxy(
  641. ITfKeystrokeMgr_P * This,
  642. /* [in] */ TfClientId tid,
  643. /* [in] */ REFGUID rguid,
  644. /* [in] */ const TF_PRESERVEDKEY *prekey,
  645. /* [size_is][in] */ const WCHAR *pchDesc,
  646. /* [in] */ ULONG cchDesc,
  647. /* [in] */ DWORD dwFlags);
  648. void __RPC_STUB ITfKeystrokeMgr_P_PreserveKeyEx_Stub(
  649. IRpcStubBuffer *This,
  650. IRpcChannelBuffer *_pRpcChannelBuffer,
  651. PRPC_MESSAGE _pRpcMessage,
  652. DWORD *_pdwStubPhase);
  653. HRESULT STDMETHODCALLTYPE ITfKeystrokeMgr_P_KeyDownUpEx_Proxy(
  654. ITfKeystrokeMgr_P * This,
  655. /* [in] */ WPARAM wParam,
  656. /* [in] */ LPARAM lParam,
  657. /* [in] */ DWORD dwFlags,
  658. /* [out] */ BOOL *pfEaten);
  659. void __RPC_STUB ITfKeystrokeMgr_P_KeyDownUpEx_Stub(
  660. IRpcStubBuffer *This,
  661. IRpcChannelBuffer *_pRpcChannelBuffer,
  662. PRPC_MESSAGE _pRpcMessage,
  663. DWORD *_pdwStubPhase);
  664. #endif /* __ITfKeystrokeMgr_P_INTERFACE_DEFINED__ */
  665. #ifndef __ITfSysHookSink_INTERFACE_DEFINED__
  666. #define __ITfSysHookSink_INTERFACE_DEFINED__
  667. /* interface ITfSysHookSink */
  668. /* [unique][uuid][object] */
  669. EXTERN_C const IID IID_ITfSysHookSink;
  670. #if defined(__cplusplus) && !defined(CINTERFACE)
  671. MIDL_INTERFACE("495388DA-21A5-4852-8BB1-ED2F29DA8D60")
  672. ITfSysHookSink : public IUnknown
  673. {
  674. public:
  675. virtual HRESULT STDMETHODCALLTYPE OnPreFocusDIM(
  676. /* [in] */ HWND hWnd) = 0;
  677. virtual HRESULT STDMETHODCALLTYPE OnSysKeyboardProc(
  678. /* [in] */ WPARAM wParam,
  679. /* [in] */ LPARAM lParam) = 0;
  680. virtual HRESULT STDMETHODCALLTYPE OnSysShellProc(
  681. /* [in] */ int nCode,
  682. /* [in] */ WPARAM wParam,
  683. /* [in] */ LPARAM lParam) = 0;
  684. };
  685. #else /* C style interface */
  686. typedef struct ITfSysHookSinkVtbl
  687. {
  688. BEGIN_INTERFACE
  689. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  690. ITfSysHookSink * This,
  691. /* [in] */ REFIID riid,
  692. /* [iid_is][out] */ void **ppvObject);
  693. ULONG ( STDMETHODCALLTYPE *AddRef )(
  694. ITfSysHookSink * This);
  695. ULONG ( STDMETHODCALLTYPE *Release )(
  696. ITfSysHookSink * This);
  697. HRESULT ( STDMETHODCALLTYPE *OnPreFocusDIM )(
  698. ITfSysHookSink * This,
  699. /* [in] */ HWND hWnd);
  700. HRESULT ( STDMETHODCALLTYPE *OnSysKeyboardProc )(
  701. ITfSysHookSink * This,
  702. /* [in] */ WPARAM wParam,
  703. /* [in] */ LPARAM lParam);
  704. HRESULT ( STDMETHODCALLTYPE *OnSysShellProc )(
  705. ITfSysHookSink * This,
  706. /* [in] */ int nCode,
  707. /* [in] */ WPARAM wParam,
  708. /* [in] */ LPARAM lParam);
  709. END_INTERFACE
  710. } ITfSysHookSinkVtbl;
  711. interface ITfSysHookSink
  712. {
  713. CONST_VTBL struct ITfSysHookSinkVtbl *lpVtbl;
  714. };
  715. #ifdef COBJMACROS
  716. #define ITfSysHookSink_QueryInterface(This,riid,ppvObject) \
  717. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  718. #define ITfSysHookSink_AddRef(This) \
  719. (This)->lpVtbl -> AddRef(This)
  720. #define ITfSysHookSink_Release(This) \
  721. (This)->lpVtbl -> Release(This)
  722. #define ITfSysHookSink_OnPreFocusDIM(This,hWnd) \
  723. (This)->lpVtbl -> OnPreFocusDIM(This,hWnd)
  724. #define ITfSysHookSink_OnSysKeyboardProc(This,wParam,lParam) \
  725. (This)->lpVtbl -> OnSysKeyboardProc(This,wParam,lParam)
  726. #define ITfSysHookSink_OnSysShellProc(This,nCode,wParam,lParam) \
  727. (This)->lpVtbl -> OnSysShellProc(This,nCode,wParam,lParam)
  728. #endif /* COBJMACROS */
  729. #endif /* C style interface */
  730. HRESULT STDMETHODCALLTYPE ITfSysHookSink_OnPreFocusDIM_Proxy(
  731. ITfSysHookSink * This,
  732. /* [in] */ HWND hWnd);
  733. void __RPC_STUB ITfSysHookSink_OnPreFocusDIM_Stub(
  734. IRpcStubBuffer *This,
  735. IRpcChannelBuffer *_pRpcChannelBuffer,
  736. PRPC_MESSAGE _pRpcMessage,
  737. DWORD *_pdwStubPhase);
  738. HRESULT STDMETHODCALLTYPE ITfSysHookSink_OnSysKeyboardProc_Proxy(
  739. ITfSysHookSink * This,
  740. /* [in] */ WPARAM wParam,
  741. /* [in] */ LPARAM lParam);
  742. void __RPC_STUB ITfSysHookSink_OnSysKeyboardProc_Stub(
  743. IRpcStubBuffer *This,
  744. IRpcChannelBuffer *_pRpcChannelBuffer,
  745. PRPC_MESSAGE _pRpcMessage,
  746. DWORD *_pdwStubPhase);
  747. HRESULT STDMETHODCALLTYPE ITfSysHookSink_OnSysShellProc_Proxy(
  748. ITfSysHookSink * This,
  749. /* [in] */ int nCode,
  750. /* [in] */ WPARAM wParam,
  751. /* [in] */ LPARAM lParam);
  752. void __RPC_STUB ITfSysHookSink_OnSysShellProc_Stub(
  753. IRpcStubBuffer *This,
  754. IRpcChannelBuffer *_pRpcChannelBuffer,
  755. PRPC_MESSAGE _pRpcMessage,
  756. DWORD *_pdwStubPhase);
  757. #endif /* __ITfSysHookSink_INTERFACE_DEFINED__ */
  758. #ifndef __ITfStartReconversionNotifySink_INTERFACE_DEFINED__
  759. #define __ITfStartReconversionNotifySink_INTERFACE_DEFINED__
  760. /* interface ITfStartReconversionNotifySink */
  761. /* [unique][uuid][object] */
  762. EXTERN_C const IID IID_ITfStartReconversionNotifySink;
  763. #if defined(__cplusplus) && !defined(CINTERFACE)
  764. MIDL_INTERFACE("b9cd19cb-2919-4935-8768-ef30bae9a0cc")
  765. ITfStartReconversionNotifySink : public IUnknown
  766. {
  767. public:
  768. virtual HRESULT STDMETHODCALLTYPE StartReconversion( void) = 0;
  769. virtual HRESULT STDMETHODCALLTYPE EndReconversion( void) = 0;
  770. };
  771. #else /* C style interface */
  772. typedef struct ITfStartReconversionNotifySinkVtbl
  773. {
  774. BEGIN_INTERFACE
  775. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  776. ITfStartReconversionNotifySink * This,
  777. /* [in] */ REFIID riid,
  778. /* [iid_is][out] */ void **ppvObject);
  779. ULONG ( STDMETHODCALLTYPE *AddRef )(
  780. ITfStartReconversionNotifySink * This);
  781. ULONG ( STDMETHODCALLTYPE *Release )(
  782. ITfStartReconversionNotifySink * This);
  783. HRESULT ( STDMETHODCALLTYPE *StartReconversion )(
  784. ITfStartReconversionNotifySink * This);
  785. HRESULT ( STDMETHODCALLTYPE *EndReconversion )(
  786. ITfStartReconversionNotifySink * This);
  787. END_INTERFACE
  788. } ITfStartReconversionNotifySinkVtbl;
  789. interface ITfStartReconversionNotifySink
  790. {
  791. CONST_VTBL struct ITfStartReconversionNotifySinkVtbl *lpVtbl;
  792. };
  793. #ifdef COBJMACROS
  794. #define ITfStartReconversionNotifySink_QueryInterface(This,riid,ppvObject) \
  795. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  796. #define ITfStartReconversionNotifySink_AddRef(This) \
  797. (This)->lpVtbl -> AddRef(This)
  798. #define ITfStartReconversionNotifySink_Release(This) \
  799. (This)->lpVtbl -> Release(This)
  800. #define ITfStartReconversionNotifySink_StartReconversion(This) \
  801. (This)->lpVtbl -> StartReconversion(This)
  802. #define ITfStartReconversionNotifySink_EndReconversion(This) \
  803. (This)->lpVtbl -> EndReconversion(This)
  804. #endif /* COBJMACROS */
  805. #endif /* C style interface */
  806. HRESULT STDMETHODCALLTYPE ITfStartReconversionNotifySink_StartReconversion_Proxy(
  807. ITfStartReconversionNotifySink * This);
  808. void __RPC_STUB ITfStartReconversionNotifySink_StartReconversion_Stub(
  809. IRpcStubBuffer *This,
  810. IRpcChannelBuffer *_pRpcChannelBuffer,
  811. PRPC_MESSAGE _pRpcMessage,
  812. DWORD *_pdwStubPhase);
  813. HRESULT STDMETHODCALLTYPE ITfStartReconversionNotifySink_EndReconversion_Proxy(
  814. ITfStartReconversionNotifySink * This);
  815. void __RPC_STUB ITfStartReconversionNotifySink_EndReconversion_Stub(
  816. IRpcStubBuffer *This,
  817. IRpcChannelBuffer *_pRpcChannelBuffer,
  818. PRPC_MESSAGE _pRpcMessage,
  819. DWORD *_pdwStubPhase);
  820. #endif /* __ITfStartReconversionNotifySink_INTERFACE_DEFINED__ */
  821. #ifndef __ITfLangBarEventSink_P_INTERFACE_DEFINED__
  822. #define __ITfLangBarEventSink_P_INTERFACE_DEFINED__
  823. /* interface ITfLangBarEventSink_P */
  824. /* [unique][uuid][object] */
  825. EXTERN_C const IID IID_ITfLangBarEventSink_P;
  826. #if defined(__cplusplus) && !defined(CINTERFACE)
  827. MIDL_INTERFACE("7a460360-da21-4b09-a8a0-8a69e728d893")
  828. ITfLangBarEventSink_P : public IUnknown
  829. {
  830. public:
  831. virtual HRESULT STDMETHODCALLTYPE OnLangBarUpdate(
  832. /* [in] */ UINT uPdate,
  833. /* [in] */ LPARAM lParam) = 0;
  834. };
  835. #else /* C style interface */
  836. typedef struct ITfLangBarEventSink_PVtbl
  837. {
  838. BEGIN_INTERFACE
  839. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  840. ITfLangBarEventSink_P * This,
  841. /* [in] */ REFIID riid,
  842. /* [iid_is][out] */ void **ppvObject);
  843. ULONG ( STDMETHODCALLTYPE *AddRef )(
  844. ITfLangBarEventSink_P * This);
  845. ULONG ( STDMETHODCALLTYPE *Release )(
  846. ITfLangBarEventSink_P * This);
  847. HRESULT ( STDMETHODCALLTYPE *OnLangBarUpdate )(
  848. ITfLangBarEventSink_P * This,
  849. /* [in] */ UINT uPdate,
  850. /* [in] */ LPARAM lParam);
  851. END_INTERFACE
  852. } ITfLangBarEventSink_PVtbl;
  853. interface ITfLangBarEventSink_P
  854. {
  855. CONST_VTBL struct ITfLangBarEventSink_PVtbl *lpVtbl;
  856. };
  857. #ifdef COBJMACROS
  858. #define ITfLangBarEventSink_P_QueryInterface(This,riid,ppvObject) \
  859. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  860. #define ITfLangBarEventSink_P_AddRef(This) \
  861. (This)->lpVtbl -> AddRef(This)
  862. #define ITfLangBarEventSink_P_Release(This) \
  863. (This)->lpVtbl -> Release(This)
  864. #define ITfLangBarEventSink_P_OnLangBarUpdate(This,uPdate,lParam) \
  865. (This)->lpVtbl -> OnLangBarUpdate(This,uPdate,lParam)
  866. #endif /* COBJMACROS */
  867. #endif /* C style interface */
  868. HRESULT STDMETHODCALLTYPE ITfLangBarEventSink_P_OnLangBarUpdate_Proxy(
  869. ITfLangBarEventSink_P * This,
  870. /* [in] */ UINT uPdate,
  871. /* [in] */ LPARAM lParam);
  872. void __RPC_STUB ITfLangBarEventSink_P_OnLangBarUpdate_Stub(
  873. IRpcStubBuffer *This,
  874. IRpcChannelBuffer *_pRpcChannelBuffer,
  875. PRPC_MESSAGE _pRpcMessage,
  876. DWORD *_pdwStubPhase);
  877. #endif /* __ITfLangBarEventSink_P_INTERFACE_DEFINED__ */
  878. #ifndef __ITfLangBarMgr_P_INTERFACE_DEFINED__
  879. #define __ITfLangBarMgr_P_INTERFACE_DEFINED__
  880. /* interface ITfLangBarMgr_P */
  881. /* [unique][uuid][object] */
  882. EXTERN_C const IID IID_ITfLangBarMgr_P;
  883. #if defined(__cplusplus) && !defined(CINTERFACE)
  884. MIDL_INTERFACE("d72c0fa9-add5-4af0-8706-4fa9ae3e2eff")
  885. ITfLangBarMgr_P : public ITfLangBarMgr
  886. {
  887. public:
  888. virtual HRESULT STDMETHODCALLTYPE GetPrevShowFloatingStatus(
  889. /* [out] */ DWORD *pdwFlags) = 0;
  890. };
  891. #else /* C style interface */
  892. typedef struct ITfLangBarMgr_PVtbl
  893. {
  894. BEGIN_INTERFACE
  895. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  896. ITfLangBarMgr_P * This,
  897. /* [in] */ REFIID riid,
  898. /* [iid_is][out] */ void **ppvObject);
  899. ULONG ( STDMETHODCALLTYPE *AddRef )(
  900. ITfLangBarMgr_P * This);
  901. ULONG ( STDMETHODCALLTYPE *Release )(
  902. ITfLangBarMgr_P * This);
  903. HRESULT ( STDMETHODCALLTYPE *AdviseEventSink )(
  904. ITfLangBarMgr_P * This,
  905. /* [in] */ ITfLangBarEventSink *pSink,
  906. /* [in] */ HWND hwnd,
  907. /* [in] */ DWORD dwFlags,
  908. /* [in] */ DWORD *pdwCookie);
  909. HRESULT ( STDMETHODCALLTYPE *UnadviseEventSink )(
  910. ITfLangBarMgr_P * This,
  911. /* [in] */ DWORD dwCookie);
  912. HRESULT ( STDMETHODCALLTYPE *GetThreadMarshalInterface )(
  913. ITfLangBarMgr_P * This,
  914. /* [in] */ DWORD dwThreadId,
  915. /* [in] */ DWORD dwType,
  916. /* [in] */ REFIID riid,
  917. /* [iid_is][out] */ IUnknown **ppunk);
  918. HRESULT ( STDMETHODCALLTYPE *GetThreadLangBarItemMgr )(
  919. ITfLangBarMgr_P * This,
  920. /* [in] */ DWORD dwThreadId,
  921. /* [out] */ ITfLangBarItemMgr **pplbi,
  922. /* [out] */ DWORD *pdwThreadid);
  923. HRESULT ( STDMETHODCALLTYPE *GetInputProcessorProfiles )(
  924. ITfLangBarMgr_P * This,
  925. /* [in] */ DWORD dwThreadId,
  926. /* [out] */ ITfInputProcessorProfiles **ppaip,
  927. /* [out] */ DWORD *pdwThreadid);
  928. HRESULT ( STDMETHODCALLTYPE *RestoreLastFocus )(
  929. ITfLangBarMgr_P * This,
  930. /* [out] */ DWORD *pdwThreadId,
  931. /* [in] */ BOOL fPrev);
  932. HRESULT ( STDMETHODCALLTYPE *SetModalInput )(
  933. ITfLangBarMgr_P * This,
  934. /* [in] */ ITfLangBarEventSink *pSink,
  935. /* [in] */ DWORD dwThreadId,
  936. /* [in] */ DWORD dwFlags);
  937. HRESULT ( STDMETHODCALLTYPE *ShowFloating )(
  938. ITfLangBarMgr_P * This,
  939. /* [in] */ DWORD dwFlags);
  940. HRESULT ( STDMETHODCALLTYPE *GetShowFloatingStatus )(
  941. ITfLangBarMgr_P * This,
  942. /* [out] */ DWORD *pdwFlags);
  943. HRESULT ( STDMETHODCALLTYPE *GetPrevShowFloatingStatus )(
  944. ITfLangBarMgr_P * This,
  945. /* [out] */ DWORD *pdwFlags);
  946. END_INTERFACE
  947. } ITfLangBarMgr_PVtbl;
  948. interface ITfLangBarMgr_P
  949. {
  950. CONST_VTBL struct ITfLangBarMgr_PVtbl *lpVtbl;
  951. };
  952. #ifdef COBJMACROS
  953. #define ITfLangBarMgr_P_QueryInterface(This,riid,ppvObject) \
  954. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  955. #define ITfLangBarMgr_P_AddRef(This) \
  956. (This)->lpVtbl -> AddRef(This)
  957. #define ITfLangBarMgr_P_Release(This) \
  958. (This)->lpVtbl -> Release(This)
  959. #define ITfLangBarMgr_P_AdviseEventSink(This,pSink,hwnd,dwFlags,pdwCookie) \
  960. (This)->lpVtbl -> AdviseEventSink(This,pSink,hwnd,dwFlags,pdwCookie)
  961. #define ITfLangBarMgr_P_UnadviseEventSink(This,dwCookie) \
  962. (This)->lpVtbl -> UnadviseEventSink(This,dwCookie)
  963. #define ITfLangBarMgr_P_GetThreadMarshalInterface(This,dwThreadId,dwType,riid,ppunk) \
  964. (This)->lpVtbl -> GetThreadMarshalInterface(This,dwThreadId,dwType,riid,ppunk)
  965. #define ITfLangBarMgr_P_GetThreadLangBarItemMgr(This,dwThreadId,pplbi,pdwThreadid) \
  966. (This)->lpVtbl -> GetThreadLangBarItemMgr(This,dwThreadId,pplbi,pdwThreadid)
  967. #define ITfLangBarMgr_P_GetInputProcessorProfiles(This,dwThreadId,ppaip,pdwThreadid) \
  968. (This)->lpVtbl -> GetInputProcessorProfiles(This,dwThreadId,ppaip,pdwThreadid)
  969. #define ITfLangBarMgr_P_RestoreLastFocus(This,pdwThreadId,fPrev) \
  970. (This)->lpVtbl -> RestoreLastFocus(This,pdwThreadId,fPrev)
  971. #define ITfLangBarMgr_P_SetModalInput(This,pSink,dwThreadId,dwFlags) \
  972. (This)->lpVtbl -> SetModalInput(This,pSink,dwThreadId,dwFlags)
  973. #define ITfLangBarMgr_P_ShowFloating(This,dwFlags) \
  974. (This)->lpVtbl -> ShowFloating(This,dwFlags)
  975. #define ITfLangBarMgr_P_GetShowFloatingStatus(This,pdwFlags) \
  976. (This)->lpVtbl -> GetShowFloatingStatus(This,pdwFlags)
  977. #define ITfLangBarMgr_P_GetPrevShowFloatingStatus(This,pdwFlags) \
  978. (This)->lpVtbl -> GetPrevShowFloatingStatus(This,pdwFlags)
  979. #endif /* COBJMACROS */
  980. #endif /* C style interface */
  981. HRESULT STDMETHODCALLTYPE ITfLangBarMgr_P_GetPrevShowFloatingStatus_Proxy(
  982. ITfLangBarMgr_P * This,
  983. /* [out] */ DWORD *pdwFlags);
  984. void __RPC_STUB ITfLangBarMgr_P_GetPrevShowFloatingStatus_Stub(
  985. IRpcStubBuffer *This,
  986. IRpcChannelBuffer *_pRpcChannelBuffer,
  987. PRPC_MESSAGE _pRpcMessage,
  988. DWORD *_pdwStubPhase);
  989. #endif /* __ITfLangBarMgr_P_INTERFACE_DEFINED__ */
  990. #ifndef __ITfContext_P_INTERFACE_DEFINED__
  991. #define __ITfContext_P_INTERFACE_DEFINED__
  992. /* interface ITfContext_P */
  993. /* [unique][uuid][object] */
  994. EXTERN_C const IID IID_ITfContext_P;
  995. #if defined(__cplusplus) && !defined(CINTERFACE)
  996. MIDL_INTERFACE("2dee47c8-704d-42a0-9983-ffeed659b64d")
  997. ITfContext_P : public ITfContext
  998. {
  999. public:
  1000. virtual HRESULT STDMETHODCALLTYPE MapAppProperty(
  1001. /* [in] */ REFGUID guidAppProp,
  1002. /* [in] */ REFGUID guidProp) = 0;
  1003. virtual HRESULT STDMETHODCALLTYPE EnableLockRequestPosting(
  1004. /* [in] */ BOOL fEnable) = 0;
  1005. };
  1006. #else /* C style interface */
  1007. typedef struct ITfContext_PVtbl
  1008. {
  1009. BEGIN_INTERFACE
  1010. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1011. ITfContext_P * This,
  1012. /* [in] */ REFIID riid,
  1013. /* [iid_is][out] */ void **ppvObject);
  1014. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1015. ITfContext_P * This);
  1016. ULONG ( STDMETHODCALLTYPE *Release )(
  1017. ITfContext_P * This);
  1018. HRESULT ( STDMETHODCALLTYPE *RequestEditSession )(
  1019. ITfContext_P * This,
  1020. /* [in] */ TfClientId tid,
  1021. /* [in] */ ITfEditSession *pes,
  1022. /* [in] */ DWORD dwFlags,
  1023. /* [out] */ HRESULT *phrSession);
  1024. HRESULT ( STDMETHODCALLTYPE *InWriteSession )(
  1025. ITfContext_P * This,
  1026. /* [in] */ TfClientId tid,
  1027. /* [out] */ BOOL *pfWriteSession);
  1028. HRESULT ( STDMETHODCALLTYPE *GetSelection )(
  1029. ITfContext_P * This,
  1030. /* [in] */ TfEditCookie ec,
  1031. /* [in] */ ULONG ulIndex,
  1032. /* [in] */ ULONG ulCount,
  1033. /* [length_is][size_is][out] */ TF_SELECTION *pSelection,
  1034. /* [out] */ ULONG *pcFetched);
  1035. HRESULT ( STDMETHODCALLTYPE *SetSelection )(
  1036. ITfContext_P * This,
  1037. /* [in] */ TfEditCookie ec,
  1038. /* [in] */ ULONG ulCount,
  1039. /* [size_is][in] */ const TF_SELECTION *pSelection);
  1040. HRESULT ( STDMETHODCALLTYPE *GetStart )(
  1041. ITfContext_P * This,
  1042. /* [in] */ TfEditCookie ec,
  1043. /* [out] */ ITfRange **ppStart);
  1044. HRESULT ( STDMETHODCALLTYPE *GetEnd )(
  1045. ITfContext_P * This,
  1046. /* [in] */ TfEditCookie ec,
  1047. /* [out] */ ITfRange **ppEnd);
  1048. HRESULT ( STDMETHODCALLTYPE *GetActiveView )(
  1049. ITfContext_P * This,
  1050. /* [out] */ ITfContextView **ppView);
  1051. HRESULT ( STDMETHODCALLTYPE *EnumViews )(
  1052. ITfContext_P * This,
  1053. /* [out] */ IEnumTfContextViews **ppEnum);
  1054. HRESULT ( STDMETHODCALLTYPE *GetStatus )(
  1055. ITfContext_P * This,
  1056. /* [out] */ TF_STATUS *pdcs);
  1057. HRESULT ( STDMETHODCALLTYPE *GetProperty )(
  1058. ITfContext_P * This,
  1059. /* [in] */ REFGUID guidProp,
  1060. /* [out] */ ITfProperty **ppProp);
  1061. HRESULT ( STDMETHODCALLTYPE *GetAppProperty )(
  1062. ITfContext_P * This,
  1063. /* [in] */ REFGUID guidProp,
  1064. /* [out] */ ITfReadOnlyProperty **ppProp);
  1065. HRESULT ( STDMETHODCALLTYPE *TrackProperties )(
  1066. ITfContext_P * This,
  1067. /* [size_is][in] */ const GUID **prgProp,
  1068. /* [in] */ ULONG cProp,
  1069. /* [size_is][in] */ const GUID **prgAppProp,
  1070. /* [in] */ ULONG cAppProp,
  1071. /* [out] */ ITfReadOnlyProperty **ppProperty);
  1072. HRESULT ( STDMETHODCALLTYPE *EnumProperties )(
  1073. ITfContext_P * This,
  1074. /* [out] */ IEnumTfProperties **ppEnum);
  1075. HRESULT ( STDMETHODCALLTYPE *GetDocumentMgr )(
  1076. ITfContext_P * This,
  1077. /* [out] */ ITfDocumentMgr **ppDm);
  1078. HRESULT ( STDMETHODCALLTYPE *CreateRangeBackup )(
  1079. ITfContext_P * This,
  1080. /* [in] */ TfEditCookie ec,
  1081. /* [in] */ ITfRange *pRange,
  1082. /* [out] */ ITfRangeBackup **ppBackup);
  1083. HRESULT ( STDMETHODCALLTYPE *MapAppProperty )(
  1084. ITfContext_P * This,
  1085. /* [in] */ REFGUID guidAppProp,
  1086. /* [in] */ REFGUID guidProp);
  1087. HRESULT ( STDMETHODCALLTYPE *EnableLockRequestPosting )(
  1088. ITfContext_P * This,
  1089. /* [in] */ BOOL fEnable);
  1090. END_INTERFACE
  1091. } ITfContext_PVtbl;
  1092. interface ITfContext_P
  1093. {
  1094. CONST_VTBL struct ITfContext_PVtbl *lpVtbl;
  1095. };
  1096. #ifdef COBJMACROS
  1097. #define ITfContext_P_QueryInterface(This,riid,ppvObject) \
  1098. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1099. #define ITfContext_P_AddRef(This) \
  1100. (This)->lpVtbl -> AddRef(This)
  1101. #define ITfContext_P_Release(This) \
  1102. (This)->lpVtbl -> Release(This)
  1103. #define ITfContext_P_RequestEditSession(This,tid,pes,dwFlags,phrSession) \
  1104. (This)->lpVtbl -> RequestEditSession(This,tid,pes,dwFlags,phrSession)
  1105. #define ITfContext_P_InWriteSession(This,tid,pfWriteSession) \
  1106. (This)->lpVtbl -> InWriteSession(This,tid,pfWriteSession)
  1107. #define ITfContext_P_GetSelection(This,ec,ulIndex,ulCount,pSelection,pcFetched) \
  1108. (This)->lpVtbl -> GetSelection(This,ec,ulIndex,ulCount,pSelection,pcFetched)
  1109. #define ITfContext_P_SetSelection(This,ec,ulCount,pSelection) \
  1110. (This)->lpVtbl -> SetSelection(This,ec,ulCount,pSelection)
  1111. #define ITfContext_P_GetStart(This,ec,ppStart) \
  1112. (This)->lpVtbl -> GetStart(This,ec,ppStart)
  1113. #define ITfContext_P_GetEnd(This,ec,ppEnd) \
  1114. (This)->lpVtbl -> GetEnd(This,ec,ppEnd)
  1115. #define ITfContext_P_GetActiveView(This,ppView) \
  1116. (This)->lpVtbl -> GetActiveView(This,ppView)
  1117. #define ITfContext_P_EnumViews(This,ppEnum) \
  1118. (This)->lpVtbl -> EnumViews(This,ppEnum)
  1119. #define ITfContext_P_GetStatus(This,pdcs) \
  1120. (This)->lpVtbl -> GetStatus(This,pdcs)
  1121. #define ITfContext_P_GetProperty(This,guidProp,ppProp) \
  1122. (This)->lpVtbl -> GetProperty(This,guidProp,ppProp)
  1123. #define ITfContext_P_GetAppProperty(This,guidProp,ppProp) \
  1124. (This)->lpVtbl -> GetAppProperty(This,guidProp,ppProp)
  1125. #define ITfContext_P_TrackProperties(This,prgProp,cProp,prgAppProp,cAppProp,ppProperty) \
  1126. (This)->lpVtbl -> TrackProperties(This,prgProp,cProp,prgAppProp,cAppProp,ppProperty)
  1127. #define ITfContext_P_EnumProperties(This,ppEnum) \
  1128. (This)->lpVtbl -> EnumProperties(This,ppEnum)
  1129. #define ITfContext_P_GetDocumentMgr(This,ppDm) \
  1130. (This)->lpVtbl -> GetDocumentMgr(This,ppDm)
  1131. #define ITfContext_P_CreateRangeBackup(This,ec,pRange,ppBackup) \
  1132. (This)->lpVtbl -> CreateRangeBackup(This,ec,pRange,ppBackup)
  1133. #define ITfContext_P_MapAppProperty(This,guidAppProp,guidProp) \
  1134. (This)->lpVtbl -> MapAppProperty(This,guidAppProp,guidProp)
  1135. #define ITfContext_P_EnableLockRequestPosting(This,fEnable) \
  1136. (This)->lpVtbl -> EnableLockRequestPosting(This,fEnable)
  1137. #endif /* COBJMACROS */
  1138. #endif /* C style interface */
  1139. HRESULT STDMETHODCALLTYPE ITfContext_P_MapAppProperty_Proxy(
  1140. ITfContext_P * This,
  1141. /* [in] */ REFGUID guidAppProp,
  1142. /* [in] */ REFGUID guidProp);
  1143. void __RPC_STUB ITfContext_P_MapAppProperty_Stub(
  1144. IRpcStubBuffer *This,
  1145. IRpcChannelBuffer *_pRpcChannelBuffer,
  1146. PRPC_MESSAGE _pRpcMessage,
  1147. DWORD *_pdwStubPhase);
  1148. HRESULT STDMETHODCALLTYPE ITfContext_P_EnableLockRequestPosting_Proxy(
  1149. ITfContext_P * This,
  1150. /* [in] */ BOOL fEnable);
  1151. void __RPC_STUB ITfContext_P_EnableLockRequestPosting_Stub(
  1152. IRpcStubBuffer *This,
  1153. IRpcChannelBuffer *_pRpcChannelBuffer,
  1154. PRPC_MESSAGE _pRpcMessage,
  1155. DWORD *_pdwStubPhase);
  1156. #endif /* __ITfContext_P_INTERFACE_DEFINED__ */
  1157. #ifndef __ITfRangeChangeSink_INTERFACE_DEFINED__
  1158. #define __ITfRangeChangeSink_INTERFACE_DEFINED__
  1159. /* interface ITfRangeChangeSink */
  1160. /* [unique][uuid][object] */
  1161. EXTERN_C const IID IID_ITfRangeChangeSink;
  1162. #if defined(__cplusplus) && !defined(CINTERFACE)
  1163. MIDL_INTERFACE("c1a0e6af-0d60-4800-9796-1fe8e85c0cca")
  1164. ITfRangeChangeSink : public IUnknown
  1165. {
  1166. public:
  1167. virtual HRESULT STDMETHODCALLTYPE OnChange(
  1168. /* [in] */ ITfRange *pRange) = 0;
  1169. };
  1170. #else /* C style interface */
  1171. typedef struct ITfRangeChangeSinkVtbl
  1172. {
  1173. BEGIN_INTERFACE
  1174. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1175. ITfRangeChangeSink * This,
  1176. /* [in] */ REFIID riid,
  1177. /* [iid_is][out] */ void **ppvObject);
  1178. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1179. ITfRangeChangeSink * This);
  1180. ULONG ( STDMETHODCALLTYPE *Release )(
  1181. ITfRangeChangeSink * This);
  1182. HRESULT ( STDMETHODCALLTYPE *OnChange )(
  1183. ITfRangeChangeSink * This,
  1184. /* [in] */ ITfRange *pRange);
  1185. END_INTERFACE
  1186. } ITfRangeChangeSinkVtbl;
  1187. interface ITfRangeChangeSink
  1188. {
  1189. CONST_VTBL struct ITfRangeChangeSinkVtbl *lpVtbl;
  1190. };
  1191. #ifdef COBJMACROS
  1192. #define ITfRangeChangeSink_QueryInterface(This,riid,ppvObject) \
  1193. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1194. #define ITfRangeChangeSink_AddRef(This) \
  1195. (This)->lpVtbl -> AddRef(This)
  1196. #define ITfRangeChangeSink_Release(This) \
  1197. (This)->lpVtbl -> Release(This)
  1198. #define ITfRangeChangeSink_OnChange(This,pRange) \
  1199. (This)->lpVtbl -> OnChange(This,pRange)
  1200. #endif /* COBJMACROS */
  1201. #endif /* C style interface */
  1202. HRESULT STDMETHODCALLTYPE ITfRangeChangeSink_OnChange_Proxy(
  1203. ITfRangeChangeSink * This,
  1204. /* [in] */ ITfRange *pRange);
  1205. void __RPC_STUB ITfRangeChangeSink_OnChange_Stub(
  1206. IRpcStubBuffer *This,
  1207. IRpcChannelBuffer *_pRpcChannelBuffer,
  1208. PRPC_MESSAGE _pRpcMessage,
  1209. DWORD *_pdwStubPhase);
  1210. #endif /* __ITfRangeChangeSink_INTERFACE_DEFINED__ */
  1211. #ifndef __ITfFnAbort_INTERFACE_DEFINED__
  1212. #define __ITfFnAbort_INTERFACE_DEFINED__
  1213. /* interface ITfFnAbort */
  1214. /* [unique][uuid][object] */
  1215. EXTERN_C const IID IID_ITfFnAbort;
  1216. #if defined(__cplusplus) && !defined(CINTERFACE)
  1217. MIDL_INTERFACE("17f2317f-addb-49df-870e-66227bc51d1a")
  1218. ITfFnAbort : public ITfFunction
  1219. {
  1220. public:
  1221. virtual HRESULT STDMETHODCALLTYPE Abort(
  1222. /* [in] */ ITfContext *pic) = 0;
  1223. };
  1224. #else /* C style interface */
  1225. typedef struct ITfFnAbortVtbl
  1226. {
  1227. BEGIN_INTERFACE
  1228. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1229. ITfFnAbort * This,
  1230. /* [in] */ REFIID riid,
  1231. /* [iid_is][out] */ void **ppvObject);
  1232. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1233. ITfFnAbort * This);
  1234. ULONG ( STDMETHODCALLTYPE *Release )(
  1235. ITfFnAbort * This);
  1236. HRESULT ( STDMETHODCALLTYPE *GetDisplayName )(
  1237. ITfFnAbort * This,
  1238. /* [out] */ BSTR *pbstrName);
  1239. HRESULT ( STDMETHODCALLTYPE *Abort )(
  1240. ITfFnAbort * This,
  1241. /* [in] */ ITfContext *pic);
  1242. END_INTERFACE
  1243. } ITfFnAbortVtbl;
  1244. interface ITfFnAbort
  1245. {
  1246. CONST_VTBL struct ITfFnAbortVtbl *lpVtbl;
  1247. };
  1248. #ifdef COBJMACROS
  1249. #define ITfFnAbort_QueryInterface(This,riid,ppvObject) \
  1250. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1251. #define ITfFnAbort_AddRef(This) \
  1252. (This)->lpVtbl -> AddRef(This)
  1253. #define ITfFnAbort_Release(This) \
  1254. (This)->lpVtbl -> Release(This)
  1255. #define ITfFnAbort_GetDisplayName(This,pbstrName) \
  1256. (This)->lpVtbl -> GetDisplayName(This,pbstrName)
  1257. #define ITfFnAbort_Abort(This,pic) \
  1258. (This)->lpVtbl -> Abort(This,pic)
  1259. #endif /* COBJMACROS */
  1260. #endif /* C style interface */
  1261. HRESULT STDMETHODCALLTYPE ITfFnAbort_Abort_Proxy(
  1262. ITfFnAbort * This,
  1263. /* [in] */ ITfContext *pic);
  1264. void __RPC_STUB ITfFnAbort_Abort_Stub(
  1265. IRpcStubBuffer *This,
  1266. IRpcChannelBuffer *_pRpcChannelBuffer,
  1267. PRPC_MESSAGE _pRpcMessage,
  1268. DWORD *_pdwStubPhase);
  1269. #endif /* __ITfFnAbort_INTERFACE_DEFINED__ */
  1270. #ifndef __ITfMouseTrackerAnchor_INTERFACE_DEFINED__
  1271. #define __ITfMouseTrackerAnchor_INTERFACE_DEFINED__
  1272. /* interface ITfMouseTrackerAnchor */
  1273. /* [unique][uuid][object] */
  1274. EXTERN_C const IID IID_ITfMouseTrackerAnchor;
  1275. #if defined(__cplusplus) && !defined(CINTERFACE)
  1276. MIDL_INTERFACE("f9f4e0f2-d600-4a4c-b144-77e201ebd1b0")
  1277. ITfMouseTrackerAnchor : public IUnknown
  1278. {
  1279. public:
  1280. virtual HRESULT STDMETHODCALLTYPE AdviseMouseSink(
  1281. /* [in] */ IAnchor *paStart,
  1282. /* [in] */ IAnchor *paEnd,
  1283. /* [in] */ ITfMouseSink *pSink,
  1284. /* [out] */ DWORD *pdwCookie) = 0;
  1285. virtual HRESULT STDMETHODCALLTYPE UnadviseMouseSink(
  1286. /* [in] */ DWORD dwCookie) = 0;
  1287. };
  1288. #else /* C style interface */
  1289. typedef struct ITfMouseTrackerAnchorVtbl
  1290. {
  1291. BEGIN_INTERFACE
  1292. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1293. ITfMouseTrackerAnchor * This,
  1294. /* [in] */ REFIID riid,
  1295. /* [iid_is][out] */ void **ppvObject);
  1296. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1297. ITfMouseTrackerAnchor * This);
  1298. ULONG ( STDMETHODCALLTYPE *Release )(
  1299. ITfMouseTrackerAnchor * This);
  1300. HRESULT ( STDMETHODCALLTYPE *AdviseMouseSink )(
  1301. ITfMouseTrackerAnchor * This,
  1302. /* [in] */ IAnchor *paStart,
  1303. /* [in] */ IAnchor *paEnd,
  1304. /* [in] */ ITfMouseSink *pSink,
  1305. /* [out] */ DWORD *pdwCookie);
  1306. HRESULT ( STDMETHODCALLTYPE *UnadviseMouseSink )(
  1307. ITfMouseTrackerAnchor * This,
  1308. /* [in] */ DWORD dwCookie);
  1309. END_INTERFACE
  1310. } ITfMouseTrackerAnchorVtbl;
  1311. interface ITfMouseTrackerAnchor
  1312. {
  1313. CONST_VTBL struct ITfMouseTrackerAnchorVtbl *lpVtbl;
  1314. };
  1315. #ifdef COBJMACROS
  1316. #define ITfMouseTrackerAnchor_QueryInterface(This,riid,ppvObject) \
  1317. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1318. #define ITfMouseTrackerAnchor_AddRef(This) \
  1319. (This)->lpVtbl -> AddRef(This)
  1320. #define ITfMouseTrackerAnchor_Release(This) \
  1321. (This)->lpVtbl -> Release(This)
  1322. #define ITfMouseTrackerAnchor_AdviseMouseSink(This,paStart,paEnd,pSink,pdwCookie) \
  1323. (This)->lpVtbl -> AdviseMouseSink(This,paStart,paEnd,pSink,pdwCookie)
  1324. #define ITfMouseTrackerAnchor_UnadviseMouseSink(This,dwCookie) \
  1325. (This)->lpVtbl -> UnadviseMouseSink(This,dwCookie)
  1326. #endif /* COBJMACROS */
  1327. #endif /* C style interface */
  1328. HRESULT STDMETHODCALLTYPE ITfMouseTrackerAnchor_AdviseMouseSink_Proxy(
  1329. ITfMouseTrackerAnchor * This,
  1330. /* [in] */ IAnchor *paStart,
  1331. /* [in] */ IAnchor *paEnd,
  1332. /* [in] */ ITfMouseSink *pSink,
  1333. /* [out] */ DWORD *pdwCookie);
  1334. void __RPC_STUB ITfMouseTrackerAnchor_AdviseMouseSink_Stub(
  1335. IRpcStubBuffer *This,
  1336. IRpcChannelBuffer *_pRpcChannelBuffer,
  1337. PRPC_MESSAGE _pRpcMessage,
  1338. DWORD *_pdwStubPhase);
  1339. HRESULT STDMETHODCALLTYPE ITfMouseTrackerAnchor_UnadviseMouseSink_Proxy(
  1340. ITfMouseTrackerAnchor * This,
  1341. /* [in] */ DWORD dwCookie);
  1342. void __RPC_STUB ITfMouseTrackerAnchor_UnadviseMouseSink_Stub(
  1343. IRpcStubBuffer *This,
  1344. IRpcChannelBuffer *_pRpcChannelBuffer,
  1345. PRPC_MESSAGE _pRpcMessage,
  1346. DWORD *_pdwStubPhase);
  1347. #endif /* __ITfMouseTrackerAnchor_INTERFACE_DEFINED__ */
  1348. #ifndef __ITfRangeAnchor_INTERFACE_DEFINED__
  1349. #define __ITfRangeAnchor_INTERFACE_DEFINED__
  1350. /* interface ITfRangeAnchor */
  1351. /* [unique][uuid][object] */
  1352. EXTERN_C const IID IID_ITfRangeAnchor;
  1353. #if defined(__cplusplus) && !defined(CINTERFACE)
  1354. MIDL_INTERFACE("8b99712b-5815-4bcc-b9a9-53db1c8d6755")
  1355. ITfRangeAnchor : public ITfRange
  1356. {
  1357. public:
  1358. virtual HRESULT STDMETHODCALLTYPE GetExtent(
  1359. /* [out] */ IAnchor **ppaStart,
  1360. /* [out] */ IAnchor **ppaEnd) = 0;
  1361. virtual HRESULT STDMETHODCALLTYPE SetExtent(
  1362. /* [in] */ IAnchor *paStart,
  1363. /* [in] */ IAnchor *paEnd) = 0;
  1364. };
  1365. #else /* C style interface */
  1366. typedef struct ITfRangeAnchorVtbl
  1367. {
  1368. BEGIN_INTERFACE
  1369. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1370. ITfRangeAnchor * This,
  1371. /* [in] */ REFIID riid,
  1372. /* [iid_is][out] */ void **ppvObject);
  1373. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1374. ITfRangeAnchor * This);
  1375. ULONG ( STDMETHODCALLTYPE *Release )(
  1376. ITfRangeAnchor * This);
  1377. HRESULT ( STDMETHODCALLTYPE *GetText )(
  1378. ITfRangeAnchor * This,
  1379. /* [in] */ TfEditCookie ec,
  1380. /* [in] */ DWORD dwFlags,
  1381. /* [length_is][size_is][out] */ WCHAR *pchText,
  1382. /* [in] */ ULONG cchMax,
  1383. /* [out] */ ULONG *pcch);
  1384. HRESULT ( STDMETHODCALLTYPE *SetText )(
  1385. ITfRangeAnchor * This,
  1386. /* [in] */ TfEditCookie ec,
  1387. /* [in] */ DWORD dwFlags,
  1388. /* [unique][size_is][in] */ const WCHAR *pchText,
  1389. /* [in] */ LONG cch);
  1390. HRESULT ( STDMETHODCALLTYPE *GetFormattedText )(
  1391. ITfRangeAnchor * This,
  1392. /* [in] */ TfEditCookie ec,
  1393. /* [out] */ IDataObject **ppDataObject);
  1394. HRESULT ( STDMETHODCALLTYPE *GetEmbedded )(
  1395. ITfRangeAnchor * This,
  1396. /* [in] */ TfEditCookie ec,
  1397. /* [in] */ REFGUID rguidService,
  1398. /* [in] */ REFIID riid,
  1399. /* [iid_is][out] */ IUnknown **ppunk);
  1400. HRESULT ( STDMETHODCALLTYPE *InsertEmbedded )(
  1401. ITfRangeAnchor * This,
  1402. /* [in] */ TfEditCookie ec,
  1403. /* [in] */ DWORD dwFlags,
  1404. /* [in] */ IDataObject *pDataObject);
  1405. HRESULT ( STDMETHODCALLTYPE *ShiftStart )(
  1406. ITfRangeAnchor * This,
  1407. /* [in] */ TfEditCookie ec,
  1408. /* [in] */ LONG cchReq,
  1409. /* [out] */ LONG *pcch,
  1410. /* [unique][in] */ const TF_HALTCOND *pHalt);
  1411. HRESULT ( STDMETHODCALLTYPE *ShiftEnd )(
  1412. ITfRangeAnchor * This,
  1413. /* [in] */ TfEditCookie ec,
  1414. /* [in] */ LONG cchReq,
  1415. /* [out] */ LONG *pcch,
  1416. /* [unique][in] */ const TF_HALTCOND *pHalt);
  1417. HRESULT ( STDMETHODCALLTYPE *ShiftStartToRange )(
  1418. ITfRangeAnchor * This,
  1419. /* [in] */ TfEditCookie ec,
  1420. /* [in] */ ITfRange *pRange,
  1421. /* [in] */ TfAnchor aPos);
  1422. HRESULT ( STDMETHODCALLTYPE *ShiftEndToRange )(
  1423. ITfRangeAnchor * This,
  1424. /* [in] */ TfEditCookie ec,
  1425. /* [in] */ ITfRange *pRange,
  1426. /* [in] */ TfAnchor aPos);
  1427. HRESULT ( STDMETHODCALLTYPE *ShiftStartRegion )(
  1428. ITfRangeAnchor * This,
  1429. /* [in] */ TfEditCookie ec,
  1430. /* [in] */ TfShiftDir dir,
  1431. /* [out] */ BOOL *pfNoRegion);
  1432. HRESULT ( STDMETHODCALLTYPE *ShiftEndRegion )(
  1433. ITfRangeAnchor * This,
  1434. /* [in] */ TfEditCookie ec,
  1435. /* [in] */ TfShiftDir dir,
  1436. /* [out] */ BOOL *pfNoRegion);
  1437. HRESULT ( STDMETHODCALLTYPE *IsEmpty )(
  1438. ITfRangeAnchor * This,
  1439. /* [in] */ TfEditCookie ec,
  1440. /* [out] */ BOOL *pfEmpty);
  1441. HRESULT ( STDMETHODCALLTYPE *Collapse )(
  1442. ITfRangeAnchor * This,
  1443. /* [in] */ TfEditCookie ec,
  1444. /* [in] */ TfAnchor aPos);
  1445. HRESULT ( STDMETHODCALLTYPE *IsEqualStart )(
  1446. ITfRangeAnchor * This,
  1447. /* [in] */ TfEditCookie ec,
  1448. /* [in] */ ITfRange *pWith,
  1449. /* [in] */ TfAnchor aPos,
  1450. /* [out] */ BOOL *pfEqual);
  1451. HRESULT ( STDMETHODCALLTYPE *IsEqualEnd )(
  1452. ITfRangeAnchor * This,
  1453. /* [in] */ TfEditCookie ec,
  1454. /* [in] */ ITfRange *pWith,
  1455. /* [in] */ TfAnchor aPos,
  1456. /* [out] */ BOOL *pfEqual);
  1457. HRESULT ( STDMETHODCALLTYPE *CompareStart )(
  1458. ITfRangeAnchor * This,
  1459. /* [in] */ TfEditCookie ec,
  1460. /* [in] */ ITfRange *pWith,
  1461. /* [in] */ TfAnchor aPos,
  1462. /* [out] */ LONG *plResult);
  1463. HRESULT ( STDMETHODCALLTYPE *CompareEnd )(
  1464. ITfRangeAnchor * This,
  1465. /* [in] */ TfEditCookie ec,
  1466. /* [in] */ ITfRange *pWith,
  1467. /* [in] */ TfAnchor aPos,
  1468. /* [out] */ LONG *plResult);
  1469. HRESULT ( STDMETHODCALLTYPE *AdjustForInsert )(
  1470. ITfRangeAnchor * This,
  1471. /* [in] */ TfEditCookie ec,
  1472. /* [in] */ ULONG cchInsert,
  1473. /* [out] */ BOOL *pfInsertOk);
  1474. HRESULT ( STDMETHODCALLTYPE *GetGravity )(
  1475. ITfRangeAnchor * This,
  1476. /* [out] */ TfGravity *pgStart,
  1477. /* [out] */ TfGravity *pgEnd);
  1478. HRESULT ( STDMETHODCALLTYPE *SetGravity )(
  1479. ITfRangeAnchor * This,
  1480. /* [in] */ TfEditCookie ec,
  1481. /* [in] */ TfGravity gStart,
  1482. /* [in] */ TfGravity gEnd);
  1483. HRESULT ( STDMETHODCALLTYPE *Clone )(
  1484. ITfRangeAnchor * This,
  1485. /* [out] */ ITfRange **ppClone);
  1486. HRESULT ( STDMETHODCALLTYPE *GetContext )(
  1487. ITfRangeAnchor * This,
  1488. /* [out] */ ITfContext **ppContext);
  1489. HRESULT ( STDMETHODCALLTYPE *GetExtent )(
  1490. ITfRangeAnchor * This,
  1491. /* [out] */ IAnchor **ppaStart,
  1492. /* [out] */ IAnchor **ppaEnd);
  1493. HRESULT ( STDMETHODCALLTYPE *SetExtent )(
  1494. ITfRangeAnchor * This,
  1495. /* [in] */ IAnchor *paStart,
  1496. /* [in] */ IAnchor *paEnd);
  1497. END_INTERFACE
  1498. } ITfRangeAnchorVtbl;
  1499. interface ITfRangeAnchor
  1500. {
  1501. CONST_VTBL struct ITfRangeAnchorVtbl *lpVtbl;
  1502. };
  1503. #ifdef COBJMACROS
  1504. #define ITfRangeAnchor_QueryInterface(This,riid,ppvObject) \
  1505. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1506. #define ITfRangeAnchor_AddRef(This) \
  1507. (This)->lpVtbl -> AddRef(This)
  1508. #define ITfRangeAnchor_Release(This) \
  1509. (This)->lpVtbl -> Release(This)
  1510. #define ITfRangeAnchor_GetText(This,ec,dwFlags,pchText,cchMax,pcch) \
  1511. (This)->lpVtbl -> GetText(This,ec,dwFlags,pchText,cchMax,pcch)
  1512. #define ITfRangeAnchor_SetText(This,ec,dwFlags,pchText,cch) \
  1513. (This)->lpVtbl -> SetText(This,ec,dwFlags,pchText,cch)
  1514. #define ITfRangeAnchor_GetFormattedText(This,ec,ppDataObject) \
  1515. (This)->lpVtbl -> GetFormattedText(This,ec,ppDataObject)
  1516. #define ITfRangeAnchor_GetEmbedded(This,ec,rguidService,riid,ppunk) \
  1517. (This)->lpVtbl -> GetEmbedded(This,ec,rguidService,riid,ppunk)
  1518. #define ITfRangeAnchor_InsertEmbedded(This,ec,dwFlags,pDataObject) \
  1519. (This)->lpVtbl -> InsertEmbedded(This,ec,dwFlags,pDataObject)
  1520. #define ITfRangeAnchor_ShiftStart(This,ec,cchReq,pcch,pHalt) \
  1521. (This)->lpVtbl -> ShiftStart(This,ec,cchReq,pcch,pHalt)
  1522. #define ITfRangeAnchor_ShiftEnd(This,ec,cchReq,pcch,pHalt) \
  1523. (This)->lpVtbl -> ShiftEnd(This,ec,cchReq,pcch,pHalt)
  1524. #define ITfRangeAnchor_ShiftStartToRange(This,ec,pRange,aPos) \
  1525. (This)->lpVtbl -> ShiftStartToRange(This,ec,pRange,aPos)
  1526. #define ITfRangeAnchor_ShiftEndToRange(This,ec,pRange,aPos) \
  1527. (This)->lpVtbl -> ShiftEndToRange(This,ec,pRange,aPos)
  1528. #define ITfRangeAnchor_ShiftStartRegion(This,ec,dir,pfNoRegion) \
  1529. (This)->lpVtbl -> ShiftStartRegion(This,ec,dir,pfNoRegion)
  1530. #define ITfRangeAnchor_ShiftEndRegion(This,ec,dir,pfNoRegion) \
  1531. (This)->lpVtbl -> ShiftEndRegion(This,ec,dir,pfNoRegion)
  1532. #define ITfRangeAnchor_IsEmpty(This,ec,pfEmpty) \
  1533. (This)->lpVtbl -> IsEmpty(This,ec,pfEmpty)
  1534. #define ITfRangeAnchor_Collapse(This,ec,aPos) \
  1535. (This)->lpVtbl -> Collapse(This,ec,aPos)
  1536. #define ITfRangeAnchor_IsEqualStart(This,ec,pWith,aPos,pfEqual) \
  1537. (This)->lpVtbl -> IsEqualStart(This,ec,pWith,aPos,pfEqual)
  1538. #define ITfRangeAnchor_IsEqualEnd(This,ec,pWith,aPos,pfEqual) \
  1539. (This)->lpVtbl -> IsEqualEnd(This,ec,pWith,aPos,pfEqual)
  1540. #define ITfRangeAnchor_CompareStart(This,ec,pWith,aPos,plResult) \
  1541. (This)->lpVtbl -> CompareStart(This,ec,pWith,aPos,plResult)
  1542. #define ITfRangeAnchor_CompareEnd(This,ec,pWith,aPos,plResult) \
  1543. (This)->lpVtbl -> CompareEnd(This,ec,pWith,aPos,plResult)
  1544. #define ITfRangeAnchor_AdjustForInsert(This,ec,cchInsert,pfInsertOk) \
  1545. (This)->lpVtbl -> AdjustForInsert(This,ec,cchInsert,pfInsertOk)
  1546. #define ITfRangeAnchor_GetGravity(This,pgStart,pgEnd) \
  1547. (This)->lpVtbl -> GetGravity(This,pgStart,pgEnd)
  1548. #define ITfRangeAnchor_SetGravity(This,ec,gStart,gEnd) \
  1549. (This)->lpVtbl -> SetGravity(This,ec,gStart,gEnd)
  1550. #define ITfRangeAnchor_Clone(This,ppClone) \
  1551. (This)->lpVtbl -> Clone(This,ppClone)
  1552. #define ITfRangeAnchor_GetContext(This,ppContext) \
  1553. (This)->lpVtbl -> GetContext(This,ppContext)
  1554. #define ITfRangeAnchor_GetExtent(This,ppaStart,ppaEnd) \
  1555. (This)->lpVtbl -> GetExtent(This,ppaStart,ppaEnd)
  1556. #define ITfRangeAnchor_SetExtent(This,paStart,paEnd) \
  1557. (This)->lpVtbl -> SetExtent(This,paStart,paEnd)
  1558. #endif /* COBJMACROS */
  1559. #endif /* C style interface */
  1560. HRESULT STDMETHODCALLTYPE ITfRangeAnchor_GetExtent_Proxy(
  1561. ITfRangeAnchor * This,
  1562. /* [out] */ IAnchor **ppaStart,
  1563. /* [out] */ IAnchor **ppaEnd);
  1564. void __RPC_STUB ITfRangeAnchor_GetExtent_Stub(
  1565. IRpcStubBuffer *This,
  1566. IRpcChannelBuffer *_pRpcChannelBuffer,
  1567. PRPC_MESSAGE _pRpcMessage,
  1568. DWORD *_pdwStubPhase);
  1569. HRESULT STDMETHODCALLTYPE ITfRangeAnchor_SetExtent_Proxy(
  1570. ITfRangeAnchor * This,
  1571. /* [in] */ IAnchor *paStart,
  1572. /* [in] */ IAnchor *paEnd);
  1573. void __RPC_STUB ITfRangeAnchor_SetExtent_Stub(
  1574. IRpcStubBuffer *This,
  1575. IRpcChannelBuffer *_pRpcChannelBuffer,
  1576. PRPC_MESSAGE _pRpcMessage,
  1577. DWORD *_pdwStubPhase);
  1578. #endif /* __ITfRangeAnchor_INTERFACE_DEFINED__ */
  1579. /* interface __MIDL_itf_msctfp_0230 */
  1580. /* [local] */
  1581. typedef /* [uuid] */ DECLSPEC_UUID("af9f076f-4937-4285-8600-81dca5c31eb6") struct TF_PERSISTENT_PROPERTY_HEADER_ANCHOR
  1582. {
  1583. GUID guidType;
  1584. IAnchor *paStart;
  1585. IAnchor *paEnd;
  1586. ULONG cb;
  1587. DWORD dwPrivate;
  1588. CLSID clsidTIP;
  1589. } TF_PERSISTENT_PROPERTY_HEADER_ANCHOR;
  1590. extern RPC_IF_HANDLE __MIDL_itf_msctfp_0230_v0_0_c_ifspec;
  1591. extern RPC_IF_HANDLE __MIDL_itf_msctfp_0230_v0_0_s_ifspec;
  1592. #ifndef __ITfPersistentPropertyLoaderAnchor_INTERFACE_DEFINED__
  1593. #define __ITfPersistentPropertyLoaderAnchor_INTERFACE_DEFINED__
  1594. /* interface ITfPersistentPropertyLoaderAnchor */
  1595. /* [unique][uuid][object] */
  1596. EXTERN_C const IID IID_ITfPersistentPropertyLoaderAnchor;
  1597. #if defined(__cplusplus) && !defined(CINTERFACE)
  1598. MIDL_INTERFACE("2133f790-34c2-11d3-a745-0050040ab407")
  1599. ITfPersistentPropertyLoaderAnchor : public IUnknown
  1600. {
  1601. public:
  1602. virtual HRESULT STDMETHODCALLTYPE LoadProperty(
  1603. /* [in] */ const TF_PERSISTENT_PROPERTY_HEADER_ANCHOR *pHdr,
  1604. /* [out] */ IStream **ppStream) = 0;
  1605. };
  1606. #else /* C style interface */
  1607. typedef struct ITfPersistentPropertyLoaderAnchorVtbl
  1608. {
  1609. BEGIN_INTERFACE
  1610. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1611. ITfPersistentPropertyLoaderAnchor * This,
  1612. /* [in] */ REFIID riid,
  1613. /* [iid_is][out] */ void **ppvObject);
  1614. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1615. ITfPersistentPropertyLoaderAnchor * This);
  1616. ULONG ( STDMETHODCALLTYPE *Release )(
  1617. ITfPersistentPropertyLoaderAnchor * This);
  1618. HRESULT ( STDMETHODCALLTYPE *LoadProperty )(
  1619. ITfPersistentPropertyLoaderAnchor * This,
  1620. /* [in] */ const TF_PERSISTENT_PROPERTY_HEADER_ANCHOR *pHdr,
  1621. /* [out] */ IStream **ppStream);
  1622. END_INTERFACE
  1623. } ITfPersistentPropertyLoaderAnchorVtbl;
  1624. interface ITfPersistentPropertyLoaderAnchor
  1625. {
  1626. CONST_VTBL struct ITfPersistentPropertyLoaderAnchorVtbl *lpVtbl;
  1627. };
  1628. #ifdef COBJMACROS
  1629. #define ITfPersistentPropertyLoaderAnchor_QueryInterface(This,riid,ppvObject) \
  1630. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1631. #define ITfPersistentPropertyLoaderAnchor_AddRef(This) \
  1632. (This)->lpVtbl -> AddRef(This)
  1633. #define ITfPersistentPropertyLoaderAnchor_Release(This) \
  1634. (This)->lpVtbl -> Release(This)
  1635. #define ITfPersistentPropertyLoaderAnchor_LoadProperty(This,pHdr,ppStream) \
  1636. (This)->lpVtbl -> LoadProperty(This,pHdr,ppStream)
  1637. #endif /* COBJMACROS */
  1638. #endif /* C style interface */
  1639. HRESULT STDMETHODCALLTYPE ITfPersistentPropertyLoaderAnchor_LoadProperty_Proxy(
  1640. ITfPersistentPropertyLoaderAnchor * This,
  1641. /* [in] */ const TF_PERSISTENT_PROPERTY_HEADER_ANCHOR *pHdr,
  1642. /* [out] */ IStream **ppStream);
  1643. void __RPC_STUB ITfPersistentPropertyLoaderAnchor_LoadProperty_Stub(
  1644. IRpcStubBuffer *This,
  1645. IRpcChannelBuffer *_pRpcChannelBuffer,
  1646. PRPC_MESSAGE _pRpcMessage,
  1647. DWORD *_pdwStubPhase);
  1648. #endif /* __ITfPersistentPropertyLoaderAnchor_INTERFACE_DEFINED__ */
  1649. #ifndef __ITextStoreAnchorServices_INTERFACE_DEFINED__
  1650. #define __ITextStoreAnchorServices_INTERFACE_DEFINED__
  1651. /* interface ITextStoreAnchorServices */
  1652. /* [unique][uuid][object] */
  1653. EXTERN_C const IID IID_ITextStoreAnchorServices;
  1654. #if defined(__cplusplus) && !defined(CINTERFACE)
  1655. MIDL_INTERFACE("aa80e9fe-2021-11d2-93e0-0060b067b86e")
  1656. ITextStoreAnchorServices : public IUnknown
  1657. {
  1658. public:
  1659. virtual HRESULT STDMETHODCALLTYPE Serialize(
  1660. /* [in] */ ITfProperty *pProp,
  1661. /* [in] */ ITfRange *pRange,
  1662. /* [out] */ TF_PERSISTENT_PROPERTY_HEADER_ANCHOR *pHdr,
  1663. /* [in] */ IStream *pStream) = 0;
  1664. virtual HRESULT STDMETHODCALLTYPE Unserialize(
  1665. /* [in] */ ITfProperty *pProp,
  1666. /* [in] */ const TF_PERSISTENT_PROPERTY_HEADER_ANCHOR *pHdr,
  1667. /* [in] */ IStream *pStream,
  1668. /* [in] */ ITfPersistentPropertyLoaderAnchor *pLoader) = 0;
  1669. virtual HRESULT STDMETHODCALLTYPE ForceLoadProperty(
  1670. /* [in] */ ITfProperty *pProp) = 0;
  1671. virtual HRESULT STDMETHODCALLTYPE CreateRange(
  1672. /* [in] */ IAnchor *paStart,
  1673. /* [in] */ IAnchor *paEnd,
  1674. /* [out] */ ITfRangeAnchor **ppRange) = 0;
  1675. };
  1676. #else /* C style interface */
  1677. typedef struct ITextStoreAnchorServicesVtbl
  1678. {
  1679. BEGIN_INTERFACE
  1680. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1681. ITextStoreAnchorServices * This,
  1682. /* [in] */ REFIID riid,
  1683. /* [iid_is][out] */ void **ppvObject);
  1684. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1685. ITextStoreAnchorServices * This);
  1686. ULONG ( STDMETHODCALLTYPE *Release )(
  1687. ITextStoreAnchorServices * This);
  1688. HRESULT ( STDMETHODCALLTYPE *Serialize )(
  1689. ITextStoreAnchorServices * This,
  1690. /* [in] */ ITfProperty *pProp,
  1691. /* [in] */ ITfRange *pRange,
  1692. /* [out] */ TF_PERSISTENT_PROPERTY_HEADER_ANCHOR *pHdr,
  1693. /* [in] */ IStream *pStream);
  1694. HRESULT ( STDMETHODCALLTYPE *Unserialize )(
  1695. ITextStoreAnchorServices * This,
  1696. /* [in] */ ITfProperty *pProp,
  1697. /* [in] */ const TF_PERSISTENT_PROPERTY_HEADER_ANCHOR *pHdr,
  1698. /* [in] */ IStream *pStream,
  1699. /* [in] */ ITfPersistentPropertyLoaderAnchor *pLoader);
  1700. HRESULT ( STDMETHODCALLTYPE *ForceLoadProperty )(
  1701. ITextStoreAnchorServices * This,
  1702. /* [in] */ ITfProperty *pProp);
  1703. HRESULT ( STDMETHODCALLTYPE *CreateRange )(
  1704. ITextStoreAnchorServices * This,
  1705. /* [in] */ IAnchor *paStart,
  1706. /* [in] */ IAnchor *paEnd,
  1707. /* [out] */ ITfRangeAnchor **ppRange);
  1708. END_INTERFACE
  1709. } ITextStoreAnchorServicesVtbl;
  1710. interface ITextStoreAnchorServices
  1711. {
  1712. CONST_VTBL struct ITextStoreAnchorServicesVtbl *lpVtbl;
  1713. };
  1714. #ifdef COBJMACROS
  1715. #define ITextStoreAnchorServices_QueryInterface(This,riid,ppvObject) \
  1716. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1717. #define ITextStoreAnchorServices_AddRef(This) \
  1718. (This)->lpVtbl -> AddRef(This)
  1719. #define ITextStoreAnchorServices_Release(This) \
  1720. (This)->lpVtbl -> Release(This)
  1721. #define ITextStoreAnchorServices_Serialize(This,pProp,pRange,pHdr,pStream) \
  1722. (This)->lpVtbl -> Serialize(This,pProp,pRange,pHdr,pStream)
  1723. #define ITextStoreAnchorServices_Unserialize(This,pProp,pHdr,pStream,pLoader) \
  1724. (This)->lpVtbl -> Unserialize(This,pProp,pHdr,pStream,pLoader)
  1725. #define ITextStoreAnchorServices_ForceLoadProperty(This,pProp) \
  1726. (This)->lpVtbl -> ForceLoadProperty(This,pProp)
  1727. #define ITextStoreAnchorServices_CreateRange(This,paStart,paEnd,ppRange) \
  1728. (This)->lpVtbl -> CreateRange(This,paStart,paEnd,ppRange)
  1729. #endif /* COBJMACROS */
  1730. #endif /* C style interface */
  1731. HRESULT STDMETHODCALLTYPE ITextStoreAnchorServices_Serialize_Proxy(
  1732. ITextStoreAnchorServices * This,
  1733. /* [in] */ ITfProperty *pProp,
  1734. /* [in] */ ITfRange *pRange,
  1735. /* [out] */ TF_PERSISTENT_PROPERTY_HEADER_ANCHOR *pHdr,
  1736. /* [in] */ IStream *pStream);
  1737. void __RPC_STUB ITextStoreAnchorServices_Serialize_Stub(
  1738. IRpcStubBuffer *This,
  1739. IRpcChannelBuffer *_pRpcChannelBuffer,
  1740. PRPC_MESSAGE _pRpcMessage,
  1741. DWORD *_pdwStubPhase);
  1742. HRESULT STDMETHODCALLTYPE ITextStoreAnchorServices_Unserialize_Proxy(
  1743. ITextStoreAnchorServices * This,
  1744. /* [in] */ ITfProperty *pProp,
  1745. /* [in] */ const TF_PERSISTENT_PROPERTY_HEADER_ANCHOR *pHdr,
  1746. /* [in] */ IStream *pStream,
  1747. /* [in] */ ITfPersistentPropertyLoaderAnchor *pLoader);
  1748. void __RPC_STUB ITextStoreAnchorServices_Unserialize_Stub(
  1749. IRpcStubBuffer *This,
  1750. IRpcChannelBuffer *_pRpcChannelBuffer,
  1751. PRPC_MESSAGE _pRpcMessage,
  1752. DWORD *_pdwStubPhase);
  1753. HRESULT STDMETHODCALLTYPE ITextStoreAnchorServices_ForceLoadProperty_Proxy(
  1754. ITextStoreAnchorServices * This,
  1755. /* [in] */ ITfProperty *pProp);
  1756. void __RPC_STUB ITextStoreAnchorServices_ForceLoadProperty_Stub(
  1757. IRpcStubBuffer *This,
  1758. IRpcChannelBuffer *_pRpcChannelBuffer,
  1759. PRPC_MESSAGE _pRpcMessage,
  1760. DWORD *_pdwStubPhase);
  1761. HRESULT STDMETHODCALLTYPE ITextStoreAnchorServices_CreateRange_Proxy(
  1762. ITextStoreAnchorServices * This,
  1763. /* [in] */ IAnchor *paStart,
  1764. /* [in] */ IAnchor *paEnd,
  1765. /* [out] */ ITfRangeAnchor **ppRange);
  1766. void __RPC_STUB ITextStoreAnchorServices_CreateRange_Stub(
  1767. IRpcStubBuffer *This,
  1768. IRpcChannelBuffer *_pRpcChannelBuffer,
  1769. PRPC_MESSAGE _pRpcMessage,
  1770. DWORD *_pdwStubPhase);
  1771. #endif /* __ITextStoreAnchorServices_INTERFACE_DEFINED__ */
  1772. #ifndef __ITfProperty2_INTERFACE_DEFINED__
  1773. #define __ITfProperty2_INTERFACE_DEFINED__
  1774. /* interface ITfProperty2 */
  1775. /* [unique][uuid][object] */
  1776. #define TF_FNV_BACKWARD ( 0x1 )
  1777. #define TF_FNV_NO_CONTAINED ( 0x2 )
  1778. EXTERN_C const IID IID_ITfProperty2;
  1779. #if defined(__cplusplus) && !defined(CINTERFACE)
  1780. MIDL_INTERFACE("db261faa-2142-486a-b5c6-d2101bc03d2e")
  1781. ITfProperty2 : public ITfProperty
  1782. {
  1783. public:
  1784. virtual HRESULT STDMETHODCALLTYPE FindNextValue(
  1785. /* [in] */ TfEditCookie ec,
  1786. /* [in] */ ITfRange *pRangeQuery,
  1787. /* [in] */ TfAnchor tfAnchorQuery,
  1788. /* [in] */ DWORD dwFlags,
  1789. /* [out] */ BOOL *pfContained,
  1790. /* [out] */ ITfRange **ppRangeNextValue) = 0;
  1791. };
  1792. #else /* C style interface */
  1793. typedef struct ITfProperty2Vtbl
  1794. {
  1795. BEGIN_INTERFACE
  1796. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1797. ITfProperty2 * This,
  1798. /* [in] */ REFIID riid,
  1799. /* [iid_is][out] */ void **ppvObject);
  1800. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1801. ITfProperty2 * This);
  1802. ULONG ( STDMETHODCALLTYPE *Release )(
  1803. ITfProperty2 * This);
  1804. HRESULT ( STDMETHODCALLTYPE *GetType )(
  1805. ITfProperty2 * This,
  1806. /* [out] */ GUID *pguid);
  1807. HRESULT ( STDMETHODCALLTYPE *EnumRanges )(
  1808. ITfProperty2 * This,
  1809. /* [in] */ TfEditCookie ec,
  1810. /* [out] */ IEnumTfRanges **ppEnum,
  1811. /* [in] */ ITfRange *pTargetRange);
  1812. HRESULT ( STDMETHODCALLTYPE *GetValue )(
  1813. ITfProperty2 * This,
  1814. /* [in] */ TfEditCookie ec,
  1815. /* [in] */ ITfRange *pRange,
  1816. /* [out] */ VARIANT *pvarValue);
  1817. HRESULT ( STDMETHODCALLTYPE *GetContext )(
  1818. ITfProperty2 * This,
  1819. /* [out] */ ITfContext **ppContext);
  1820. HRESULT ( STDMETHODCALLTYPE *FindRange )(
  1821. ITfProperty2 * This,
  1822. /* [in] */ TfEditCookie ec,
  1823. /* [in] */ ITfRange *pRange,
  1824. /* [out] */ ITfRange **ppRange,
  1825. /* [in] */ TfAnchor aPos);
  1826. HRESULT ( STDMETHODCALLTYPE *SetValueStore )(
  1827. ITfProperty2 * This,
  1828. /* [in] */ TfEditCookie ec,
  1829. /* [in] */ ITfRange *pRange,
  1830. /* [in] */ ITfPropertyStore *pPropStore);
  1831. HRESULT ( STDMETHODCALLTYPE *SetValue )(
  1832. ITfProperty2 * This,
  1833. /* [in] */ TfEditCookie ec,
  1834. /* [in] */ ITfRange *pRange,
  1835. /* [in] */ const VARIANT *pvarValue);
  1836. HRESULT ( STDMETHODCALLTYPE *Clear )(
  1837. ITfProperty2 * This,
  1838. /* [in] */ TfEditCookie ec,
  1839. /* [in] */ ITfRange *pRange);
  1840. HRESULT ( STDMETHODCALLTYPE *FindNextValue )(
  1841. ITfProperty2 * This,
  1842. /* [in] */ TfEditCookie ec,
  1843. /* [in] */ ITfRange *pRangeQuery,
  1844. /* [in] */ TfAnchor tfAnchorQuery,
  1845. /* [in] */ DWORD dwFlags,
  1846. /* [out] */ BOOL *pfContained,
  1847. /* [out] */ ITfRange **ppRangeNextValue);
  1848. END_INTERFACE
  1849. } ITfProperty2Vtbl;
  1850. interface ITfProperty2
  1851. {
  1852. CONST_VTBL struct ITfProperty2Vtbl *lpVtbl;
  1853. };
  1854. #ifdef COBJMACROS
  1855. #define ITfProperty2_QueryInterface(This,riid,ppvObject) \
  1856. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1857. #define ITfProperty2_AddRef(This) \
  1858. (This)->lpVtbl -> AddRef(This)
  1859. #define ITfProperty2_Release(This) \
  1860. (This)->lpVtbl -> Release(This)
  1861. #define ITfProperty2_GetType(This,pguid) \
  1862. (This)->lpVtbl -> GetType(This,pguid)
  1863. #define ITfProperty2_EnumRanges(This,ec,ppEnum,pTargetRange) \
  1864. (This)->lpVtbl -> EnumRanges(This,ec,ppEnum,pTargetRange)
  1865. #define ITfProperty2_GetValue(This,ec,pRange,pvarValue) \
  1866. (This)->lpVtbl -> GetValue(This,ec,pRange,pvarValue)
  1867. #define ITfProperty2_GetContext(This,ppContext) \
  1868. (This)->lpVtbl -> GetContext(This,ppContext)
  1869. #define ITfProperty2_FindRange(This,ec,pRange,ppRange,aPos) \
  1870. (This)->lpVtbl -> FindRange(This,ec,pRange,ppRange,aPos)
  1871. #define ITfProperty2_SetValueStore(This,ec,pRange,pPropStore) \
  1872. (This)->lpVtbl -> SetValueStore(This,ec,pRange,pPropStore)
  1873. #define ITfProperty2_SetValue(This,ec,pRange,pvarValue) \
  1874. (This)->lpVtbl -> SetValue(This,ec,pRange,pvarValue)
  1875. #define ITfProperty2_Clear(This,ec,pRange) \
  1876. (This)->lpVtbl -> Clear(This,ec,pRange)
  1877. #define ITfProperty2_FindNextValue(This,ec,pRangeQuery,tfAnchorQuery,dwFlags,pfContained,ppRangeNextValue) \
  1878. (This)->lpVtbl -> FindNextValue(This,ec,pRangeQuery,tfAnchorQuery,dwFlags,pfContained,ppRangeNextValue)
  1879. #endif /* COBJMACROS */
  1880. #endif /* C style interface */
  1881. HRESULT STDMETHODCALLTYPE ITfProperty2_FindNextValue_Proxy(
  1882. ITfProperty2 * This,
  1883. /* [in] */ TfEditCookie ec,
  1884. /* [in] */ ITfRange *pRangeQuery,
  1885. /* [in] */ TfAnchor tfAnchorQuery,
  1886. /* [in] */ DWORD dwFlags,
  1887. /* [out] */ BOOL *pfContained,
  1888. /* [out] */ ITfRange **ppRangeNextValue);
  1889. void __RPC_STUB ITfProperty2_FindNextValue_Stub(
  1890. IRpcStubBuffer *This,
  1891. IRpcChannelBuffer *_pRpcChannelBuffer,
  1892. PRPC_MESSAGE _pRpcMessage,
  1893. DWORD *_pdwStubPhase);
  1894. #endif /* __ITfProperty2_INTERFACE_DEFINED__ */
  1895. /* interface __MIDL_itf_msctfp_0233 */
  1896. /* [local] */
  1897. #define TF_DA_PRIORITY_HIGHEST ( 0 )
  1898. #define TF_DA_PRIORITY_DEFAULT_SPELLING ( 8 )
  1899. #define TF_DA_PRIORITY_DEFAULT_GRAMMAR ( 16 )
  1900. #define TF_DA_PRIORITY_DEFAULT ( 24 )
  1901. #define TF_DA_PRIORITY_LOWEST ( 31 )
  1902. typedef /* [public][public][public] */ struct __MIDL___MIDL_itf_msctfp_0233_0001
  1903. {
  1904. ULONG uPriority;
  1905. GUID guidProperty;
  1906. } TF_DA_PROPERTY;
  1907. extern RPC_IF_HANDLE __MIDL_itf_msctfp_0233_v0_0_c_ifspec;
  1908. extern RPC_IF_HANDLE __MIDL_itf_msctfp_0233_v0_0_s_ifspec;
  1909. #ifndef __IEnumTfCollection_INTERFACE_DEFINED__
  1910. #define __IEnumTfCollection_INTERFACE_DEFINED__
  1911. /* interface IEnumTfCollection */
  1912. /* [unique][uuid][object] */
  1913. EXTERN_C const IID IID_IEnumTfCollection;
  1914. #if defined(__cplusplus) && !defined(CINTERFACE)
  1915. MIDL_INTERFACE("1c760b20-ed66-4dbd-9ff1-68fc21c02922")
  1916. IEnumTfCollection : public IUnknown
  1917. {
  1918. public:
  1919. virtual HRESULT STDMETHODCALLTYPE Clone(
  1920. /* [out] */ IEnumTfCollection **ppClone) = 0;
  1921. virtual HRESULT STDMETHODCALLTYPE Next(
  1922. /* [in] */ ULONG ulCount,
  1923. /* [length_is][size_is][out] */ TF_DA_PROPERTY *rgCollection,
  1924. /* [out] */ ULONG *pcFetched) = 0;
  1925. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  1926. virtual HRESULT STDMETHODCALLTYPE Skip(
  1927. /* [in] */ ULONG ulCount) = 0;
  1928. };
  1929. #else /* C style interface */
  1930. typedef struct IEnumTfCollectionVtbl
  1931. {
  1932. BEGIN_INTERFACE
  1933. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1934. IEnumTfCollection * This,
  1935. /* [in] */ REFIID riid,
  1936. /* [iid_is][out] */ void **ppvObject);
  1937. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1938. IEnumTfCollection * This);
  1939. ULONG ( STDMETHODCALLTYPE *Release )(
  1940. IEnumTfCollection * This);
  1941. HRESULT ( STDMETHODCALLTYPE *Clone )(
  1942. IEnumTfCollection * This,
  1943. /* [out] */ IEnumTfCollection **ppClone);
  1944. HRESULT ( STDMETHODCALLTYPE *Next )(
  1945. IEnumTfCollection * This,
  1946. /* [in] */ ULONG ulCount,
  1947. /* [length_is][size_is][out] */ TF_DA_PROPERTY *rgCollection,
  1948. /* [out] */ ULONG *pcFetched);
  1949. HRESULT ( STDMETHODCALLTYPE *Reset )(
  1950. IEnumTfCollection * This);
  1951. HRESULT ( STDMETHODCALLTYPE *Skip )(
  1952. IEnumTfCollection * This,
  1953. /* [in] */ ULONG ulCount);
  1954. END_INTERFACE
  1955. } IEnumTfCollectionVtbl;
  1956. interface IEnumTfCollection
  1957. {
  1958. CONST_VTBL struct IEnumTfCollectionVtbl *lpVtbl;
  1959. };
  1960. #ifdef COBJMACROS
  1961. #define IEnumTfCollection_QueryInterface(This,riid,ppvObject) \
  1962. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1963. #define IEnumTfCollection_AddRef(This) \
  1964. (This)->lpVtbl -> AddRef(This)
  1965. #define IEnumTfCollection_Release(This) \
  1966. (This)->lpVtbl -> Release(This)
  1967. #define IEnumTfCollection_Clone(This,ppClone) \
  1968. (This)->lpVtbl -> Clone(This,ppClone)
  1969. #define IEnumTfCollection_Next(This,ulCount,rgCollection,pcFetched) \
  1970. (This)->lpVtbl -> Next(This,ulCount,rgCollection,pcFetched)
  1971. #define IEnumTfCollection_Reset(This) \
  1972. (This)->lpVtbl -> Reset(This)
  1973. #define IEnumTfCollection_Skip(This,ulCount) \
  1974. (This)->lpVtbl -> Skip(This,ulCount)
  1975. #endif /* COBJMACROS */
  1976. #endif /* C style interface */
  1977. HRESULT STDMETHODCALLTYPE IEnumTfCollection_Clone_Proxy(
  1978. IEnumTfCollection * This,
  1979. /* [out] */ IEnumTfCollection **ppClone);
  1980. void __RPC_STUB IEnumTfCollection_Clone_Stub(
  1981. IRpcStubBuffer *This,
  1982. IRpcChannelBuffer *_pRpcChannelBuffer,
  1983. PRPC_MESSAGE _pRpcMessage,
  1984. DWORD *_pdwStubPhase);
  1985. HRESULT STDMETHODCALLTYPE IEnumTfCollection_Next_Proxy(
  1986. IEnumTfCollection * This,
  1987. /* [in] */ ULONG ulCount,
  1988. /* [length_is][size_is][out] */ TF_DA_PROPERTY *rgCollection,
  1989. /* [out] */ ULONG *pcFetched);
  1990. void __RPC_STUB IEnumTfCollection_Next_Stub(
  1991. IRpcStubBuffer *This,
  1992. IRpcChannelBuffer *_pRpcChannelBuffer,
  1993. PRPC_MESSAGE _pRpcMessage,
  1994. DWORD *_pdwStubPhase);
  1995. HRESULT STDMETHODCALLTYPE IEnumTfCollection_Reset_Proxy(
  1996. IEnumTfCollection * This);
  1997. void __RPC_STUB IEnumTfCollection_Reset_Stub(
  1998. IRpcStubBuffer *This,
  1999. IRpcChannelBuffer *_pRpcChannelBuffer,
  2000. PRPC_MESSAGE _pRpcMessage,
  2001. DWORD *_pdwStubPhase);
  2002. HRESULT STDMETHODCALLTYPE IEnumTfCollection_Skip_Proxy(
  2003. IEnumTfCollection * This,
  2004. /* [in] */ ULONG ulCount);
  2005. void __RPC_STUB IEnumTfCollection_Skip_Stub(
  2006. IRpcStubBuffer *This,
  2007. IRpcChannelBuffer *_pRpcChannelBuffer,
  2008. PRPC_MESSAGE _pRpcMessage,
  2009. DWORD *_pdwStubPhase);
  2010. #endif /* __IEnumTfCollection_INTERFACE_DEFINED__ */
  2011. #ifndef __ITfDisplayAttributeCollectionMgr_INTERFACE_DEFINED__
  2012. #define __ITfDisplayAttributeCollectionMgr_INTERFACE_DEFINED__
  2013. /* interface ITfDisplayAttributeCollectionMgr */
  2014. /* [unique][uuid][object] */
  2015. EXTERN_C const IID IID_ITfDisplayAttributeCollectionMgr;
  2016. #if defined(__cplusplus) && !defined(CINTERFACE)
  2017. MIDL_INTERFACE("4e3d2d48-3c17-457d-84a1-f209476de897")
  2018. ITfDisplayAttributeCollectionMgr : public IUnknown
  2019. {
  2020. public:
  2021. virtual HRESULT STDMETHODCALLTYPE EnumCollections(
  2022. /* [out] */ IEnumTfCollection **ppEnum) = 0;
  2023. };
  2024. #else /* C style interface */
  2025. typedef struct ITfDisplayAttributeCollectionMgrVtbl
  2026. {
  2027. BEGIN_INTERFACE
  2028. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2029. ITfDisplayAttributeCollectionMgr * This,
  2030. /* [in] */ REFIID riid,
  2031. /* [iid_is][out] */ void **ppvObject);
  2032. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2033. ITfDisplayAttributeCollectionMgr * This);
  2034. ULONG ( STDMETHODCALLTYPE *Release )(
  2035. ITfDisplayAttributeCollectionMgr * This);
  2036. HRESULT ( STDMETHODCALLTYPE *EnumCollections )(
  2037. ITfDisplayAttributeCollectionMgr * This,
  2038. /* [out] */ IEnumTfCollection **ppEnum);
  2039. END_INTERFACE
  2040. } ITfDisplayAttributeCollectionMgrVtbl;
  2041. interface ITfDisplayAttributeCollectionMgr
  2042. {
  2043. CONST_VTBL struct ITfDisplayAttributeCollectionMgrVtbl *lpVtbl;
  2044. };
  2045. #ifdef COBJMACROS
  2046. #define ITfDisplayAttributeCollectionMgr_QueryInterface(This,riid,ppvObject) \
  2047. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2048. #define ITfDisplayAttributeCollectionMgr_AddRef(This) \
  2049. (This)->lpVtbl -> AddRef(This)
  2050. #define ITfDisplayAttributeCollectionMgr_Release(This) \
  2051. (This)->lpVtbl -> Release(This)
  2052. #define ITfDisplayAttributeCollectionMgr_EnumCollections(This,ppEnum) \
  2053. (This)->lpVtbl -> EnumCollections(This,ppEnum)
  2054. #endif /* COBJMACROS */
  2055. #endif /* C style interface */
  2056. HRESULT STDMETHODCALLTYPE ITfDisplayAttributeCollectionMgr_EnumCollections_Proxy(
  2057. ITfDisplayAttributeCollectionMgr * This,
  2058. /* [out] */ IEnumTfCollection **ppEnum);
  2059. void __RPC_STUB ITfDisplayAttributeCollectionMgr_EnumCollections_Stub(
  2060. IRpcStubBuffer *This,
  2061. IRpcChannelBuffer *_pRpcChannelBuffer,
  2062. PRPC_MESSAGE _pRpcMessage,
  2063. DWORD *_pdwStubPhase);
  2064. #endif /* __ITfDisplayAttributeCollectionMgr_INTERFACE_DEFINED__ */
  2065. #ifndef __ITfDisplayAttributeCollectionProvider_INTERFACE_DEFINED__
  2066. #define __ITfDisplayAttributeCollectionProvider_INTERFACE_DEFINED__
  2067. /* interface ITfDisplayAttributeCollectionProvider */
  2068. /* [unique][uuid][object] */
  2069. EXTERN_C const IID IID_ITfDisplayAttributeCollectionProvider;
  2070. #if defined(__cplusplus) && !defined(CINTERFACE)
  2071. MIDL_INTERFACE("3977526d-1a0a-435a-8d06-ecc9516b484f")
  2072. ITfDisplayAttributeCollectionProvider : public IUnknown
  2073. {
  2074. public:
  2075. virtual HRESULT STDMETHODCALLTYPE GetCollectionCount(
  2076. /* [out] */ ULONG *puCount) = 0;
  2077. virtual HRESULT STDMETHODCALLTYPE GetCollection(
  2078. /* [in] */ ULONG uCount,
  2079. /* [length_is][size_is][out] */ TF_DA_PROPERTY *prgProperty,
  2080. /* [out] */ ULONG *pcGUIDsOut) = 0;
  2081. };
  2082. #else /* C style interface */
  2083. typedef struct ITfDisplayAttributeCollectionProviderVtbl
  2084. {
  2085. BEGIN_INTERFACE
  2086. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2087. ITfDisplayAttributeCollectionProvider * This,
  2088. /* [in] */ REFIID riid,
  2089. /* [iid_is][out] */ void **ppvObject);
  2090. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2091. ITfDisplayAttributeCollectionProvider * This);
  2092. ULONG ( STDMETHODCALLTYPE *Release )(
  2093. ITfDisplayAttributeCollectionProvider * This);
  2094. HRESULT ( STDMETHODCALLTYPE *GetCollectionCount )(
  2095. ITfDisplayAttributeCollectionProvider * This,
  2096. /* [out] */ ULONG *puCount);
  2097. HRESULT ( STDMETHODCALLTYPE *GetCollection )(
  2098. ITfDisplayAttributeCollectionProvider * This,
  2099. /* [in] */ ULONG uCount,
  2100. /* [length_is][size_is][out] */ TF_DA_PROPERTY *prgProperty,
  2101. /* [out] */ ULONG *pcGUIDsOut);
  2102. END_INTERFACE
  2103. } ITfDisplayAttributeCollectionProviderVtbl;
  2104. interface ITfDisplayAttributeCollectionProvider
  2105. {
  2106. CONST_VTBL struct ITfDisplayAttributeCollectionProviderVtbl *lpVtbl;
  2107. };
  2108. #ifdef COBJMACROS
  2109. #define ITfDisplayAttributeCollectionProvider_QueryInterface(This,riid,ppvObject) \
  2110. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2111. #define ITfDisplayAttributeCollectionProvider_AddRef(This) \
  2112. (This)->lpVtbl -> AddRef(This)
  2113. #define ITfDisplayAttributeCollectionProvider_Release(This) \
  2114. (This)->lpVtbl -> Release(This)
  2115. #define ITfDisplayAttributeCollectionProvider_GetCollectionCount(This,puCount) \
  2116. (This)->lpVtbl -> GetCollectionCount(This,puCount)
  2117. #define ITfDisplayAttributeCollectionProvider_GetCollection(This,uCount,prgProperty,pcGUIDsOut) \
  2118. (This)->lpVtbl -> GetCollection(This,uCount,prgProperty,pcGUIDsOut)
  2119. #endif /* COBJMACROS */
  2120. #endif /* C style interface */
  2121. HRESULT STDMETHODCALLTYPE ITfDisplayAttributeCollectionProvider_GetCollectionCount_Proxy(
  2122. ITfDisplayAttributeCollectionProvider * This,
  2123. /* [out] */ ULONG *puCount);
  2124. void __RPC_STUB ITfDisplayAttributeCollectionProvider_GetCollectionCount_Stub(
  2125. IRpcStubBuffer *This,
  2126. IRpcChannelBuffer *_pRpcChannelBuffer,
  2127. PRPC_MESSAGE _pRpcMessage,
  2128. DWORD *_pdwStubPhase);
  2129. HRESULT STDMETHODCALLTYPE ITfDisplayAttributeCollectionProvider_GetCollection_Proxy(
  2130. ITfDisplayAttributeCollectionProvider * This,
  2131. /* [in] */ ULONG uCount,
  2132. /* [length_is][size_is][out] */ TF_DA_PROPERTY *prgProperty,
  2133. /* [out] */ ULONG *pcGUIDsOut);
  2134. void __RPC_STUB ITfDisplayAttributeCollectionProvider_GetCollection_Stub(
  2135. IRpcStubBuffer *This,
  2136. IRpcChannelBuffer *_pRpcChannelBuffer,
  2137. PRPC_MESSAGE _pRpcMessage,
  2138. DWORD *_pdwStubPhase);
  2139. #endif /* __ITfDisplayAttributeCollectionProvider_INTERFACE_DEFINED__ */
  2140. /* interface __MIDL_itf_msctfp_0236 */
  2141. /* [local] */
  2142. typedef /* [public][public][public] */ struct __MIDL___MIDL_itf_msctfp_0236_0001
  2143. {
  2144. ITfRange *pRange;
  2145. TF_DISPLAYATTRIBUTE tfDisplayAttr;
  2146. } TF_RENDERINGMARKUP;
  2147. extern RPC_IF_HANDLE __MIDL_itf_msctfp_0236_v0_0_c_ifspec;
  2148. extern RPC_IF_HANDLE __MIDL_itf_msctfp_0236_v0_0_s_ifspec;
  2149. #ifndef __IEnumTfRenderingMarkup_INTERFACE_DEFINED__
  2150. #define __IEnumTfRenderingMarkup_INTERFACE_DEFINED__
  2151. /* interface IEnumTfRenderingMarkup */
  2152. /* [unique][uuid][object] */
  2153. EXTERN_C const IID IID_IEnumTfRenderingMarkup;
  2154. #if defined(__cplusplus) && !defined(CINTERFACE)
  2155. MIDL_INTERFACE("8c03d21b-95a7-4ba0-ae1b-7fce12a72930")
  2156. IEnumTfRenderingMarkup : public IUnknown
  2157. {
  2158. public:
  2159. virtual HRESULT STDMETHODCALLTYPE Clone(
  2160. /* [out] */ IEnumTfRenderingMarkup **ppClone) = 0;
  2161. virtual HRESULT STDMETHODCALLTYPE Next(
  2162. /* [in] */ ULONG ulCount,
  2163. /* [length_is][size_is][out] */ TF_RENDERINGMARKUP *rgMarkup,
  2164. /* [out] */ ULONG *pcFetched) = 0;
  2165. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  2166. virtual HRESULT STDMETHODCALLTYPE Skip(
  2167. /* [in] */ ULONG ulCount) = 0;
  2168. };
  2169. #else /* C style interface */
  2170. typedef struct IEnumTfRenderingMarkupVtbl
  2171. {
  2172. BEGIN_INTERFACE
  2173. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2174. IEnumTfRenderingMarkup * This,
  2175. /* [in] */ REFIID riid,
  2176. /* [iid_is][out] */ void **ppvObject);
  2177. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2178. IEnumTfRenderingMarkup * This);
  2179. ULONG ( STDMETHODCALLTYPE *Release )(
  2180. IEnumTfRenderingMarkup * This);
  2181. HRESULT ( STDMETHODCALLTYPE *Clone )(
  2182. IEnumTfRenderingMarkup * This,
  2183. /* [out] */ IEnumTfRenderingMarkup **ppClone);
  2184. HRESULT ( STDMETHODCALLTYPE *Next )(
  2185. IEnumTfRenderingMarkup * This,
  2186. /* [in] */ ULONG ulCount,
  2187. /* [length_is][size_is][out] */ TF_RENDERINGMARKUP *rgMarkup,
  2188. /* [out] */ ULONG *pcFetched);
  2189. HRESULT ( STDMETHODCALLTYPE *Reset )(
  2190. IEnumTfRenderingMarkup * This);
  2191. HRESULT ( STDMETHODCALLTYPE *Skip )(
  2192. IEnumTfRenderingMarkup * This,
  2193. /* [in] */ ULONG ulCount);
  2194. END_INTERFACE
  2195. } IEnumTfRenderingMarkupVtbl;
  2196. interface IEnumTfRenderingMarkup
  2197. {
  2198. CONST_VTBL struct IEnumTfRenderingMarkupVtbl *lpVtbl;
  2199. };
  2200. #ifdef COBJMACROS
  2201. #define IEnumTfRenderingMarkup_QueryInterface(This,riid,ppvObject) \
  2202. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2203. #define IEnumTfRenderingMarkup_AddRef(This) \
  2204. (This)->lpVtbl -> AddRef(This)
  2205. #define IEnumTfRenderingMarkup_Release(This) \
  2206. (This)->lpVtbl -> Release(This)
  2207. #define IEnumTfRenderingMarkup_Clone(This,ppClone) \
  2208. (This)->lpVtbl -> Clone(This,ppClone)
  2209. #define IEnumTfRenderingMarkup_Next(This,ulCount,rgMarkup,pcFetched) \
  2210. (This)->lpVtbl -> Next(This,ulCount,rgMarkup,pcFetched)
  2211. #define IEnumTfRenderingMarkup_Reset(This) \
  2212. (This)->lpVtbl -> Reset(This)
  2213. #define IEnumTfRenderingMarkup_Skip(This,ulCount) \
  2214. (This)->lpVtbl -> Skip(This,ulCount)
  2215. #endif /* COBJMACROS */
  2216. #endif /* C style interface */
  2217. HRESULT STDMETHODCALLTYPE IEnumTfRenderingMarkup_Clone_Proxy(
  2218. IEnumTfRenderingMarkup * This,
  2219. /* [out] */ IEnumTfRenderingMarkup **ppClone);
  2220. void __RPC_STUB IEnumTfRenderingMarkup_Clone_Stub(
  2221. IRpcStubBuffer *This,
  2222. IRpcChannelBuffer *_pRpcChannelBuffer,
  2223. PRPC_MESSAGE _pRpcMessage,
  2224. DWORD *_pdwStubPhase);
  2225. HRESULT STDMETHODCALLTYPE IEnumTfRenderingMarkup_Next_Proxy(
  2226. IEnumTfRenderingMarkup * This,
  2227. /* [in] */ ULONG ulCount,
  2228. /* [length_is][size_is][out] */ TF_RENDERINGMARKUP *rgMarkup,
  2229. /* [out] */ ULONG *pcFetched);
  2230. void __RPC_STUB IEnumTfRenderingMarkup_Next_Stub(
  2231. IRpcStubBuffer *This,
  2232. IRpcChannelBuffer *_pRpcChannelBuffer,
  2233. PRPC_MESSAGE _pRpcMessage,
  2234. DWORD *_pdwStubPhase);
  2235. HRESULT STDMETHODCALLTYPE IEnumTfRenderingMarkup_Reset_Proxy(
  2236. IEnumTfRenderingMarkup * This);
  2237. void __RPC_STUB IEnumTfRenderingMarkup_Reset_Stub(
  2238. IRpcStubBuffer *This,
  2239. IRpcChannelBuffer *_pRpcChannelBuffer,
  2240. PRPC_MESSAGE _pRpcMessage,
  2241. DWORD *_pdwStubPhase);
  2242. HRESULT STDMETHODCALLTYPE IEnumTfRenderingMarkup_Skip_Proxy(
  2243. IEnumTfRenderingMarkup * This,
  2244. /* [in] */ ULONG ulCount);
  2245. void __RPC_STUB IEnumTfRenderingMarkup_Skip_Stub(
  2246. IRpcStubBuffer *This,
  2247. IRpcChannelBuffer *_pRpcChannelBuffer,
  2248. PRPC_MESSAGE _pRpcMessage,
  2249. DWORD *_pdwStubPhase);
  2250. #endif /* __IEnumTfRenderingMarkup_INTERFACE_DEFINED__ */
  2251. #ifndef __ITfContextRenderingMarkup_INTERFACE_DEFINED__
  2252. #define __ITfContextRenderingMarkup_INTERFACE_DEFINED__
  2253. /* interface ITfContextRenderingMarkup */
  2254. /* [unique][uuid][object] */
  2255. #define TF_GRM_INCLUDE_PROPERTY ( 0x1 )
  2256. #define TF_FRM_INCLUDE_PROPERTY ( 0x1 )
  2257. #define TF_FRM_BACKWARD ( 0x2 )
  2258. #define TF_FRM_NO_CONTAINED ( 0x4 )
  2259. #define TF_FRM_NO_RANGE ( 0x8 )
  2260. EXTERN_C const IID IID_ITfContextRenderingMarkup;
  2261. #if defined(__cplusplus) && !defined(CINTERFACE)
  2262. MIDL_INTERFACE("a305b1c0-c776-4523-bda0-7c5a2e0fef10")
  2263. ITfContextRenderingMarkup : public IUnknown
  2264. {
  2265. public:
  2266. virtual HRESULT STDMETHODCALLTYPE GetRenderingMarkup(
  2267. /* [in] */ TfEditCookie ec,
  2268. /* [in] */ DWORD dwFlags,
  2269. /* [in] */ ITfRange *pRangeCover,
  2270. /* [out] */ IEnumTfRenderingMarkup **ppEnum) = 0;
  2271. virtual HRESULT STDMETHODCALLTYPE FindNextRenderingMarkup(
  2272. /* [in] */ TfEditCookie ec,
  2273. /* [in] */ DWORD dwFlags,
  2274. /* [in] */ ITfRange *pRangeQuery,
  2275. /* [in] */ TfAnchor tfAnchorQuery,
  2276. /* [out] */ ITfRange **ppRangeFound,
  2277. /* [out] */ TF_RENDERINGMARKUP *ptfRenderingMarkup) = 0;
  2278. };
  2279. #else /* C style interface */
  2280. typedef struct ITfContextRenderingMarkupVtbl
  2281. {
  2282. BEGIN_INTERFACE
  2283. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2284. ITfContextRenderingMarkup * This,
  2285. /* [in] */ REFIID riid,
  2286. /* [iid_is][out] */ void **ppvObject);
  2287. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2288. ITfContextRenderingMarkup * This);
  2289. ULONG ( STDMETHODCALLTYPE *Release )(
  2290. ITfContextRenderingMarkup * This);
  2291. HRESULT ( STDMETHODCALLTYPE *GetRenderingMarkup )(
  2292. ITfContextRenderingMarkup * This,
  2293. /* [in] */ TfEditCookie ec,
  2294. /* [in] */ DWORD dwFlags,
  2295. /* [in] */ ITfRange *pRangeCover,
  2296. /* [out] */ IEnumTfRenderingMarkup **ppEnum);
  2297. HRESULT ( STDMETHODCALLTYPE *FindNextRenderingMarkup )(
  2298. ITfContextRenderingMarkup * This,
  2299. /* [in] */ TfEditCookie ec,
  2300. /* [in] */ DWORD dwFlags,
  2301. /* [in] */ ITfRange *pRangeQuery,
  2302. /* [in] */ TfAnchor tfAnchorQuery,
  2303. /* [out] */ ITfRange **ppRangeFound,
  2304. /* [out] */ TF_RENDERINGMARKUP *ptfRenderingMarkup);
  2305. END_INTERFACE
  2306. } ITfContextRenderingMarkupVtbl;
  2307. interface ITfContextRenderingMarkup
  2308. {
  2309. CONST_VTBL struct ITfContextRenderingMarkupVtbl *lpVtbl;
  2310. };
  2311. #ifdef COBJMACROS
  2312. #define ITfContextRenderingMarkup_QueryInterface(This,riid,ppvObject) \
  2313. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2314. #define ITfContextRenderingMarkup_AddRef(This) \
  2315. (This)->lpVtbl -> AddRef(This)
  2316. #define ITfContextRenderingMarkup_Release(This) \
  2317. (This)->lpVtbl -> Release(This)
  2318. #define ITfContextRenderingMarkup_GetRenderingMarkup(This,ec,dwFlags,pRangeCover,ppEnum) \
  2319. (This)->lpVtbl -> GetRenderingMarkup(This,ec,dwFlags,pRangeCover,ppEnum)
  2320. #define ITfContextRenderingMarkup_FindNextRenderingMarkup(This,ec,dwFlags,pRangeQuery,tfAnchorQuery,ppRangeFound,ptfRenderingMarkup) \
  2321. (This)->lpVtbl -> FindNextRenderingMarkup(This,ec,dwFlags,pRangeQuery,tfAnchorQuery,ppRangeFound,ptfRenderingMarkup)
  2322. #endif /* COBJMACROS */
  2323. #endif /* C style interface */
  2324. HRESULT STDMETHODCALLTYPE ITfContextRenderingMarkup_GetRenderingMarkup_Proxy(
  2325. ITfContextRenderingMarkup * This,
  2326. /* [in] */ TfEditCookie ec,
  2327. /* [in] */ DWORD dwFlags,
  2328. /* [in] */ ITfRange *pRangeCover,
  2329. /* [out] */ IEnumTfRenderingMarkup **ppEnum);
  2330. void __RPC_STUB ITfContextRenderingMarkup_GetRenderingMarkup_Stub(
  2331. IRpcStubBuffer *This,
  2332. IRpcChannelBuffer *_pRpcChannelBuffer,
  2333. PRPC_MESSAGE _pRpcMessage,
  2334. DWORD *_pdwStubPhase);
  2335. HRESULT STDMETHODCALLTYPE ITfContextRenderingMarkup_FindNextRenderingMarkup_Proxy(
  2336. ITfContextRenderingMarkup * This,
  2337. /* [in] */ TfEditCookie ec,
  2338. /* [in] */ DWORD dwFlags,
  2339. /* [in] */ ITfRange *pRangeQuery,
  2340. /* [in] */ TfAnchor tfAnchorQuery,
  2341. /* [out] */ ITfRange **ppRangeFound,
  2342. /* [out] */ TF_RENDERINGMARKUP *ptfRenderingMarkup);
  2343. void __RPC_STUB ITfContextRenderingMarkup_FindNextRenderingMarkup_Stub(
  2344. IRpcStubBuffer *This,
  2345. IRpcChannelBuffer *_pRpcChannelBuffer,
  2346. PRPC_MESSAGE _pRpcMessage,
  2347. DWORD *_pdwStubPhase);
  2348. #endif /* __ITfContextRenderingMarkup_INTERFACE_DEFINED__ */
  2349. #ifndef __ITfBackgroundThreadMgr_INTERFACE_DEFINED__
  2350. #define __ITfBackgroundThreadMgr_INTERFACE_DEFINED__
  2351. /* interface ITfBackgroundThreadMgr */
  2352. /* [unique][uuid][local][object] */
  2353. typedef BOOL ( *TfBackgroundThreadCallback )(
  2354. /* [in] */ BOOL fCleanup,
  2355. /* [in] */ void *pvPrivate);
  2356. typedef BOOL ( *TfWakeAppBackgroundThreadProc )( void);
  2357. EXTERN_C const IID IID_ITfBackgroundThreadMgr;
  2358. #if defined(__cplusplus) && !defined(CINTERFACE)
  2359. MIDL_INTERFACE("38462b47-6127-4464-bd2f-46957c31ad0e")
  2360. ITfBackgroundThreadMgr : public IUnknown
  2361. {
  2362. public:
  2363. virtual HRESULT STDMETHODCALLTYPE AppInitBackgroundThread(
  2364. /* [in] */ TfWakeAppBackgroundThreadProc pfnWakeThread,
  2365. /* [out] */ TfBackgroundThreadCallback *ppfnCallback,
  2366. /* [out] */ void **ppvPrivate) = 0;
  2367. virtual HRESULT STDMETHODCALLTYPE AppUninitBackgroundThread( void) = 0;
  2368. virtual HRESULT STDMETHODCALLTYPE AdviseBackgroundCallback(
  2369. /* [in] */ TfBackgroundThreadCallback pfnCallback,
  2370. /* [in] */ void *pvPrivate,
  2371. /* [out] */ DWORD *pdwCookie) = 0;
  2372. virtual HRESULT STDMETHODCALLTYPE UnadviseBackgroundCallback(
  2373. /* [in] */ DWORD dwCookie) = 0;
  2374. virtual HRESULT STDMETHODCALLTYPE WakeBackgroundThread( void) = 0;
  2375. };
  2376. #else /* C style interface */
  2377. typedef struct ITfBackgroundThreadMgrVtbl
  2378. {
  2379. BEGIN_INTERFACE
  2380. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2381. ITfBackgroundThreadMgr * This,
  2382. /* [in] */ REFIID riid,
  2383. /* [iid_is][out] */ void **ppvObject);
  2384. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2385. ITfBackgroundThreadMgr * This);
  2386. ULONG ( STDMETHODCALLTYPE *Release )(
  2387. ITfBackgroundThreadMgr * This);
  2388. HRESULT ( STDMETHODCALLTYPE *AppInitBackgroundThread )(
  2389. ITfBackgroundThreadMgr * This,
  2390. /* [in] */ TfWakeAppBackgroundThreadProc pfnWakeThread,
  2391. /* [out] */ TfBackgroundThreadCallback *ppfnCallback,
  2392. /* [out] */ void **ppvPrivate);
  2393. HRESULT ( STDMETHODCALLTYPE *AppUninitBackgroundThread )(
  2394. ITfBackgroundThreadMgr * This);
  2395. HRESULT ( STDMETHODCALLTYPE *AdviseBackgroundCallback )(
  2396. ITfBackgroundThreadMgr * This,
  2397. /* [in] */ TfBackgroundThreadCallback pfnCallback,
  2398. /* [in] */ void *pvPrivate,
  2399. /* [out] */ DWORD *pdwCookie);
  2400. HRESULT ( STDMETHODCALLTYPE *UnadviseBackgroundCallback )(
  2401. ITfBackgroundThreadMgr * This,
  2402. /* [in] */ DWORD dwCookie);
  2403. HRESULT ( STDMETHODCALLTYPE *WakeBackgroundThread )(
  2404. ITfBackgroundThreadMgr * This);
  2405. END_INTERFACE
  2406. } ITfBackgroundThreadMgrVtbl;
  2407. interface ITfBackgroundThreadMgr
  2408. {
  2409. CONST_VTBL struct ITfBackgroundThreadMgrVtbl *lpVtbl;
  2410. };
  2411. #ifdef COBJMACROS
  2412. #define ITfBackgroundThreadMgr_QueryInterface(This,riid,ppvObject) \
  2413. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2414. #define ITfBackgroundThreadMgr_AddRef(This) \
  2415. (This)->lpVtbl -> AddRef(This)
  2416. #define ITfBackgroundThreadMgr_Release(This) \
  2417. (This)->lpVtbl -> Release(This)
  2418. #define ITfBackgroundThreadMgr_AppInitBackgroundThread(This,pfnWakeThread,ppfnCallback,ppvPrivate) \
  2419. (This)->lpVtbl -> AppInitBackgroundThread(This,pfnWakeThread,ppfnCallback,ppvPrivate)
  2420. #define ITfBackgroundThreadMgr_AppUninitBackgroundThread(This) \
  2421. (This)->lpVtbl -> AppUninitBackgroundThread(This)
  2422. #define ITfBackgroundThreadMgr_AdviseBackgroundCallback(This,pfnCallback,pvPrivate,pdwCookie) \
  2423. (This)->lpVtbl -> AdviseBackgroundCallback(This,pfnCallback,pvPrivate,pdwCookie)
  2424. #define ITfBackgroundThreadMgr_UnadviseBackgroundCallback(This,dwCookie) \
  2425. (This)->lpVtbl -> UnadviseBackgroundCallback(This,dwCookie)
  2426. #define ITfBackgroundThreadMgr_WakeBackgroundThread(This) \
  2427. (This)->lpVtbl -> WakeBackgroundThread(This)
  2428. #endif /* COBJMACROS */
  2429. #endif /* C style interface */
  2430. HRESULT STDMETHODCALLTYPE ITfBackgroundThreadMgr_AppInitBackgroundThread_Proxy(
  2431. ITfBackgroundThreadMgr * This,
  2432. /* [in] */ TfWakeAppBackgroundThreadProc pfnWakeThread,
  2433. /* [out] */ TfBackgroundThreadCallback *ppfnCallback,
  2434. /* [out] */ void **ppvPrivate);
  2435. void __RPC_STUB ITfBackgroundThreadMgr_AppInitBackgroundThread_Stub(
  2436. IRpcStubBuffer *This,
  2437. IRpcChannelBuffer *_pRpcChannelBuffer,
  2438. PRPC_MESSAGE _pRpcMessage,
  2439. DWORD *_pdwStubPhase);
  2440. HRESULT STDMETHODCALLTYPE ITfBackgroundThreadMgr_AppUninitBackgroundThread_Proxy(
  2441. ITfBackgroundThreadMgr * This);
  2442. void __RPC_STUB ITfBackgroundThreadMgr_AppUninitBackgroundThread_Stub(
  2443. IRpcStubBuffer *This,
  2444. IRpcChannelBuffer *_pRpcChannelBuffer,
  2445. PRPC_MESSAGE _pRpcMessage,
  2446. DWORD *_pdwStubPhase);
  2447. HRESULT STDMETHODCALLTYPE ITfBackgroundThreadMgr_AdviseBackgroundCallback_Proxy(
  2448. ITfBackgroundThreadMgr * This,
  2449. /* [in] */ TfBackgroundThreadCallback pfnCallback,
  2450. /* [in] */ void *pvPrivate,
  2451. /* [out] */ DWORD *pdwCookie);
  2452. void __RPC_STUB ITfBackgroundThreadMgr_AdviseBackgroundCallback_Stub(
  2453. IRpcStubBuffer *This,
  2454. IRpcChannelBuffer *_pRpcChannelBuffer,
  2455. PRPC_MESSAGE _pRpcMessage,
  2456. DWORD *_pdwStubPhase);
  2457. HRESULT STDMETHODCALLTYPE ITfBackgroundThreadMgr_UnadviseBackgroundCallback_Proxy(
  2458. ITfBackgroundThreadMgr * This,
  2459. /* [in] */ DWORD dwCookie);
  2460. void __RPC_STUB ITfBackgroundThreadMgr_UnadviseBackgroundCallback_Stub(
  2461. IRpcStubBuffer *This,
  2462. IRpcChannelBuffer *_pRpcChannelBuffer,
  2463. PRPC_MESSAGE _pRpcMessage,
  2464. DWORD *_pdwStubPhase);
  2465. HRESULT STDMETHODCALLTYPE ITfBackgroundThreadMgr_WakeBackgroundThread_Proxy(
  2466. ITfBackgroundThreadMgr * This);
  2467. void __RPC_STUB ITfBackgroundThreadMgr_WakeBackgroundThread_Stub(
  2468. IRpcStubBuffer *This,
  2469. IRpcChannelBuffer *_pRpcChannelBuffer,
  2470. PRPC_MESSAGE _pRpcMessage,
  2471. DWORD *_pdwStubPhase);
  2472. #endif /* __ITfBackgroundThreadMgr_INTERFACE_DEFINED__ */
  2473. /* interface __MIDL_itf_msctfp_0239 */
  2474. /* [local] */
  2475. #endif // MSCTFP_DEFINED
  2476. extern RPC_IF_HANDLE __MIDL_itf_msctfp_0239_v0_0_c_ifspec;
  2477. extern RPC_IF_HANDLE __MIDL_itf_msctfp_0239_v0_0_s_ifspec;
  2478. /* Additional Prototypes for ALL interfaces */
  2479. unsigned long __RPC_USER HWND_UserSize( unsigned long *, unsigned long , HWND * );
  2480. unsigned char * __RPC_USER HWND_UserMarshal( unsigned long *, unsigned char *, HWND * );
  2481. unsigned char * __RPC_USER HWND_UserUnmarshal(unsigned long *, unsigned char *, HWND * );
  2482. void __RPC_USER HWND_UserFree( unsigned long *, HWND * );
  2483. /* end of Additional Prototypes */
  2484. #ifdef __cplusplus
  2485. }
  2486. #endif
  2487. #endif