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.

13845 lines
406 KiB

  1. #pragma warning( disable: 4049 ) /* more than 64k source lines */
  2. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  3. /* File created by MIDL compiler version 6.00.0345 */
  4. /* Compiler settings for msctf.idl:
  5. Oicf, W1, Zp8, env=Win32 (32b run)
  6. protocol : dce , ms_ext, c_ext
  7. error checks: allocation ref bounds_check enum stub_data
  8. VC __declspec() decoration level:
  9. __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  10. DECLSPEC_UUID(), MIDL_INTERFACE()
  11. */
  12. //@@MIDL_FILE_HEADING( )
  13. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  14. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  15. #define __REQUIRED_RPCNDR_H_VERSION__ 440
  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 __msctf_h__
  27. #define __msctf_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */
  32. #ifndef __ITfThreadMgr_FWD_DEFINED__
  33. #define __ITfThreadMgr_FWD_DEFINED__
  34. typedef interface ITfThreadMgr ITfThreadMgr;
  35. #endif /* __ITfThreadMgr_FWD_DEFINED__ */
  36. #ifndef __ITfThreadMgrEventSink_FWD_DEFINED__
  37. #define __ITfThreadMgrEventSink_FWD_DEFINED__
  38. typedef interface ITfThreadMgrEventSink ITfThreadMgrEventSink;
  39. #endif /* __ITfThreadMgrEventSink_FWD_DEFINED__ */
  40. #ifndef __ITfConfigureSystemKeystrokeFeed_FWD_DEFINED__
  41. #define __ITfConfigureSystemKeystrokeFeed_FWD_DEFINED__
  42. typedef interface ITfConfigureSystemKeystrokeFeed ITfConfigureSystemKeystrokeFeed;
  43. #endif /* __ITfConfigureSystemKeystrokeFeed_FWD_DEFINED__ */
  44. #ifndef __IEnumTfDocumentMgrs_FWD_DEFINED__
  45. #define __IEnumTfDocumentMgrs_FWD_DEFINED__
  46. typedef interface IEnumTfDocumentMgrs IEnumTfDocumentMgrs;
  47. #endif /* __IEnumTfDocumentMgrs_FWD_DEFINED__ */
  48. #ifndef __ITfDocumentMgr_FWD_DEFINED__
  49. #define __ITfDocumentMgr_FWD_DEFINED__
  50. typedef interface ITfDocumentMgr ITfDocumentMgr;
  51. #endif /* __ITfDocumentMgr_FWD_DEFINED__ */
  52. #ifndef __IEnumTfContexts_FWD_DEFINED__
  53. #define __IEnumTfContexts_FWD_DEFINED__
  54. typedef interface IEnumTfContexts IEnumTfContexts;
  55. #endif /* __IEnumTfContexts_FWD_DEFINED__ */
  56. #ifndef __ITfCompositionView_FWD_DEFINED__
  57. #define __ITfCompositionView_FWD_DEFINED__
  58. typedef interface ITfCompositionView ITfCompositionView;
  59. #endif /* __ITfCompositionView_FWD_DEFINED__ */
  60. #ifndef __IEnumITfCompositionView_FWD_DEFINED__
  61. #define __IEnumITfCompositionView_FWD_DEFINED__
  62. typedef interface IEnumITfCompositionView IEnumITfCompositionView;
  63. #endif /* __IEnumITfCompositionView_FWD_DEFINED__ */
  64. #ifndef __ITfComposition_FWD_DEFINED__
  65. #define __ITfComposition_FWD_DEFINED__
  66. typedef interface ITfComposition ITfComposition;
  67. #endif /* __ITfComposition_FWD_DEFINED__ */
  68. #ifndef __ITfCompositionSink_FWD_DEFINED__
  69. #define __ITfCompositionSink_FWD_DEFINED__
  70. typedef interface ITfCompositionSink ITfCompositionSink;
  71. #endif /* __ITfCompositionSink_FWD_DEFINED__ */
  72. #ifndef __ITfContextComposition_FWD_DEFINED__
  73. #define __ITfContextComposition_FWD_DEFINED__
  74. typedef interface ITfContextComposition ITfContextComposition;
  75. #endif /* __ITfContextComposition_FWD_DEFINED__ */
  76. #ifndef __ITfContextOwnerCompositionServices_FWD_DEFINED__
  77. #define __ITfContextOwnerCompositionServices_FWD_DEFINED__
  78. typedef interface ITfContextOwnerCompositionServices ITfContextOwnerCompositionServices;
  79. #endif /* __ITfContextOwnerCompositionServices_FWD_DEFINED__ */
  80. #ifndef __ITfContextOwnerCompositionSink_FWD_DEFINED__
  81. #define __ITfContextOwnerCompositionSink_FWD_DEFINED__
  82. typedef interface ITfContextOwnerCompositionSink ITfContextOwnerCompositionSink;
  83. #endif /* __ITfContextOwnerCompositionSink_FWD_DEFINED__ */
  84. #ifndef __ITfContextView_FWD_DEFINED__
  85. #define __ITfContextView_FWD_DEFINED__
  86. typedef interface ITfContextView ITfContextView;
  87. #endif /* __ITfContextView_FWD_DEFINED__ */
  88. #ifndef __IEnumTfContextViews_FWD_DEFINED__
  89. #define __IEnumTfContextViews_FWD_DEFINED__
  90. typedef interface IEnumTfContextViews IEnumTfContextViews;
  91. #endif /* __IEnumTfContextViews_FWD_DEFINED__ */
  92. #ifndef __ITfContext_FWD_DEFINED__
  93. #define __ITfContext_FWD_DEFINED__
  94. typedef interface ITfContext ITfContext;
  95. #endif /* __ITfContext_FWD_DEFINED__ */
  96. #ifndef __ITfQueryEmbedded_FWD_DEFINED__
  97. #define __ITfQueryEmbedded_FWD_DEFINED__
  98. typedef interface ITfQueryEmbedded ITfQueryEmbedded;
  99. #endif /* __ITfQueryEmbedded_FWD_DEFINED__ */
  100. #ifndef __ITfInsertAtSelection_FWD_DEFINED__
  101. #define __ITfInsertAtSelection_FWD_DEFINED__
  102. typedef interface ITfInsertAtSelection ITfInsertAtSelection;
  103. #endif /* __ITfInsertAtSelection_FWD_DEFINED__ */
  104. #ifndef __ITfCleanupContextSink_FWD_DEFINED__
  105. #define __ITfCleanupContextSink_FWD_DEFINED__
  106. typedef interface ITfCleanupContextSink ITfCleanupContextSink;
  107. #endif /* __ITfCleanupContextSink_FWD_DEFINED__ */
  108. #ifndef __ITfCleanupContextDurationSink_FWD_DEFINED__
  109. #define __ITfCleanupContextDurationSink_FWD_DEFINED__
  110. typedef interface ITfCleanupContextDurationSink ITfCleanupContextDurationSink;
  111. #endif /* __ITfCleanupContextDurationSink_FWD_DEFINED__ */
  112. #ifndef __ITfReadOnlyProperty_FWD_DEFINED__
  113. #define __ITfReadOnlyProperty_FWD_DEFINED__
  114. typedef interface ITfReadOnlyProperty ITfReadOnlyProperty;
  115. #endif /* __ITfReadOnlyProperty_FWD_DEFINED__ */
  116. #ifndef __IEnumTfPropertyValue_FWD_DEFINED__
  117. #define __IEnumTfPropertyValue_FWD_DEFINED__
  118. typedef interface IEnumTfPropertyValue IEnumTfPropertyValue;
  119. #endif /* __IEnumTfPropertyValue_FWD_DEFINED__ */
  120. #ifndef __ITfMouseTracker_FWD_DEFINED__
  121. #define __ITfMouseTracker_FWD_DEFINED__
  122. typedef interface ITfMouseTracker ITfMouseTracker;
  123. #endif /* __ITfMouseTracker_FWD_DEFINED__ */
  124. #ifndef __ITfMouseTrackerACP_FWD_DEFINED__
  125. #define __ITfMouseTrackerACP_FWD_DEFINED__
  126. typedef interface ITfMouseTrackerACP ITfMouseTrackerACP;
  127. #endif /* __ITfMouseTrackerACP_FWD_DEFINED__ */
  128. #ifndef __ITfMouseTrackerAnchor_FWD_DEFINED__
  129. #define __ITfMouseTrackerAnchor_FWD_DEFINED__
  130. typedef interface ITfMouseTrackerAnchor ITfMouseTrackerAnchor;
  131. #endif /* __ITfMouseTrackerAnchor_FWD_DEFINED__ */
  132. #ifndef __ITfMouseSink_FWD_DEFINED__
  133. #define __ITfMouseSink_FWD_DEFINED__
  134. typedef interface ITfMouseSink ITfMouseSink;
  135. #endif /* __ITfMouseSink_FWD_DEFINED__ */
  136. #ifndef __ITfEditRecord_FWD_DEFINED__
  137. #define __ITfEditRecord_FWD_DEFINED__
  138. typedef interface ITfEditRecord ITfEditRecord;
  139. #endif /* __ITfEditRecord_FWD_DEFINED__ */
  140. #ifndef __ITfTextEditSink_FWD_DEFINED__
  141. #define __ITfTextEditSink_FWD_DEFINED__
  142. typedef interface ITfTextEditSink ITfTextEditSink;
  143. #endif /* __ITfTextEditSink_FWD_DEFINED__ */
  144. #ifndef __ITfTextLayoutSink_FWD_DEFINED__
  145. #define __ITfTextLayoutSink_FWD_DEFINED__
  146. typedef interface ITfTextLayoutSink ITfTextLayoutSink;
  147. #endif /* __ITfTextLayoutSink_FWD_DEFINED__ */
  148. #ifndef __ITfStatusSink_FWD_DEFINED__
  149. #define __ITfStatusSink_FWD_DEFINED__
  150. typedef interface ITfStatusSink ITfStatusSink;
  151. #endif /* __ITfStatusSink_FWD_DEFINED__ */
  152. #ifndef __ITfEditTransactionSink_FWD_DEFINED__
  153. #define __ITfEditTransactionSink_FWD_DEFINED__
  154. typedef interface ITfEditTransactionSink ITfEditTransactionSink;
  155. #endif /* __ITfEditTransactionSink_FWD_DEFINED__ */
  156. #ifndef __ITfContextOwner_FWD_DEFINED__
  157. #define __ITfContextOwner_FWD_DEFINED__
  158. typedef interface ITfContextOwner ITfContextOwner;
  159. #endif /* __ITfContextOwner_FWD_DEFINED__ */
  160. #ifndef __ITfContextOwnerServices_FWD_DEFINED__
  161. #define __ITfContextOwnerServices_FWD_DEFINED__
  162. typedef interface ITfContextOwnerServices ITfContextOwnerServices;
  163. #endif /* __ITfContextOwnerServices_FWD_DEFINED__ */
  164. #ifndef __ITfContextKeyEventSink_FWD_DEFINED__
  165. #define __ITfContextKeyEventSink_FWD_DEFINED__
  166. typedef interface ITfContextKeyEventSink ITfContextKeyEventSink;
  167. #endif /* __ITfContextKeyEventSink_FWD_DEFINED__ */
  168. #ifndef __ITfEditSession_FWD_DEFINED__
  169. #define __ITfEditSession_FWD_DEFINED__
  170. typedef interface ITfEditSession ITfEditSession;
  171. #endif /* __ITfEditSession_FWD_DEFINED__ */
  172. #ifndef __IEnumTfTextDeltas_FWD_DEFINED__
  173. #define __IEnumTfTextDeltas_FWD_DEFINED__
  174. typedef interface IEnumTfTextDeltas IEnumTfTextDeltas;
  175. #endif /* __IEnumTfTextDeltas_FWD_DEFINED__ */
  176. #ifndef __ITfRange_FWD_DEFINED__
  177. #define __ITfRange_FWD_DEFINED__
  178. typedef interface ITfRange ITfRange;
  179. #endif /* __ITfRange_FWD_DEFINED__ */
  180. #ifndef __ITfRangeACP_FWD_DEFINED__
  181. #define __ITfRangeACP_FWD_DEFINED__
  182. typedef interface ITfRangeACP ITfRangeACP;
  183. #endif /* __ITfRangeACP_FWD_DEFINED__ */
  184. #ifndef __ITfRangeAnchor_FWD_DEFINED__
  185. #define __ITfRangeAnchor_FWD_DEFINED__
  186. typedef interface ITfRangeAnchor ITfRangeAnchor;
  187. #endif /* __ITfRangeAnchor_FWD_DEFINED__ */
  188. #ifndef __ITextStoreACPServices_FWD_DEFINED__
  189. #define __ITextStoreACPServices_FWD_DEFINED__
  190. typedef interface ITextStoreACPServices ITextStoreACPServices;
  191. #endif /* __ITextStoreACPServices_FWD_DEFINED__ */
  192. #ifndef __ITextStoreAnchorServices_FWD_DEFINED__
  193. #define __ITextStoreAnchorServices_FWD_DEFINED__
  194. typedef interface ITextStoreAnchorServices ITextStoreAnchorServices;
  195. #endif /* __ITextStoreAnchorServices_FWD_DEFINED__ */
  196. #ifndef __ITfRangeBackup_FWD_DEFINED__
  197. #define __ITfRangeBackup_FWD_DEFINED__
  198. typedef interface ITfRangeBackup ITfRangeBackup;
  199. #endif /* __ITfRangeBackup_FWD_DEFINED__ */
  200. #ifndef __ITfPropertyStore_FWD_DEFINED__
  201. #define __ITfPropertyStore_FWD_DEFINED__
  202. typedef interface ITfPropertyStore ITfPropertyStore;
  203. #endif /* __ITfPropertyStore_FWD_DEFINED__ */
  204. #ifndef __IEnumTfRanges_FWD_DEFINED__
  205. #define __IEnumTfRanges_FWD_DEFINED__
  206. typedef interface IEnumTfRanges IEnumTfRanges;
  207. #endif /* __IEnumTfRanges_FWD_DEFINED__ */
  208. #ifndef __ITfCreatePropertyStore_FWD_DEFINED__
  209. #define __ITfCreatePropertyStore_FWD_DEFINED__
  210. typedef interface ITfCreatePropertyStore ITfCreatePropertyStore;
  211. #endif /* __ITfCreatePropertyStore_FWD_DEFINED__ */
  212. #ifndef __ITfPersistentPropertyLoaderACP_FWD_DEFINED__
  213. #define __ITfPersistentPropertyLoaderACP_FWD_DEFINED__
  214. typedef interface ITfPersistentPropertyLoaderACP ITfPersistentPropertyLoaderACP;
  215. #endif /* __ITfPersistentPropertyLoaderACP_FWD_DEFINED__ */
  216. #ifndef __ITfPersistentPropertyLoaderAnchor_FWD_DEFINED__
  217. #define __ITfPersistentPropertyLoaderAnchor_FWD_DEFINED__
  218. typedef interface ITfPersistentPropertyLoaderAnchor ITfPersistentPropertyLoaderAnchor;
  219. #endif /* __ITfPersistentPropertyLoaderAnchor_FWD_DEFINED__ */
  220. #ifndef __ITfProperty_FWD_DEFINED__
  221. #define __ITfProperty_FWD_DEFINED__
  222. typedef interface ITfProperty ITfProperty;
  223. #endif /* __ITfProperty_FWD_DEFINED__ */
  224. #ifndef __IEnumTfProperties_FWD_DEFINED__
  225. #define __IEnumTfProperties_FWD_DEFINED__
  226. typedef interface IEnumTfProperties IEnumTfProperties;
  227. #endif /* __IEnumTfProperties_FWD_DEFINED__ */
  228. #ifndef __ITfCompartment_FWD_DEFINED__
  229. #define __ITfCompartment_FWD_DEFINED__
  230. typedef interface ITfCompartment ITfCompartment;
  231. #endif /* __ITfCompartment_FWD_DEFINED__ */
  232. #ifndef __ITfCompartmentEventSink_FWD_DEFINED__
  233. #define __ITfCompartmentEventSink_FWD_DEFINED__
  234. typedef interface ITfCompartmentEventSink ITfCompartmentEventSink;
  235. #endif /* __ITfCompartmentEventSink_FWD_DEFINED__ */
  236. #ifndef __ITfCompartmentMgr_FWD_DEFINED__
  237. #define __ITfCompartmentMgr_FWD_DEFINED__
  238. typedef interface ITfCompartmentMgr ITfCompartmentMgr;
  239. #endif /* __ITfCompartmentMgr_FWD_DEFINED__ */
  240. #ifndef __ITfFunction_FWD_DEFINED__
  241. #define __ITfFunction_FWD_DEFINED__
  242. typedef interface ITfFunction ITfFunction;
  243. #endif /* __ITfFunction_FWD_DEFINED__ */
  244. #ifndef __ITfFunctionProvider_FWD_DEFINED__
  245. #define __ITfFunctionProvider_FWD_DEFINED__
  246. typedef interface ITfFunctionProvider ITfFunctionProvider;
  247. #endif /* __ITfFunctionProvider_FWD_DEFINED__ */
  248. #ifndef __IEnumTfFunctionProviders_FWD_DEFINED__
  249. #define __IEnumTfFunctionProviders_FWD_DEFINED__
  250. typedef interface IEnumTfFunctionProviders IEnumTfFunctionProviders;
  251. #endif /* __IEnumTfFunctionProviders_FWD_DEFINED__ */
  252. #ifndef __ITfInputProcessorProfiles_FWD_DEFINED__
  253. #define __ITfInputProcessorProfiles_FWD_DEFINED__
  254. typedef interface ITfInputProcessorProfiles ITfInputProcessorProfiles;
  255. #endif /* __ITfInputProcessorProfiles_FWD_DEFINED__ */
  256. #ifndef __ITfActiveLanguageProfileNotifySink_FWD_DEFINED__
  257. #define __ITfActiveLanguageProfileNotifySink_FWD_DEFINED__
  258. typedef interface ITfActiveLanguageProfileNotifySink ITfActiveLanguageProfileNotifySink;
  259. #endif /* __ITfActiveLanguageProfileNotifySink_FWD_DEFINED__ */
  260. #ifndef __IEnumTfLanguageProfiles_FWD_DEFINED__
  261. #define __IEnumTfLanguageProfiles_FWD_DEFINED__
  262. typedef interface IEnumTfLanguageProfiles IEnumTfLanguageProfiles;
  263. #endif /* __IEnumTfLanguageProfiles_FWD_DEFINED__ */
  264. #ifndef __ITfLanguageProfileNotifySink_FWD_DEFINED__
  265. #define __ITfLanguageProfileNotifySink_FWD_DEFINED__
  266. typedef interface ITfLanguageProfileNotifySink ITfLanguageProfileNotifySink;
  267. #endif /* __ITfLanguageProfileNotifySink_FWD_DEFINED__ */
  268. #ifndef __ITfKeystrokeMgr_FWD_DEFINED__
  269. #define __ITfKeystrokeMgr_FWD_DEFINED__
  270. typedef interface ITfKeystrokeMgr ITfKeystrokeMgr;
  271. #endif /* __ITfKeystrokeMgr_FWD_DEFINED__ */
  272. #ifndef __ITfKeyEventSink_FWD_DEFINED__
  273. #define __ITfKeyEventSink_FWD_DEFINED__
  274. typedef interface ITfKeyEventSink ITfKeyEventSink;
  275. #endif /* __ITfKeyEventSink_FWD_DEFINED__ */
  276. #ifndef __ITfKeyTraceEventSink_FWD_DEFINED__
  277. #define __ITfKeyTraceEventSink_FWD_DEFINED__
  278. typedef interface ITfKeyTraceEventSink ITfKeyTraceEventSink;
  279. #endif /* __ITfKeyTraceEventSink_FWD_DEFINED__ */
  280. #ifndef __ITfPreservedKeyNotifySink_FWD_DEFINED__
  281. #define __ITfPreservedKeyNotifySink_FWD_DEFINED__
  282. typedef interface ITfPreservedKeyNotifySink ITfPreservedKeyNotifySink;
  283. #endif /* __ITfPreservedKeyNotifySink_FWD_DEFINED__ */
  284. #ifndef __ITfMessagePump_FWD_DEFINED__
  285. #define __ITfMessagePump_FWD_DEFINED__
  286. typedef interface ITfMessagePump ITfMessagePump;
  287. #endif /* __ITfMessagePump_FWD_DEFINED__ */
  288. #ifndef __ITfThreadFocusSink_FWD_DEFINED__
  289. #define __ITfThreadFocusSink_FWD_DEFINED__
  290. typedef interface ITfThreadFocusSink ITfThreadFocusSink;
  291. #endif /* __ITfThreadFocusSink_FWD_DEFINED__ */
  292. #ifndef __ITfTextInputProcessor_FWD_DEFINED__
  293. #define __ITfTextInputProcessor_FWD_DEFINED__
  294. typedef interface ITfTextInputProcessor ITfTextInputProcessor;
  295. #endif /* __ITfTextInputProcessor_FWD_DEFINED__ */
  296. #ifndef __ITfClientId_FWD_DEFINED__
  297. #define __ITfClientId_FWD_DEFINED__
  298. typedef interface ITfClientId ITfClientId;
  299. #endif /* __ITfClientId_FWD_DEFINED__ */
  300. #ifndef __ITfDisplayAttributeInfo_FWD_DEFINED__
  301. #define __ITfDisplayAttributeInfo_FWD_DEFINED__
  302. typedef interface ITfDisplayAttributeInfo ITfDisplayAttributeInfo;
  303. #endif /* __ITfDisplayAttributeInfo_FWD_DEFINED__ */
  304. #ifndef __IEnumTfDisplayAttributeInfo_FWD_DEFINED__
  305. #define __IEnumTfDisplayAttributeInfo_FWD_DEFINED__
  306. typedef interface IEnumTfDisplayAttributeInfo IEnumTfDisplayAttributeInfo;
  307. #endif /* __IEnumTfDisplayAttributeInfo_FWD_DEFINED__ */
  308. #ifndef __ITfDisplayAttributeProvider_FWD_DEFINED__
  309. #define __ITfDisplayAttributeProvider_FWD_DEFINED__
  310. typedef interface ITfDisplayAttributeProvider ITfDisplayAttributeProvider;
  311. #endif /* __ITfDisplayAttributeProvider_FWD_DEFINED__ */
  312. #ifndef __ITfDisplayAttributeMgr_FWD_DEFINED__
  313. #define __ITfDisplayAttributeMgr_FWD_DEFINED__
  314. typedef interface ITfDisplayAttributeMgr ITfDisplayAttributeMgr;
  315. #endif /* __ITfDisplayAttributeMgr_FWD_DEFINED__ */
  316. #ifndef __ITfDisplayAttributeNotifySink_FWD_DEFINED__
  317. #define __ITfDisplayAttributeNotifySink_FWD_DEFINED__
  318. typedef interface ITfDisplayAttributeNotifySink ITfDisplayAttributeNotifySink;
  319. #endif /* __ITfDisplayAttributeNotifySink_FWD_DEFINED__ */
  320. #ifndef __ITfCategoryMgr_FWD_DEFINED__
  321. #define __ITfCategoryMgr_FWD_DEFINED__
  322. typedef interface ITfCategoryMgr ITfCategoryMgr;
  323. #endif /* __ITfCategoryMgr_FWD_DEFINED__ */
  324. #ifndef __ITfSource_FWD_DEFINED__
  325. #define __ITfSource_FWD_DEFINED__
  326. typedef interface ITfSource ITfSource;
  327. #endif /* __ITfSource_FWD_DEFINED__ */
  328. #ifndef __ITfSourceSingle_FWD_DEFINED__
  329. #define __ITfSourceSingle_FWD_DEFINED__
  330. typedef interface ITfSourceSingle ITfSourceSingle;
  331. #endif /* __ITfSourceSingle_FWD_DEFINED__ */
  332. /* header files for imported files */
  333. #include "oaidl.h"
  334. #include "comcat.h"
  335. #include "textstor.h"
  336. #include "ctfutb.h"
  337. #ifdef __cplusplus
  338. extern "C"{
  339. #endif
  340. void * __RPC_USER MIDL_user_allocate(size_t);
  341. void __RPC_USER MIDL_user_free( void * );
  342. /* interface __MIDL_itf_msctf_0000 */
  343. /* [local] */
  344. //=--------------------------------------------------------------------------=
  345. // msctf.h
  346. // CTF declarations.
  347. //=--------------------------------------------------------------------------=
  348. // (C) Copyright 1995-1999 Microsoft Corporation. All Rights Reserved.
  349. //
  350. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  351. // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  352. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  353. // PARTICULAR PURPOSE.
  354. //=--------------------------------------------------------------------------=
  355. #ifndef MSCTF_DEFINED
  356. #define MSCTF_DEFINED
  357. #include <windows.h>
  358. #ifdef __cplusplus
  359. extern "C" {
  360. #endif /* __cplusplus */
  361. #define TF_E_LOCKED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0500)
  362. #define TF_E_STACKFULL MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0501)
  363. #define TF_E_NOTOWNEDRANGE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0502)
  364. #define TF_E_NOPROVIDER MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0503)
  365. #define TF_E_DISCONNECTED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0504)
  366. #define TF_E_INVALIDVIEW MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0505)
  367. #define TF_E_ALREADY_EXISTS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0506)
  368. #define TF_E_RANGE_NOT_COVERED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0507)
  369. #define TF_E_COMPOSITION_REJECTED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0508)
  370. #define TF_E_INVALIDPOS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0200)
  371. #define TF_E_NOLOCK MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0201)
  372. #define TF_E_NOOBJECT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0202)
  373. #define TF_E_NOSERVICE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0203)
  374. #define TF_E_NOINTERFACE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0204)
  375. #define TF_E_NOSELECTION MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0205)
  376. #define TF_E_NOLAYOUT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0206)
  377. #define TF_E_INVALIDPOINT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0207)
  378. #define TF_E_SYNCHRONOUS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0208)
  379. #define TF_E_READONLY MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0209)
  380. #define TF_E_FORMAT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x020a)
  381. #define TF_E_EMPTYCONTEXT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x020a)
  382. #define TF_S_ASYNC MAKE_HRESULT(SEVERITY_SUCCESS, FACILITY_ITF, 0x0300)
  383. HRESULT WINAPI TF_CreateThreadMgr(ITfThreadMgr **pptim);
  384. HRESULT WINAPI TF_CreateInputProcessorProfiles(ITfInputProcessorProfiles **ppipr);
  385. HRESULT WINAPI TF_CreateDisplayAttributeMgr(ITfDisplayAttributeMgr **ppdam);
  386. HRESULT WINAPI TF_CreateLangBarMgr(ITfLangBarMgr **pppbm);
  387. HRESULT WINAPI TF_CreateLangBarItemMgr(ITfLangBarItemMgr **pplbim);
  388. EXTERN_C const GUID GUID_PROP_TEXTOWNER;
  389. EXTERN_C const GUID GUID_PROP_ATTRIBUTE;
  390. EXTERN_C const GUID GUID_PROP_LANGID;
  391. EXTERN_C const GUID GUID_PROP_READING;
  392. EXTERN_C const GUID GUID_PROP_COMPOSING;
  393. EXTERN_C const CLSID CLSID_TF_ThreadMgr;
  394. EXTERN_C const CLSID CLSID_TF_InputProcessorProfiles;
  395. EXTERN_C const CLSID CLSID_TF_LangBarMgr;
  396. EXTERN_C const CLSID CLSID_TF_DisplayAttributeMgr;
  397. EXTERN_C const CLSID CLSID_TF_CategoryMgr;
  398. EXTERN_C const CLSID CLSID_TF_LangBarItemMgr;
  399. EXTERN_C const GUID GUID_SYSTEM_FUNCTIONPROVIDER;
  400. EXTERN_C const GUID GUID_APP_FUNCTIONPROVIDER;
  401. EXTERN_C const GUID GUID_SERVICE_CTF;
  402. EXTERN_C const GUID GUID_COMPARTMENT_KEYBOARD_DISABLED;
  403. EXTERN_C const GUID GUID_COMPARTMENT_KEYBOARD_OPENCLOSE;
  404. EXTERN_C const GUID GUID_COMPARTMENT_HANDWRITING_OPENCLOSE;
  405. EXTERN_C const GUID GUID_COMPARTMENT_SPEECH_DISABLED;
  406. EXTERN_C const GUID GUID_COMPARTMENT_SPEECH_OPENCLOSE;
  407. EXTERN_C const GUID GUID_COMPARTMENT_PERSISTMENUENABLED;
  408. EXTERN_C const GUID GUID_COMPARTMENT_EMPTYCONTEXT;
  409. EXTERN_C const GUID GUID_COMPARTMENT_TIPUISTATUS;
  410. EXTERN_C const GUID GUID_PROP_MODEBIAS;
  411. EXTERN_C const GUID GUID_MODEBIAS_NONE;
  412. EXTERN_C const GUID GUID_MODEBIAS_FILENAME;
  413. EXTERN_C const GUID GUID_MODEBIAS_READING;
  414. EXTERN_C const GUID GUID_MODEBIAS_DATETIME;
  415. EXTERN_C const GUID GUID_MODEBIAS_NAME;
  416. EXTERN_C const GUID GUID_MODEBIAS_CONVERSATION;
  417. EXTERN_C const GUID GUID_MODEBIAS_NUMERIC;
  418. EXTERN_C const GUID GUID_MODEBIAS_HIRAGANA;
  419. EXTERN_C const GUID GUID_MODEBIAS_KATAKANA;
  420. EXTERN_C const GUID GUID_MODEBIAS_HANGUL;
  421. EXTERN_C const GUID GUID_MODEBIAS_CHINESE;
  422. EXTERN_C const GUID GUID_MODEBIAS_HALFWIDTHKATAKANA;
  423. EXTERN_C const GUID GUID_MODEBIAS_FULLWIDTHALPHANUMERIC;
  424. EXTERN_C const GUID GUID_MODEBIAS_HALFWIDTHALPHANUMERIC;
  425. EXTERN_C const GUID GUID_MODEBIAS_FULLWIDTHHANGUL;
  426. EXTERN_C const GUID GUID_TFCAT_CATEGORY_OF_TIP;
  427. EXTERN_C const GUID GUID_TFCAT_TIP_KEYBOARD;
  428. EXTERN_C const GUID GUID_TFCAT_TIP_SPEECH;
  429. EXTERN_C const GUID GUID_TFCAT_TIP_HANDWRITING;
  430. EXTERN_C const GUID GUID_TFCAT_TIP_LOOKUP;
  431. EXTERN_C const GUID GUID_TFCAT_PROP_AUDIODATA;
  432. EXTERN_C const GUID GUID_TFCAT_PROP_INKDATA;
  433. EXTERN_C const GUID GUID_TFCAT_PROPSTYLE_CUSTOM;
  434. EXTERN_C const GUID GUID_TFCAT_PROPSTYLE_STATIC;
  435. EXTERN_C const GUID GUID_TFCAT_PROPSTYLE_STATICCOMPACT;
  436. EXTERN_C const GUID GUID_TFCAT_DISPLAYATTRIBUTEPROVIDER;
  437. EXTERN_C const GUID GUID_TFCAT_DISPLAYATTRIBUTEPROPERTY;
  438. #define TF_INVALID_GUIDATOM ((TfGuidAtom)0)
  439. #define TF_CLIENTID_NULL ((TfClientId)0)
  440. #define TF_MOD_ALT 0x0001
  441. #define TF_MOD_CONTROL 0x0002
  442. #define TF_MOD_SHIFT 0x0004
  443. #define TF_MOD_RALT 0x0008
  444. #define TF_MOD_RCONTROL 0x0010
  445. #define TF_MOD_RSHIFT 0x0020
  446. #define TF_MOD_LALT 0x0040
  447. #define TF_MOD_LCONTROL 0x0080
  448. #define TF_MOD_LSHIFT 0x0100
  449. #define TF_MOD_ON_KEYUP 0x0200
  450. #define TF_MOD_IGNORE_ALL_MODIFIER 0x0400
  451. #define TF_US_HIDETIPUI 0x00000001
  452. #define TF_DISABLE_SPEECH 0x00000001
  453. #define TF_DISABLE_DICTATION 0x00000002
  454. #define TF_DISABLE_COMMANDING 0x00000004
  455. #define CTF_PROCESS_ATOM TEXT("_CTF_PROCESS_ATOM_")
  456. #define CTF_ENABLE_PROCESS_ATOM TEXT("_CTF_ENABLE_PROCESS_ATOM_")
  457. #ifdef __cplusplus
  458. }
  459. #endif /* __cplusplus */
  460. #if 0
  461. typedef /* [uuid] */ DECLSPEC_UUID("4f5d560f-5ab5-4dde-8c4d-404592857ab0") UINT_PTR HKL;
  462. #endif
  463. typedef /* [uuid] */ DECLSPEC_UUID("7213778c-7bb0-4270-b050-6189ee594e97") DWORD TfEditCookie;
  464. #define TF_INVALID_EDIT_COOKIE ( 0 )
  465. typedef /* [uuid] */ DECLSPEC_UUID("88a9c478-f3ec-4763-8345-cd9250443f8d") DWORD TfGuidAtom;
  466. typedef /* [uuid] */ DECLSPEC_UUID("de403c21-89fd-4f85-8b87-64584d063fbc") DWORD TfClientId;
  467. typedef /* [public][public][uuid] */ DECLSPEC_UUID("01f46108-9d8a-4aef-94dd-1c4df6acd4eb")
  468. enum __MIDL___MIDL_itf_msctf_0000_0001
  469. { TF_PT_NONE = 0,
  470. TF_PT_UNKNOWN = 1,
  471. TF_PT_DWORD = 2,
  472. TF_PT_GUID = 3,
  473. TF_PT_BSTR = 4
  474. } TfPropertyType;
  475. typedef /* [uuid] */ DECLSPEC_UUID("e26d9e1d-691e-4f29-90d7-338dcf1f8cef") struct TF_PERSISTENT_PROPERTY_HEADER_ACP
  476. {
  477. GUID guidType;
  478. LONG ichStart;
  479. LONG cch;
  480. ULONG cb;
  481. DWORD dwPrivate;
  482. CLSID clsidTIP;
  483. } TF_PERSISTENT_PROPERTY_HEADER_ACP;
  484. typedef /* [uuid] */ DECLSPEC_UUID("af9f076f-4937-4285-8600-81dca5c31eb6") struct TF_PERSISTENT_PROPERTY_HEADER_ANCHOR
  485. {
  486. GUID guidType;
  487. IAnchor *paStart;
  488. IAnchor *paEnd;
  489. ULONG cb;
  490. DWORD dwPrivate;
  491. CLSID clsidTIP;
  492. } TF_PERSISTENT_PROPERTY_HEADER_ANCHOR;
  493. typedef /* [uuid] */ DECLSPEC_UUID("e1b5808d-1e46-4c19-84dc-68c5f5978cc8") struct TF_LANGUAGEPROFILE
  494. {
  495. CLSID clsid;
  496. LANGID langid;
  497. GUID catid;
  498. BOOL fActive;
  499. GUID guidProfile;
  500. } TF_LANGUAGEPROFILE;
  501. typedef /* [public][public][public][public][public][public][public][public][public][public][public][public][uuid] */ DECLSPEC_UUID("5a886226-ae9a-489b-b991-2b1e25ee59a9")
  502. enum __MIDL___MIDL_itf_msctf_0000_0002
  503. { TF_ANCHOR_START = 0,
  504. TF_ANCHOR_END = 1
  505. } TfAnchor;
  506. extern RPC_IF_HANDLE __MIDL_itf_msctf_0000_v0_0_c_ifspec;
  507. extern RPC_IF_HANDLE __MIDL_itf_msctf_0000_v0_0_s_ifspec;
  508. #ifndef __ITfThreadMgr_INTERFACE_DEFINED__
  509. #define __ITfThreadMgr_INTERFACE_DEFINED__
  510. /* interface ITfThreadMgr */
  511. /* [unique][uuid][local][object] */
  512. EXTERN_C const IID IID_ITfThreadMgr;
  513. #if defined(__cplusplus) && !defined(CINTERFACE)
  514. MIDL_INTERFACE("aa80e801-2021-11d2-93e0-0060b067b86e")
  515. ITfThreadMgr : public IUnknown
  516. {
  517. public:
  518. virtual HRESULT STDMETHODCALLTYPE Activate(
  519. /* [out] */ TfClientId *ptid) = 0;
  520. virtual HRESULT STDMETHODCALLTYPE Deactivate( void) = 0;
  521. virtual HRESULT STDMETHODCALLTYPE CreateDocumentMgr(
  522. /* [out] */ ITfDocumentMgr **ppdim) = 0;
  523. virtual HRESULT STDMETHODCALLTYPE EnumDocumentMgrs(
  524. /* [out] */ IEnumTfDocumentMgrs **ppEnum) = 0;
  525. virtual HRESULT STDMETHODCALLTYPE GetFocus(
  526. /* [out] */ ITfDocumentMgr **ppdimFocus) = 0;
  527. virtual HRESULT STDMETHODCALLTYPE SetFocus(
  528. /* [in] */ ITfDocumentMgr *pdimFocus) = 0;
  529. virtual HRESULT STDMETHODCALLTYPE AssociateFocus(
  530. /* [in] */ HWND hwnd,
  531. /* [unique][in] */ ITfDocumentMgr *pdimNew,
  532. /* [out] */ ITfDocumentMgr **ppdimPrev) = 0;
  533. virtual HRESULT STDMETHODCALLTYPE IsThreadFocus(
  534. /* [out] */ BOOL *pfThreadFocus) = 0;
  535. virtual HRESULT STDMETHODCALLTYPE GetFunctionProvider(
  536. /* [in] */ REFCLSID clsid,
  537. /* [out] */ ITfFunctionProvider **ppFuncProv) = 0;
  538. virtual HRESULT STDMETHODCALLTYPE EnumFunctionProviders(
  539. /* [out] */ IEnumTfFunctionProviders **ppEnum) = 0;
  540. virtual HRESULT STDMETHODCALLTYPE GetGlobalCompartment(
  541. /* [out] */ ITfCompartmentMgr **ppCompMgr) = 0;
  542. };
  543. #else /* C style interface */
  544. typedef struct ITfThreadMgrVtbl
  545. {
  546. BEGIN_INTERFACE
  547. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  548. ITfThreadMgr * This,
  549. /* [in] */ REFIID riid,
  550. /* [iid_is][out] */ void **ppvObject);
  551. ULONG ( STDMETHODCALLTYPE *AddRef )(
  552. ITfThreadMgr * This);
  553. ULONG ( STDMETHODCALLTYPE *Release )(
  554. ITfThreadMgr * This);
  555. HRESULT ( STDMETHODCALLTYPE *Activate )(
  556. ITfThreadMgr * This,
  557. /* [out] */ TfClientId *ptid);
  558. HRESULT ( STDMETHODCALLTYPE *Deactivate )(
  559. ITfThreadMgr * This);
  560. HRESULT ( STDMETHODCALLTYPE *CreateDocumentMgr )(
  561. ITfThreadMgr * This,
  562. /* [out] */ ITfDocumentMgr **ppdim);
  563. HRESULT ( STDMETHODCALLTYPE *EnumDocumentMgrs )(
  564. ITfThreadMgr * This,
  565. /* [out] */ IEnumTfDocumentMgrs **ppEnum);
  566. HRESULT ( STDMETHODCALLTYPE *GetFocus )(
  567. ITfThreadMgr * This,
  568. /* [out] */ ITfDocumentMgr **ppdimFocus);
  569. HRESULT ( STDMETHODCALLTYPE *SetFocus )(
  570. ITfThreadMgr * This,
  571. /* [in] */ ITfDocumentMgr *pdimFocus);
  572. HRESULT ( STDMETHODCALLTYPE *AssociateFocus )(
  573. ITfThreadMgr * This,
  574. /* [in] */ HWND hwnd,
  575. /* [unique][in] */ ITfDocumentMgr *pdimNew,
  576. /* [out] */ ITfDocumentMgr **ppdimPrev);
  577. HRESULT ( STDMETHODCALLTYPE *IsThreadFocus )(
  578. ITfThreadMgr * This,
  579. /* [out] */ BOOL *pfThreadFocus);
  580. HRESULT ( STDMETHODCALLTYPE *GetFunctionProvider )(
  581. ITfThreadMgr * This,
  582. /* [in] */ REFCLSID clsid,
  583. /* [out] */ ITfFunctionProvider **ppFuncProv);
  584. HRESULT ( STDMETHODCALLTYPE *EnumFunctionProviders )(
  585. ITfThreadMgr * This,
  586. /* [out] */ IEnumTfFunctionProviders **ppEnum);
  587. HRESULT ( STDMETHODCALLTYPE *GetGlobalCompartment )(
  588. ITfThreadMgr * This,
  589. /* [out] */ ITfCompartmentMgr **ppCompMgr);
  590. END_INTERFACE
  591. } ITfThreadMgrVtbl;
  592. interface ITfThreadMgr
  593. {
  594. CONST_VTBL struct ITfThreadMgrVtbl *lpVtbl;
  595. };
  596. #ifdef COBJMACROS
  597. #define ITfThreadMgr_QueryInterface(This,riid,ppvObject) \
  598. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  599. #define ITfThreadMgr_AddRef(This) \
  600. (This)->lpVtbl -> AddRef(This)
  601. #define ITfThreadMgr_Release(This) \
  602. (This)->lpVtbl -> Release(This)
  603. #define ITfThreadMgr_Activate(This,ptid) \
  604. (This)->lpVtbl -> Activate(This,ptid)
  605. #define ITfThreadMgr_Deactivate(This) \
  606. (This)->lpVtbl -> Deactivate(This)
  607. #define ITfThreadMgr_CreateDocumentMgr(This,ppdim) \
  608. (This)->lpVtbl -> CreateDocumentMgr(This,ppdim)
  609. #define ITfThreadMgr_EnumDocumentMgrs(This,ppEnum) \
  610. (This)->lpVtbl -> EnumDocumentMgrs(This,ppEnum)
  611. #define ITfThreadMgr_GetFocus(This,ppdimFocus) \
  612. (This)->lpVtbl -> GetFocus(This,ppdimFocus)
  613. #define ITfThreadMgr_SetFocus(This,pdimFocus) \
  614. (This)->lpVtbl -> SetFocus(This,pdimFocus)
  615. #define ITfThreadMgr_AssociateFocus(This,hwnd,pdimNew,ppdimPrev) \
  616. (This)->lpVtbl -> AssociateFocus(This,hwnd,pdimNew,ppdimPrev)
  617. #define ITfThreadMgr_IsThreadFocus(This,pfThreadFocus) \
  618. (This)->lpVtbl -> IsThreadFocus(This,pfThreadFocus)
  619. #define ITfThreadMgr_GetFunctionProvider(This,clsid,ppFuncProv) \
  620. (This)->lpVtbl -> GetFunctionProvider(This,clsid,ppFuncProv)
  621. #define ITfThreadMgr_EnumFunctionProviders(This,ppEnum) \
  622. (This)->lpVtbl -> EnumFunctionProviders(This,ppEnum)
  623. #define ITfThreadMgr_GetGlobalCompartment(This,ppCompMgr) \
  624. (This)->lpVtbl -> GetGlobalCompartment(This,ppCompMgr)
  625. #endif /* COBJMACROS */
  626. #endif /* C style interface */
  627. HRESULT STDMETHODCALLTYPE ITfThreadMgr_Activate_Proxy(
  628. ITfThreadMgr * This,
  629. /* [out] */ TfClientId *ptid);
  630. void __RPC_STUB ITfThreadMgr_Activate_Stub(
  631. IRpcStubBuffer *This,
  632. IRpcChannelBuffer *_pRpcChannelBuffer,
  633. PRPC_MESSAGE _pRpcMessage,
  634. DWORD *_pdwStubPhase);
  635. HRESULT STDMETHODCALLTYPE ITfThreadMgr_Deactivate_Proxy(
  636. ITfThreadMgr * This);
  637. void __RPC_STUB ITfThreadMgr_Deactivate_Stub(
  638. IRpcStubBuffer *This,
  639. IRpcChannelBuffer *_pRpcChannelBuffer,
  640. PRPC_MESSAGE _pRpcMessage,
  641. DWORD *_pdwStubPhase);
  642. HRESULT STDMETHODCALLTYPE ITfThreadMgr_CreateDocumentMgr_Proxy(
  643. ITfThreadMgr * This,
  644. /* [out] */ ITfDocumentMgr **ppdim);
  645. void __RPC_STUB ITfThreadMgr_CreateDocumentMgr_Stub(
  646. IRpcStubBuffer *This,
  647. IRpcChannelBuffer *_pRpcChannelBuffer,
  648. PRPC_MESSAGE _pRpcMessage,
  649. DWORD *_pdwStubPhase);
  650. HRESULT STDMETHODCALLTYPE ITfThreadMgr_EnumDocumentMgrs_Proxy(
  651. ITfThreadMgr * This,
  652. /* [out] */ IEnumTfDocumentMgrs **ppEnum);
  653. void __RPC_STUB ITfThreadMgr_EnumDocumentMgrs_Stub(
  654. IRpcStubBuffer *This,
  655. IRpcChannelBuffer *_pRpcChannelBuffer,
  656. PRPC_MESSAGE _pRpcMessage,
  657. DWORD *_pdwStubPhase);
  658. HRESULT STDMETHODCALLTYPE ITfThreadMgr_GetFocus_Proxy(
  659. ITfThreadMgr * This,
  660. /* [out] */ ITfDocumentMgr **ppdimFocus);
  661. void __RPC_STUB ITfThreadMgr_GetFocus_Stub(
  662. IRpcStubBuffer *This,
  663. IRpcChannelBuffer *_pRpcChannelBuffer,
  664. PRPC_MESSAGE _pRpcMessage,
  665. DWORD *_pdwStubPhase);
  666. HRESULT STDMETHODCALLTYPE ITfThreadMgr_SetFocus_Proxy(
  667. ITfThreadMgr * This,
  668. /* [in] */ ITfDocumentMgr *pdimFocus);
  669. void __RPC_STUB ITfThreadMgr_SetFocus_Stub(
  670. IRpcStubBuffer *This,
  671. IRpcChannelBuffer *_pRpcChannelBuffer,
  672. PRPC_MESSAGE _pRpcMessage,
  673. DWORD *_pdwStubPhase);
  674. HRESULT STDMETHODCALLTYPE ITfThreadMgr_AssociateFocus_Proxy(
  675. ITfThreadMgr * This,
  676. /* [in] */ HWND hwnd,
  677. /* [unique][in] */ ITfDocumentMgr *pdimNew,
  678. /* [out] */ ITfDocumentMgr **ppdimPrev);
  679. void __RPC_STUB ITfThreadMgr_AssociateFocus_Stub(
  680. IRpcStubBuffer *This,
  681. IRpcChannelBuffer *_pRpcChannelBuffer,
  682. PRPC_MESSAGE _pRpcMessage,
  683. DWORD *_pdwStubPhase);
  684. HRESULT STDMETHODCALLTYPE ITfThreadMgr_IsThreadFocus_Proxy(
  685. ITfThreadMgr * This,
  686. /* [out] */ BOOL *pfThreadFocus);
  687. void __RPC_STUB ITfThreadMgr_IsThreadFocus_Stub(
  688. IRpcStubBuffer *This,
  689. IRpcChannelBuffer *_pRpcChannelBuffer,
  690. PRPC_MESSAGE _pRpcMessage,
  691. DWORD *_pdwStubPhase);
  692. HRESULT STDMETHODCALLTYPE ITfThreadMgr_GetFunctionProvider_Proxy(
  693. ITfThreadMgr * This,
  694. /* [in] */ REFCLSID clsid,
  695. /* [out] */ ITfFunctionProvider **ppFuncProv);
  696. void __RPC_STUB ITfThreadMgr_GetFunctionProvider_Stub(
  697. IRpcStubBuffer *This,
  698. IRpcChannelBuffer *_pRpcChannelBuffer,
  699. PRPC_MESSAGE _pRpcMessage,
  700. DWORD *_pdwStubPhase);
  701. HRESULT STDMETHODCALLTYPE ITfThreadMgr_EnumFunctionProviders_Proxy(
  702. ITfThreadMgr * This,
  703. /* [out] */ IEnumTfFunctionProviders **ppEnum);
  704. void __RPC_STUB ITfThreadMgr_EnumFunctionProviders_Stub(
  705. IRpcStubBuffer *This,
  706. IRpcChannelBuffer *_pRpcChannelBuffer,
  707. PRPC_MESSAGE _pRpcMessage,
  708. DWORD *_pdwStubPhase);
  709. HRESULT STDMETHODCALLTYPE ITfThreadMgr_GetGlobalCompartment_Proxy(
  710. ITfThreadMgr * This,
  711. /* [out] */ ITfCompartmentMgr **ppCompMgr);
  712. void __RPC_STUB ITfThreadMgr_GetGlobalCompartment_Stub(
  713. IRpcStubBuffer *This,
  714. IRpcChannelBuffer *_pRpcChannelBuffer,
  715. PRPC_MESSAGE _pRpcMessage,
  716. DWORD *_pdwStubPhase);
  717. #endif /* __ITfThreadMgr_INTERFACE_DEFINED__ */
  718. #ifndef __ITfThreadMgrEventSink_INTERFACE_DEFINED__
  719. #define __ITfThreadMgrEventSink_INTERFACE_DEFINED__
  720. /* interface ITfThreadMgrEventSink */
  721. /* [unique][uuid][object] */
  722. EXTERN_C const IID IID_ITfThreadMgrEventSink;
  723. #if defined(__cplusplus) && !defined(CINTERFACE)
  724. MIDL_INTERFACE("aa80e80e-2021-11d2-93e0-0060b067b86e")
  725. ITfThreadMgrEventSink : public IUnknown
  726. {
  727. public:
  728. virtual HRESULT STDMETHODCALLTYPE OnInitDocumentMgr(
  729. /* [in] */ ITfDocumentMgr *pdim) = 0;
  730. virtual HRESULT STDMETHODCALLTYPE OnUninitDocumentMgr(
  731. /* [in] */ ITfDocumentMgr *pdim) = 0;
  732. virtual HRESULT STDMETHODCALLTYPE OnSetFocus(
  733. /* [in] */ ITfDocumentMgr *pdimFocus,
  734. /* [in] */ ITfDocumentMgr *pdimPrevFocus) = 0;
  735. virtual HRESULT STDMETHODCALLTYPE OnPushContext(
  736. /* [in] */ ITfContext *pic) = 0;
  737. virtual HRESULT STDMETHODCALLTYPE OnPopContext(
  738. /* [in] */ ITfContext *pic) = 0;
  739. };
  740. #else /* C style interface */
  741. typedef struct ITfThreadMgrEventSinkVtbl
  742. {
  743. BEGIN_INTERFACE
  744. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  745. ITfThreadMgrEventSink * This,
  746. /* [in] */ REFIID riid,
  747. /* [iid_is][out] */ void **ppvObject);
  748. ULONG ( STDMETHODCALLTYPE *AddRef )(
  749. ITfThreadMgrEventSink * This);
  750. ULONG ( STDMETHODCALLTYPE *Release )(
  751. ITfThreadMgrEventSink * This);
  752. HRESULT ( STDMETHODCALLTYPE *OnInitDocumentMgr )(
  753. ITfThreadMgrEventSink * This,
  754. /* [in] */ ITfDocumentMgr *pdim);
  755. HRESULT ( STDMETHODCALLTYPE *OnUninitDocumentMgr )(
  756. ITfThreadMgrEventSink * This,
  757. /* [in] */ ITfDocumentMgr *pdim);
  758. HRESULT ( STDMETHODCALLTYPE *OnSetFocus )(
  759. ITfThreadMgrEventSink * This,
  760. /* [in] */ ITfDocumentMgr *pdimFocus,
  761. /* [in] */ ITfDocumentMgr *pdimPrevFocus);
  762. HRESULT ( STDMETHODCALLTYPE *OnPushContext )(
  763. ITfThreadMgrEventSink * This,
  764. /* [in] */ ITfContext *pic);
  765. HRESULT ( STDMETHODCALLTYPE *OnPopContext )(
  766. ITfThreadMgrEventSink * This,
  767. /* [in] */ ITfContext *pic);
  768. END_INTERFACE
  769. } ITfThreadMgrEventSinkVtbl;
  770. interface ITfThreadMgrEventSink
  771. {
  772. CONST_VTBL struct ITfThreadMgrEventSinkVtbl *lpVtbl;
  773. };
  774. #ifdef COBJMACROS
  775. #define ITfThreadMgrEventSink_QueryInterface(This,riid,ppvObject) \
  776. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  777. #define ITfThreadMgrEventSink_AddRef(This) \
  778. (This)->lpVtbl -> AddRef(This)
  779. #define ITfThreadMgrEventSink_Release(This) \
  780. (This)->lpVtbl -> Release(This)
  781. #define ITfThreadMgrEventSink_OnInitDocumentMgr(This,pdim) \
  782. (This)->lpVtbl -> OnInitDocumentMgr(This,pdim)
  783. #define ITfThreadMgrEventSink_OnUninitDocumentMgr(This,pdim) \
  784. (This)->lpVtbl -> OnUninitDocumentMgr(This,pdim)
  785. #define ITfThreadMgrEventSink_OnSetFocus(This,pdimFocus,pdimPrevFocus) \
  786. (This)->lpVtbl -> OnSetFocus(This,pdimFocus,pdimPrevFocus)
  787. #define ITfThreadMgrEventSink_OnPushContext(This,pic) \
  788. (This)->lpVtbl -> OnPushContext(This,pic)
  789. #define ITfThreadMgrEventSink_OnPopContext(This,pic) \
  790. (This)->lpVtbl -> OnPopContext(This,pic)
  791. #endif /* COBJMACROS */
  792. #endif /* C style interface */
  793. HRESULT STDMETHODCALLTYPE ITfThreadMgrEventSink_OnInitDocumentMgr_Proxy(
  794. ITfThreadMgrEventSink * This,
  795. /* [in] */ ITfDocumentMgr *pdim);
  796. void __RPC_STUB ITfThreadMgrEventSink_OnInitDocumentMgr_Stub(
  797. IRpcStubBuffer *This,
  798. IRpcChannelBuffer *_pRpcChannelBuffer,
  799. PRPC_MESSAGE _pRpcMessage,
  800. DWORD *_pdwStubPhase);
  801. HRESULT STDMETHODCALLTYPE ITfThreadMgrEventSink_OnUninitDocumentMgr_Proxy(
  802. ITfThreadMgrEventSink * This,
  803. /* [in] */ ITfDocumentMgr *pdim);
  804. void __RPC_STUB ITfThreadMgrEventSink_OnUninitDocumentMgr_Stub(
  805. IRpcStubBuffer *This,
  806. IRpcChannelBuffer *_pRpcChannelBuffer,
  807. PRPC_MESSAGE _pRpcMessage,
  808. DWORD *_pdwStubPhase);
  809. HRESULT STDMETHODCALLTYPE ITfThreadMgrEventSink_OnSetFocus_Proxy(
  810. ITfThreadMgrEventSink * This,
  811. /* [in] */ ITfDocumentMgr *pdimFocus,
  812. /* [in] */ ITfDocumentMgr *pdimPrevFocus);
  813. void __RPC_STUB ITfThreadMgrEventSink_OnSetFocus_Stub(
  814. IRpcStubBuffer *This,
  815. IRpcChannelBuffer *_pRpcChannelBuffer,
  816. PRPC_MESSAGE _pRpcMessage,
  817. DWORD *_pdwStubPhase);
  818. HRESULT STDMETHODCALLTYPE ITfThreadMgrEventSink_OnPushContext_Proxy(
  819. ITfThreadMgrEventSink * This,
  820. /* [in] */ ITfContext *pic);
  821. void __RPC_STUB ITfThreadMgrEventSink_OnPushContext_Stub(
  822. IRpcStubBuffer *This,
  823. IRpcChannelBuffer *_pRpcChannelBuffer,
  824. PRPC_MESSAGE _pRpcMessage,
  825. DWORD *_pdwStubPhase);
  826. HRESULT STDMETHODCALLTYPE ITfThreadMgrEventSink_OnPopContext_Proxy(
  827. ITfThreadMgrEventSink * This,
  828. /* [in] */ ITfContext *pic);
  829. void __RPC_STUB ITfThreadMgrEventSink_OnPopContext_Stub(
  830. IRpcStubBuffer *This,
  831. IRpcChannelBuffer *_pRpcChannelBuffer,
  832. PRPC_MESSAGE _pRpcMessage,
  833. DWORD *_pdwStubPhase);
  834. #endif /* __ITfThreadMgrEventSink_INTERFACE_DEFINED__ */
  835. #ifndef __ITfConfigureSystemKeystrokeFeed_INTERFACE_DEFINED__
  836. #define __ITfConfigureSystemKeystrokeFeed_INTERFACE_DEFINED__
  837. /* interface ITfConfigureSystemKeystrokeFeed */
  838. /* [unique][uuid][local][object] */
  839. EXTERN_C const IID IID_ITfConfigureSystemKeystrokeFeed;
  840. #if defined(__cplusplus) && !defined(CINTERFACE)
  841. MIDL_INTERFACE("0d2c969a-bc9c-437c-84ee-951c49b1a764")
  842. ITfConfigureSystemKeystrokeFeed : public IUnknown
  843. {
  844. public:
  845. virtual HRESULT STDMETHODCALLTYPE DisableSystemKeystrokeFeed( void) = 0;
  846. virtual HRESULT STDMETHODCALLTYPE EnableSystemKeystrokeFeed( void) = 0;
  847. };
  848. #else /* C style interface */
  849. typedef struct ITfConfigureSystemKeystrokeFeedVtbl
  850. {
  851. BEGIN_INTERFACE
  852. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  853. ITfConfigureSystemKeystrokeFeed * This,
  854. /* [in] */ REFIID riid,
  855. /* [iid_is][out] */ void **ppvObject);
  856. ULONG ( STDMETHODCALLTYPE *AddRef )(
  857. ITfConfigureSystemKeystrokeFeed * This);
  858. ULONG ( STDMETHODCALLTYPE *Release )(
  859. ITfConfigureSystemKeystrokeFeed * This);
  860. HRESULT ( STDMETHODCALLTYPE *DisableSystemKeystrokeFeed )(
  861. ITfConfigureSystemKeystrokeFeed * This);
  862. HRESULT ( STDMETHODCALLTYPE *EnableSystemKeystrokeFeed )(
  863. ITfConfigureSystemKeystrokeFeed * This);
  864. END_INTERFACE
  865. } ITfConfigureSystemKeystrokeFeedVtbl;
  866. interface ITfConfigureSystemKeystrokeFeed
  867. {
  868. CONST_VTBL struct ITfConfigureSystemKeystrokeFeedVtbl *lpVtbl;
  869. };
  870. #ifdef COBJMACROS
  871. #define ITfConfigureSystemKeystrokeFeed_QueryInterface(This,riid,ppvObject) \
  872. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  873. #define ITfConfigureSystemKeystrokeFeed_AddRef(This) \
  874. (This)->lpVtbl -> AddRef(This)
  875. #define ITfConfigureSystemKeystrokeFeed_Release(This) \
  876. (This)->lpVtbl -> Release(This)
  877. #define ITfConfigureSystemKeystrokeFeed_DisableSystemKeystrokeFeed(This) \
  878. (This)->lpVtbl -> DisableSystemKeystrokeFeed(This)
  879. #define ITfConfigureSystemKeystrokeFeed_EnableSystemKeystrokeFeed(This) \
  880. (This)->lpVtbl -> EnableSystemKeystrokeFeed(This)
  881. #endif /* COBJMACROS */
  882. #endif /* C style interface */
  883. HRESULT STDMETHODCALLTYPE ITfConfigureSystemKeystrokeFeed_DisableSystemKeystrokeFeed_Proxy(
  884. ITfConfigureSystemKeystrokeFeed * This);
  885. void __RPC_STUB ITfConfigureSystemKeystrokeFeed_DisableSystemKeystrokeFeed_Stub(
  886. IRpcStubBuffer *This,
  887. IRpcChannelBuffer *_pRpcChannelBuffer,
  888. PRPC_MESSAGE _pRpcMessage,
  889. DWORD *_pdwStubPhase);
  890. HRESULT STDMETHODCALLTYPE ITfConfigureSystemKeystrokeFeed_EnableSystemKeystrokeFeed_Proxy(
  891. ITfConfigureSystemKeystrokeFeed * This);
  892. void __RPC_STUB ITfConfigureSystemKeystrokeFeed_EnableSystemKeystrokeFeed_Stub(
  893. IRpcStubBuffer *This,
  894. IRpcChannelBuffer *_pRpcChannelBuffer,
  895. PRPC_MESSAGE _pRpcMessage,
  896. DWORD *_pdwStubPhase);
  897. #endif /* __ITfConfigureSystemKeystrokeFeed_INTERFACE_DEFINED__ */
  898. #ifndef __IEnumTfDocumentMgrs_INTERFACE_DEFINED__
  899. #define __IEnumTfDocumentMgrs_INTERFACE_DEFINED__
  900. /* interface IEnumTfDocumentMgrs */
  901. /* [unique][uuid][object] */
  902. EXTERN_C const IID IID_IEnumTfDocumentMgrs;
  903. #if defined(__cplusplus) && !defined(CINTERFACE)
  904. MIDL_INTERFACE("aa80e808-2021-11d2-93e0-0060b067b86e")
  905. IEnumTfDocumentMgrs : public IUnknown
  906. {
  907. public:
  908. virtual HRESULT STDMETHODCALLTYPE Clone(
  909. /* [out] */ IEnumTfDocumentMgrs **ppEnum) = 0;
  910. virtual HRESULT STDMETHODCALLTYPE Next(
  911. /* [in] */ ULONG ulCount,
  912. /* [length_is][size_is][out] */ ITfDocumentMgr **rgDocumentMgr,
  913. /* [out] */ ULONG *pcFetched) = 0;
  914. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  915. virtual HRESULT STDMETHODCALLTYPE Skip(
  916. /* [in] */ ULONG ulCount) = 0;
  917. };
  918. #else /* C style interface */
  919. typedef struct IEnumTfDocumentMgrsVtbl
  920. {
  921. BEGIN_INTERFACE
  922. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  923. IEnumTfDocumentMgrs * This,
  924. /* [in] */ REFIID riid,
  925. /* [iid_is][out] */ void **ppvObject);
  926. ULONG ( STDMETHODCALLTYPE *AddRef )(
  927. IEnumTfDocumentMgrs * This);
  928. ULONG ( STDMETHODCALLTYPE *Release )(
  929. IEnumTfDocumentMgrs * This);
  930. HRESULT ( STDMETHODCALLTYPE *Clone )(
  931. IEnumTfDocumentMgrs * This,
  932. /* [out] */ IEnumTfDocumentMgrs **ppEnum);
  933. HRESULT ( STDMETHODCALLTYPE *Next )(
  934. IEnumTfDocumentMgrs * This,
  935. /* [in] */ ULONG ulCount,
  936. /* [length_is][size_is][out] */ ITfDocumentMgr **rgDocumentMgr,
  937. /* [out] */ ULONG *pcFetched);
  938. HRESULT ( STDMETHODCALLTYPE *Reset )(
  939. IEnumTfDocumentMgrs * This);
  940. HRESULT ( STDMETHODCALLTYPE *Skip )(
  941. IEnumTfDocumentMgrs * This,
  942. /* [in] */ ULONG ulCount);
  943. END_INTERFACE
  944. } IEnumTfDocumentMgrsVtbl;
  945. interface IEnumTfDocumentMgrs
  946. {
  947. CONST_VTBL struct IEnumTfDocumentMgrsVtbl *lpVtbl;
  948. };
  949. #ifdef COBJMACROS
  950. #define IEnumTfDocumentMgrs_QueryInterface(This,riid,ppvObject) \
  951. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  952. #define IEnumTfDocumentMgrs_AddRef(This) \
  953. (This)->lpVtbl -> AddRef(This)
  954. #define IEnumTfDocumentMgrs_Release(This) \
  955. (This)->lpVtbl -> Release(This)
  956. #define IEnumTfDocumentMgrs_Clone(This,ppEnum) \
  957. (This)->lpVtbl -> Clone(This,ppEnum)
  958. #define IEnumTfDocumentMgrs_Next(This,ulCount,rgDocumentMgr,pcFetched) \
  959. (This)->lpVtbl -> Next(This,ulCount,rgDocumentMgr,pcFetched)
  960. #define IEnumTfDocumentMgrs_Reset(This) \
  961. (This)->lpVtbl -> Reset(This)
  962. #define IEnumTfDocumentMgrs_Skip(This,ulCount) \
  963. (This)->lpVtbl -> Skip(This,ulCount)
  964. #endif /* COBJMACROS */
  965. #endif /* C style interface */
  966. HRESULT STDMETHODCALLTYPE IEnumTfDocumentMgrs_Clone_Proxy(
  967. IEnumTfDocumentMgrs * This,
  968. /* [out] */ IEnumTfDocumentMgrs **ppEnum);
  969. void __RPC_STUB IEnumTfDocumentMgrs_Clone_Stub(
  970. IRpcStubBuffer *This,
  971. IRpcChannelBuffer *_pRpcChannelBuffer,
  972. PRPC_MESSAGE _pRpcMessage,
  973. DWORD *_pdwStubPhase);
  974. HRESULT STDMETHODCALLTYPE IEnumTfDocumentMgrs_Next_Proxy(
  975. IEnumTfDocumentMgrs * This,
  976. /* [in] */ ULONG ulCount,
  977. /* [length_is][size_is][out] */ ITfDocumentMgr **rgDocumentMgr,
  978. /* [out] */ ULONG *pcFetched);
  979. void __RPC_STUB IEnumTfDocumentMgrs_Next_Stub(
  980. IRpcStubBuffer *This,
  981. IRpcChannelBuffer *_pRpcChannelBuffer,
  982. PRPC_MESSAGE _pRpcMessage,
  983. DWORD *_pdwStubPhase);
  984. HRESULT STDMETHODCALLTYPE IEnumTfDocumentMgrs_Reset_Proxy(
  985. IEnumTfDocumentMgrs * This);
  986. void __RPC_STUB IEnumTfDocumentMgrs_Reset_Stub(
  987. IRpcStubBuffer *This,
  988. IRpcChannelBuffer *_pRpcChannelBuffer,
  989. PRPC_MESSAGE _pRpcMessage,
  990. DWORD *_pdwStubPhase);
  991. HRESULT STDMETHODCALLTYPE IEnumTfDocumentMgrs_Skip_Proxy(
  992. IEnumTfDocumentMgrs * This,
  993. /* [in] */ ULONG ulCount);
  994. void __RPC_STUB IEnumTfDocumentMgrs_Skip_Stub(
  995. IRpcStubBuffer *This,
  996. IRpcChannelBuffer *_pRpcChannelBuffer,
  997. PRPC_MESSAGE _pRpcMessage,
  998. DWORD *_pdwStubPhase);
  999. #endif /* __IEnumTfDocumentMgrs_INTERFACE_DEFINED__ */
  1000. #ifndef __ITfDocumentMgr_INTERFACE_DEFINED__
  1001. #define __ITfDocumentMgr_INTERFACE_DEFINED__
  1002. /* interface ITfDocumentMgr */
  1003. /* [unique][uuid][object] */
  1004. #define TF_PLAINTEXTTSI ( 0x1 )
  1005. #define TF_POPF_ALL ( 0x1 )
  1006. EXTERN_C const IID IID_ITfDocumentMgr;
  1007. #if defined(__cplusplus) && !defined(CINTERFACE)
  1008. MIDL_INTERFACE("aa80e7f4-2021-11d2-93e0-0060b067b86e")
  1009. ITfDocumentMgr : public IUnknown
  1010. {
  1011. public:
  1012. virtual HRESULT STDMETHODCALLTYPE CreateContext(
  1013. /* [in] */ TfClientId tidOwner,
  1014. /* [in] */ DWORD dwFlags,
  1015. /* [unique][in] */ IUnknown *punk,
  1016. /* [out] */ ITfContext **ppic,
  1017. /* [out] */ TfEditCookie *pecTextStore) = 0;
  1018. virtual HRESULT STDMETHODCALLTYPE Push(
  1019. /* [in] */ ITfContext *pic) = 0;
  1020. virtual HRESULT STDMETHODCALLTYPE Pop(
  1021. /* [in] */ DWORD dwFlags) = 0;
  1022. virtual HRESULT STDMETHODCALLTYPE GetTop(
  1023. /* [out] */ ITfContext **ppic) = 0;
  1024. virtual HRESULT STDMETHODCALLTYPE GetBase(
  1025. /* [out] */ ITfContext **ppic) = 0;
  1026. virtual HRESULT STDMETHODCALLTYPE EnumContexts(
  1027. /* [out] */ IEnumTfContexts **ppEnum) = 0;
  1028. };
  1029. #else /* C style interface */
  1030. typedef struct ITfDocumentMgrVtbl
  1031. {
  1032. BEGIN_INTERFACE
  1033. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1034. ITfDocumentMgr * This,
  1035. /* [in] */ REFIID riid,
  1036. /* [iid_is][out] */ void **ppvObject);
  1037. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1038. ITfDocumentMgr * This);
  1039. ULONG ( STDMETHODCALLTYPE *Release )(
  1040. ITfDocumentMgr * This);
  1041. HRESULT ( STDMETHODCALLTYPE *CreateContext )(
  1042. ITfDocumentMgr * This,
  1043. /* [in] */ TfClientId tidOwner,
  1044. /* [in] */ DWORD dwFlags,
  1045. /* [unique][in] */ IUnknown *punk,
  1046. /* [out] */ ITfContext **ppic,
  1047. /* [out] */ TfEditCookie *pecTextStore);
  1048. HRESULT ( STDMETHODCALLTYPE *Push )(
  1049. ITfDocumentMgr * This,
  1050. /* [in] */ ITfContext *pic);
  1051. HRESULT ( STDMETHODCALLTYPE *Pop )(
  1052. ITfDocumentMgr * This,
  1053. /* [in] */ DWORD dwFlags);
  1054. HRESULT ( STDMETHODCALLTYPE *GetTop )(
  1055. ITfDocumentMgr * This,
  1056. /* [out] */ ITfContext **ppic);
  1057. HRESULT ( STDMETHODCALLTYPE *GetBase )(
  1058. ITfDocumentMgr * This,
  1059. /* [out] */ ITfContext **ppic);
  1060. HRESULT ( STDMETHODCALLTYPE *EnumContexts )(
  1061. ITfDocumentMgr * This,
  1062. /* [out] */ IEnumTfContexts **ppEnum);
  1063. END_INTERFACE
  1064. } ITfDocumentMgrVtbl;
  1065. interface ITfDocumentMgr
  1066. {
  1067. CONST_VTBL struct ITfDocumentMgrVtbl *lpVtbl;
  1068. };
  1069. #ifdef COBJMACROS
  1070. #define ITfDocumentMgr_QueryInterface(This,riid,ppvObject) \
  1071. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1072. #define ITfDocumentMgr_AddRef(This) \
  1073. (This)->lpVtbl -> AddRef(This)
  1074. #define ITfDocumentMgr_Release(This) \
  1075. (This)->lpVtbl -> Release(This)
  1076. #define ITfDocumentMgr_CreateContext(This,tidOwner,dwFlags,punk,ppic,pecTextStore) \
  1077. (This)->lpVtbl -> CreateContext(This,tidOwner,dwFlags,punk,ppic,pecTextStore)
  1078. #define ITfDocumentMgr_Push(This,pic) \
  1079. (This)->lpVtbl -> Push(This,pic)
  1080. #define ITfDocumentMgr_Pop(This,dwFlags) \
  1081. (This)->lpVtbl -> Pop(This,dwFlags)
  1082. #define ITfDocumentMgr_GetTop(This,ppic) \
  1083. (This)->lpVtbl -> GetTop(This,ppic)
  1084. #define ITfDocumentMgr_GetBase(This,ppic) \
  1085. (This)->lpVtbl -> GetBase(This,ppic)
  1086. #define ITfDocumentMgr_EnumContexts(This,ppEnum) \
  1087. (This)->lpVtbl -> EnumContexts(This,ppEnum)
  1088. #endif /* COBJMACROS */
  1089. #endif /* C style interface */
  1090. HRESULT STDMETHODCALLTYPE ITfDocumentMgr_CreateContext_Proxy(
  1091. ITfDocumentMgr * This,
  1092. /* [in] */ TfClientId tidOwner,
  1093. /* [in] */ DWORD dwFlags,
  1094. /* [unique][in] */ IUnknown *punk,
  1095. /* [out] */ ITfContext **ppic,
  1096. /* [out] */ TfEditCookie *pecTextStore);
  1097. void __RPC_STUB ITfDocumentMgr_CreateContext_Stub(
  1098. IRpcStubBuffer *This,
  1099. IRpcChannelBuffer *_pRpcChannelBuffer,
  1100. PRPC_MESSAGE _pRpcMessage,
  1101. DWORD *_pdwStubPhase);
  1102. HRESULT STDMETHODCALLTYPE ITfDocumentMgr_Push_Proxy(
  1103. ITfDocumentMgr * This,
  1104. /* [in] */ ITfContext *pic);
  1105. void __RPC_STUB ITfDocumentMgr_Push_Stub(
  1106. IRpcStubBuffer *This,
  1107. IRpcChannelBuffer *_pRpcChannelBuffer,
  1108. PRPC_MESSAGE _pRpcMessage,
  1109. DWORD *_pdwStubPhase);
  1110. HRESULT STDMETHODCALLTYPE ITfDocumentMgr_Pop_Proxy(
  1111. ITfDocumentMgr * This,
  1112. /* [in] */ DWORD dwFlags);
  1113. void __RPC_STUB ITfDocumentMgr_Pop_Stub(
  1114. IRpcStubBuffer *This,
  1115. IRpcChannelBuffer *_pRpcChannelBuffer,
  1116. PRPC_MESSAGE _pRpcMessage,
  1117. DWORD *_pdwStubPhase);
  1118. HRESULT STDMETHODCALLTYPE ITfDocumentMgr_GetTop_Proxy(
  1119. ITfDocumentMgr * This,
  1120. /* [out] */ ITfContext **ppic);
  1121. void __RPC_STUB ITfDocumentMgr_GetTop_Stub(
  1122. IRpcStubBuffer *This,
  1123. IRpcChannelBuffer *_pRpcChannelBuffer,
  1124. PRPC_MESSAGE _pRpcMessage,
  1125. DWORD *_pdwStubPhase);
  1126. HRESULT STDMETHODCALLTYPE ITfDocumentMgr_GetBase_Proxy(
  1127. ITfDocumentMgr * This,
  1128. /* [out] */ ITfContext **ppic);
  1129. void __RPC_STUB ITfDocumentMgr_GetBase_Stub(
  1130. IRpcStubBuffer *This,
  1131. IRpcChannelBuffer *_pRpcChannelBuffer,
  1132. PRPC_MESSAGE _pRpcMessage,
  1133. DWORD *_pdwStubPhase);
  1134. HRESULT STDMETHODCALLTYPE ITfDocumentMgr_EnumContexts_Proxy(
  1135. ITfDocumentMgr * This,
  1136. /* [out] */ IEnumTfContexts **ppEnum);
  1137. void __RPC_STUB ITfDocumentMgr_EnumContexts_Stub(
  1138. IRpcStubBuffer *This,
  1139. IRpcChannelBuffer *_pRpcChannelBuffer,
  1140. PRPC_MESSAGE _pRpcMessage,
  1141. DWORD *_pdwStubPhase);
  1142. #endif /* __ITfDocumentMgr_INTERFACE_DEFINED__ */
  1143. #ifndef __IEnumTfContexts_INTERFACE_DEFINED__
  1144. #define __IEnumTfContexts_INTERFACE_DEFINED__
  1145. /* interface IEnumTfContexts */
  1146. /* [unique][uuid][object] */
  1147. EXTERN_C const IID IID_IEnumTfContexts;
  1148. #if defined(__cplusplus) && !defined(CINTERFACE)
  1149. MIDL_INTERFACE("8f1a7ea6-1654-4502-a86e-b2902344d507")
  1150. IEnumTfContexts : public IUnknown
  1151. {
  1152. public:
  1153. virtual HRESULT STDMETHODCALLTYPE Clone(
  1154. /* [out] */ IEnumTfContexts **ppEnum) = 0;
  1155. virtual HRESULT STDMETHODCALLTYPE Next(
  1156. /* [in] */ ULONG ulCount,
  1157. /* [length_is][size_is][out] */ ITfContext **rgContext,
  1158. /* [out] */ ULONG *pcFetched) = 0;
  1159. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  1160. virtual HRESULT STDMETHODCALLTYPE Skip(
  1161. /* [in] */ ULONG ulCount) = 0;
  1162. };
  1163. #else /* C style interface */
  1164. typedef struct IEnumTfContextsVtbl
  1165. {
  1166. BEGIN_INTERFACE
  1167. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1168. IEnumTfContexts * This,
  1169. /* [in] */ REFIID riid,
  1170. /* [iid_is][out] */ void **ppvObject);
  1171. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1172. IEnumTfContexts * This);
  1173. ULONG ( STDMETHODCALLTYPE *Release )(
  1174. IEnumTfContexts * This);
  1175. HRESULT ( STDMETHODCALLTYPE *Clone )(
  1176. IEnumTfContexts * This,
  1177. /* [out] */ IEnumTfContexts **ppEnum);
  1178. HRESULT ( STDMETHODCALLTYPE *Next )(
  1179. IEnumTfContexts * This,
  1180. /* [in] */ ULONG ulCount,
  1181. /* [length_is][size_is][out] */ ITfContext **rgContext,
  1182. /* [out] */ ULONG *pcFetched);
  1183. HRESULT ( STDMETHODCALLTYPE *Reset )(
  1184. IEnumTfContexts * This);
  1185. HRESULT ( STDMETHODCALLTYPE *Skip )(
  1186. IEnumTfContexts * This,
  1187. /* [in] */ ULONG ulCount);
  1188. END_INTERFACE
  1189. } IEnumTfContextsVtbl;
  1190. interface IEnumTfContexts
  1191. {
  1192. CONST_VTBL struct IEnumTfContextsVtbl *lpVtbl;
  1193. };
  1194. #ifdef COBJMACROS
  1195. #define IEnumTfContexts_QueryInterface(This,riid,ppvObject) \
  1196. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1197. #define IEnumTfContexts_AddRef(This) \
  1198. (This)->lpVtbl -> AddRef(This)
  1199. #define IEnumTfContexts_Release(This) \
  1200. (This)->lpVtbl -> Release(This)
  1201. #define IEnumTfContexts_Clone(This,ppEnum) \
  1202. (This)->lpVtbl -> Clone(This,ppEnum)
  1203. #define IEnumTfContexts_Next(This,ulCount,rgContext,pcFetched) \
  1204. (This)->lpVtbl -> Next(This,ulCount,rgContext,pcFetched)
  1205. #define IEnumTfContexts_Reset(This) \
  1206. (This)->lpVtbl -> Reset(This)
  1207. #define IEnumTfContexts_Skip(This,ulCount) \
  1208. (This)->lpVtbl -> Skip(This,ulCount)
  1209. #endif /* COBJMACROS */
  1210. #endif /* C style interface */
  1211. HRESULT STDMETHODCALLTYPE IEnumTfContexts_Clone_Proxy(
  1212. IEnumTfContexts * This,
  1213. /* [out] */ IEnumTfContexts **ppEnum);
  1214. void __RPC_STUB IEnumTfContexts_Clone_Stub(
  1215. IRpcStubBuffer *This,
  1216. IRpcChannelBuffer *_pRpcChannelBuffer,
  1217. PRPC_MESSAGE _pRpcMessage,
  1218. DWORD *_pdwStubPhase);
  1219. HRESULT STDMETHODCALLTYPE IEnumTfContexts_Next_Proxy(
  1220. IEnumTfContexts * This,
  1221. /* [in] */ ULONG ulCount,
  1222. /* [length_is][size_is][out] */ ITfContext **rgContext,
  1223. /* [out] */ ULONG *pcFetched);
  1224. void __RPC_STUB IEnumTfContexts_Next_Stub(
  1225. IRpcStubBuffer *This,
  1226. IRpcChannelBuffer *_pRpcChannelBuffer,
  1227. PRPC_MESSAGE _pRpcMessage,
  1228. DWORD *_pdwStubPhase);
  1229. HRESULT STDMETHODCALLTYPE IEnumTfContexts_Reset_Proxy(
  1230. IEnumTfContexts * This);
  1231. void __RPC_STUB IEnumTfContexts_Reset_Stub(
  1232. IRpcStubBuffer *This,
  1233. IRpcChannelBuffer *_pRpcChannelBuffer,
  1234. PRPC_MESSAGE _pRpcMessage,
  1235. DWORD *_pdwStubPhase);
  1236. HRESULT STDMETHODCALLTYPE IEnumTfContexts_Skip_Proxy(
  1237. IEnumTfContexts * This,
  1238. /* [in] */ ULONG ulCount);
  1239. void __RPC_STUB IEnumTfContexts_Skip_Stub(
  1240. IRpcStubBuffer *This,
  1241. IRpcChannelBuffer *_pRpcChannelBuffer,
  1242. PRPC_MESSAGE _pRpcMessage,
  1243. DWORD *_pdwStubPhase);
  1244. #endif /* __IEnumTfContexts_INTERFACE_DEFINED__ */
  1245. #ifndef __ITfCompositionView_INTERFACE_DEFINED__
  1246. #define __ITfCompositionView_INTERFACE_DEFINED__
  1247. /* interface ITfCompositionView */
  1248. /* [unique][uuid][object] */
  1249. EXTERN_C const IID IID_ITfCompositionView;
  1250. #if defined(__cplusplus) && !defined(CINTERFACE)
  1251. MIDL_INTERFACE("D7540241-F9A1-4364-BEFC-DBCD2C4395B7")
  1252. ITfCompositionView : public IUnknown
  1253. {
  1254. public:
  1255. virtual HRESULT STDMETHODCALLTYPE GetOwnerClsid(
  1256. /* [out] */ CLSID *pclsid) = 0;
  1257. virtual HRESULT STDMETHODCALLTYPE GetRange(
  1258. /* [out] */ ITfRange **ppRange) = 0;
  1259. };
  1260. #else /* C style interface */
  1261. typedef struct ITfCompositionViewVtbl
  1262. {
  1263. BEGIN_INTERFACE
  1264. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1265. ITfCompositionView * This,
  1266. /* [in] */ REFIID riid,
  1267. /* [iid_is][out] */ void **ppvObject);
  1268. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1269. ITfCompositionView * This);
  1270. ULONG ( STDMETHODCALLTYPE *Release )(
  1271. ITfCompositionView * This);
  1272. HRESULT ( STDMETHODCALLTYPE *GetOwnerClsid )(
  1273. ITfCompositionView * This,
  1274. /* [out] */ CLSID *pclsid);
  1275. HRESULT ( STDMETHODCALLTYPE *GetRange )(
  1276. ITfCompositionView * This,
  1277. /* [out] */ ITfRange **ppRange);
  1278. END_INTERFACE
  1279. } ITfCompositionViewVtbl;
  1280. interface ITfCompositionView
  1281. {
  1282. CONST_VTBL struct ITfCompositionViewVtbl *lpVtbl;
  1283. };
  1284. #ifdef COBJMACROS
  1285. #define ITfCompositionView_QueryInterface(This,riid,ppvObject) \
  1286. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1287. #define ITfCompositionView_AddRef(This) \
  1288. (This)->lpVtbl -> AddRef(This)
  1289. #define ITfCompositionView_Release(This) \
  1290. (This)->lpVtbl -> Release(This)
  1291. #define ITfCompositionView_GetOwnerClsid(This,pclsid) \
  1292. (This)->lpVtbl -> GetOwnerClsid(This,pclsid)
  1293. #define ITfCompositionView_GetRange(This,ppRange) \
  1294. (This)->lpVtbl -> GetRange(This,ppRange)
  1295. #endif /* COBJMACROS */
  1296. #endif /* C style interface */
  1297. HRESULT STDMETHODCALLTYPE ITfCompositionView_GetOwnerClsid_Proxy(
  1298. ITfCompositionView * This,
  1299. /* [out] */ CLSID *pclsid);
  1300. void __RPC_STUB ITfCompositionView_GetOwnerClsid_Stub(
  1301. IRpcStubBuffer *This,
  1302. IRpcChannelBuffer *_pRpcChannelBuffer,
  1303. PRPC_MESSAGE _pRpcMessage,
  1304. DWORD *_pdwStubPhase);
  1305. HRESULT STDMETHODCALLTYPE ITfCompositionView_GetRange_Proxy(
  1306. ITfCompositionView * This,
  1307. /* [out] */ ITfRange **ppRange);
  1308. void __RPC_STUB ITfCompositionView_GetRange_Stub(
  1309. IRpcStubBuffer *This,
  1310. IRpcChannelBuffer *_pRpcChannelBuffer,
  1311. PRPC_MESSAGE _pRpcMessage,
  1312. DWORD *_pdwStubPhase);
  1313. #endif /* __ITfCompositionView_INTERFACE_DEFINED__ */
  1314. #ifndef __IEnumITfCompositionView_INTERFACE_DEFINED__
  1315. #define __IEnumITfCompositionView_INTERFACE_DEFINED__
  1316. /* interface IEnumITfCompositionView */
  1317. /* [unique][uuid][object] */
  1318. EXTERN_C const IID IID_IEnumITfCompositionView;
  1319. #if defined(__cplusplus) && !defined(CINTERFACE)
  1320. MIDL_INTERFACE("5EFD22BA-7838-46CB-88E2-CADB14124F8F")
  1321. IEnumITfCompositionView : public IUnknown
  1322. {
  1323. public:
  1324. virtual HRESULT STDMETHODCALLTYPE Clone(
  1325. /* [out] */ IEnumITfCompositionView **ppEnum) = 0;
  1326. virtual HRESULT STDMETHODCALLTYPE Next(
  1327. /* [in] */ ULONG ulCount,
  1328. /* [length_is][size_is][out] */ ITfCompositionView **rgCompositionView,
  1329. /* [out] */ ULONG *pcFetched) = 0;
  1330. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  1331. virtual HRESULT STDMETHODCALLTYPE Skip(
  1332. /* [in] */ ULONG ulCount) = 0;
  1333. };
  1334. #else /* C style interface */
  1335. typedef struct IEnumITfCompositionViewVtbl
  1336. {
  1337. BEGIN_INTERFACE
  1338. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1339. IEnumITfCompositionView * This,
  1340. /* [in] */ REFIID riid,
  1341. /* [iid_is][out] */ void **ppvObject);
  1342. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1343. IEnumITfCompositionView * This);
  1344. ULONG ( STDMETHODCALLTYPE *Release )(
  1345. IEnumITfCompositionView * This);
  1346. HRESULT ( STDMETHODCALLTYPE *Clone )(
  1347. IEnumITfCompositionView * This,
  1348. /* [out] */ IEnumITfCompositionView **ppEnum);
  1349. HRESULT ( STDMETHODCALLTYPE *Next )(
  1350. IEnumITfCompositionView * This,
  1351. /* [in] */ ULONG ulCount,
  1352. /* [length_is][size_is][out] */ ITfCompositionView **rgCompositionView,
  1353. /* [out] */ ULONG *pcFetched);
  1354. HRESULT ( STDMETHODCALLTYPE *Reset )(
  1355. IEnumITfCompositionView * This);
  1356. HRESULT ( STDMETHODCALLTYPE *Skip )(
  1357. IEnumITfCompositionView * This,
  1358. /* [in] */ ULONG ulCount);
  1359. END_INTERFACE
  1360. } IEnumITfCompositionViewVtbl;
  1361. interface IEnumITfCompositionView
  1362. {
  1363. CONST_VTBL struct IEnumITfCompositionViewVtbl *lpVtbl;
  1364. };
  1365. #ifdef COBJMACROS
  1366. #define IEnumITfCompositionView_QueryInterface(This,riid,ppvObject) \
  1367. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1368. #define IEnumITfCompositionView_AddRef(This) \
  1369. (This)->lpVtbl -> AddRef(This)
  1370. #define IEnumITfCompositionView_Release(This) \
  1371. (This)->lpVtbl -> Release(This)
  1372. #define IEnumITfCompositionView_Clone(This,ppEnum) \
  1373. (This)->lpVtbl -> Clone(This,ppEnum)
  1374. #define IEnumITfCompositionView_Next(This,ulCount,rgCompositionView,pcFetched) \
  1375. (This)->lpVtbl -> Next(This,ulCount,rgCompositionView,pcFetched)
  1376. #define IEnumITfCompositionView_Reset(This) \
  1377. (This)->lpVtbl -> Reset(This)
  1378. #define IEnumITfCompositionView_Skip(This,ulCount) \
  1379. (This)->lpVtbl -> Skip(This,ulCount)
  1380. #endif /* COBJMACROS */
  1381. #endif /* C style interface */
  1382. HRESULT STDMETHODCALLTYPE IEnumITfCompositionView_Clone_Proxy(
  1383. IEnumITfCompositionView * This,
  1384. /* [out] */ IEnumITfCompositionView **ppEnum);
  1385. void __RPC_STUB IEnumITfCompositionView_Clone_Stub(
  1386. IRpcStubBuffer *This,
  1387. IRpcChannelBuffer *_pRpcChannelBuffer,
  1388. PRPC_MESSAGE _pRpcMessage,
  1389. DWORD *_pdwStubPhase);
  1390. HRESULT STDMETHODCALLTYPE IEnumITfCompositionView_Next_Proxy(
  1391. IEnumITfCompositionView * This,
  1392. /* [in] */ ULONG ulCount,
  1393. /* [length_is][size_is][out] */ ITfCompositionView **rgCompositionView,
  1394. /* [out] */ ULONG *pcFetched);
  1395. void __RPC_STUB IEnumITfCompositionView_Next_Stub(
  1396. IRpcStubBuffer *This,
  1397. IRpcChannelBuffer *_pRpcChannelBuffer,
  1398. PRPC_MESSAGE _pRpcMessage,
  1399. DWORD *_pdwStubPhase);
  1400. HRESULT STDMETHODCALLTYPE IEnumITfCompositionView_Reset_Proxy(
  1401. IEnumITfCompositionView * This);
  1402. void __RPC_STUB IEnumITfCompositionView_Reset_Stub(
  1403. IRpcStubBuffer *This,
  1404. IRpcChannelBuffer *_pRpcChannelBuffer,
  1405. PRPC_MESSAGE _pRpcMessage,
  1406. DWORD *_pdwStubPhase);
  1407. HRESULT STDMETHODCALLTYPE IEnumITfCompositionView_Skip_Proxy(
  1408. IEnumITfCompositionView * This,
  1409. /* [in] */ ULONG ulCount);
  1410. void __RPC_STUB IEnumITfCompositionView_Skip_Stub(
  1411. IRpcStubBuffer *This,
  1412. IRpcChannelBuffer *_pRpcChannelBuffer,
  1413. PRPC_MESSAGE _pRpcMessage,
  1414. DWORD *_pdwStubPhase);
  1415. #endif /* __IEnumITfCompositionView_INTERFACE_DEFINED__ */
  1416. #ifndef __ITfComposition_INTERFACE_DEFINED__
  1417. #define __ITfComposition_INTERFACE_DEFINED__
  1418. /* interface ITfComposition */
  1419. /* [unique][uuid][object] */
  1420. EXTERN_C const IID IID_ITfComposition;
  1421. #if defined(__cplusplus) && !defined(CINTERFACE)
  1422. MIDL_INTERFACE("20168D64-5A8F-4A5A-B7BD-CFA29F4D0FD9")
  1423. ITfComposition : public IUnknown
  1424. {
  1425. public:
  1426. virtual HRESULT STDMETHODCALLTYPE GetRange(
  1427. /* [out] */ ITfRange **ppRange) = 0;
  1428. virtual HRESULT STDMETHODCALLTYPE ShiftStart(
  1429. /* [in] */ TfEditCookie ecWrite,
  1430. /* [in] */ ITfRange *pNewStart) = 0;
  1431. virtual HRESULT STDMETHODCALLTYPE ShiftEnd(
  1432. /* [in] */ TfEditCookie ecWrite,
  1433. /* [in] */ ITfRange *pNewEnd) = 0;
  1434. virtual HRESULT STDMETHODCALLTYPE EndComposition(
  1435. /* [in] */ TfEditCookie ecWrite) = 0;
  1436. };
  1437. #else /* C style interface */
  1438. typedef struct ITfCompositionVtbl
  1439. {
  1440. BEGIN_INTERFACE
  1441. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1442. ITfComposition * This,
  1443. /* [in] */ REFIID riid,
  1444. /* [iid_is][out] */ void **ppvObject);
  1445. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1446. ITfComposition * This);
  1447. ULONG ( STDMETHODCALLTYPE *Release )(
  1448. ITfComposition * This);
  1449. HRESULT ( STDMETHODCALLTYPE *GetRange )(
  1450. ITfComposition * This,
  1451. /* [out] */ ITfRange **ppRange);
  1452. HRESULT ( STDMETHODCALLTYPE *ShiftStart )(
  1453. ITfComposition * This,
  1454. /* [in] */ TfEditCookie ecWrite,
  1455. /* [in] */ ITfRange *pNewStart);
  1456. HRESULT ( STDMETHODCALLTYPE *ShiftEnd )(
  1457. ITfComposition * This,
  1458. /* [in] */ TfEditCookie ecWrite,
  1459. /* [in] */ ITfRange *pNewEnd);
  1460. HRESULT ( STDMETHODCALLTYPE *EndComposition )(
  1461. ITfComposition * This,
  1462. /* [in] */ TfEditCookie ecWrite);
  1463. END_INTERFACE
  1464. } ITfCompositionVtbl;
  1465. interface ITfComposition
  1466. {
  1467. CONST_VTBL struct ITfCompositionVtbl *lpVtbl;
  1468. };
  1469. #ifdef COBJMACROS
  1470. #define ITfComposition_QueryInterface(This,riid,ppvObject) \
  1471. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1472. #define ITfComposition_AddRef(This) \
  1473. (This)->lpVtbl -> AddRef(This)
  1474. #define ITfComposition_Release(This) \
  1475. (This)->lpVtbl -> Release(This)
  1476. #define ITfComposition_GetRange(This,ppRange) \
  1477. (This)->lpVtbl -> GetRange(This,ppRange)
  1478. #define ITfComposition_ShiftStart(This,ecWrite,pNewStart) \
  1479. (This)->lpVtbl -> ShiftStart(This,ecWrite,pNewStart)
  1480. #define ITfComposition_ShiftEnd(This,ecWrite,pNewEnd) \
  1481. (This)->lpVtbl -> ShiftEnd(This,ecWrite,pNewEnd)
  1482. #define ITfComposition_EndComposition(This,ecWrite) \
  1483. (This)->lpVtbl -> EndComposition(This,ecWrite)
  1484. #endif /* COBJMACROS */
  1485. #endif /* C style interface */
  1486. HRESULT STDMETHODCALLTYPE ITfComposition_GetRange_Proxy(
  1487. ITfComposition * This,
  1488. /* [out] */ ITfRange **ppRange);
  1489. void __RPC_STUB ITfComposition_GetRange_Stub(
  1490. IRpcStubBuffer *This,
  1491. IRpcChannelBuffer *_pRpcChannelBuffer,
  1492. PRPC_MESSAGE _pRpcMessage,
  1493. DWORD *_pdwStubPhase);
  1494. HRESULT STDMETHODCALLTYPE ITfComposition_ShiftStart_Proxy(
  1495. ITfComposition * This,
  1496. /* [in] */ TfEditCookie ecWrite,
  1497. /* [in] */ ITfRange *pNewStart);
  1498. void __RPC_STUB ITfComposition_ShiftStart_Stub(
  1499. IRpcStubBuffer *This,
  1500. IRpcChannelBuffer *_pRpcChannelBuffer,
  1501. PRPC_MESSAGE _pRpcMessage,
  1502. DWORD *_pdwStubPhase);
  1503. HRESULT STDMETHODCALLTYPE ITfComposition_ShiftEnd_Proxy(
  1504. ITfComposition * This,
  1505. /* [in] */ TfEditCookie ecWrite,
  1506. /* [in] */ ITfRange *pNewEnd);
  1507. void __RPC_STUB ITfComposition_ShiftEnd_Stub(
  1508. IRpcStubBuffer *This,
  1509. IRpcChannelBuffer *_pRpcChannelBuffer,
  1510. PRPC_MESSAGE _pRpcMessage,
  1511. DWORD *_pdwStubPhase);
  1512. HRESULT STDMETHODCALLTYPE ITfComposition_EndComposition_Proxy(
  1513. ITfComposition * This,
  1514. /* [in] */ TfEditCookie ecWrite);
  1515. void __RPC_STUB ITfComposition_EndComposition_Stub(
  1516. IRpcStubBuffer *This,
  1517. IRpcChannelBuffer *_pRpcChannelBuffer,
  1518. PRPC_MESSAGE _pRpcMessage,
  1519. DWORD *_pdwStubPhase);
  1520. #endif /* __ITfComposition_INTERFACE_DEFINED__ */
  1521. #ifndef __ITfCompositionSink_INTERFACE_DEFINED__
  1522. #define __ITfCompositionSink_INTERFACE_DEFINED__
  1523. /* interface ITfCompositionSink */
  1524. /* [unique][uuid][object] */
  1525. EXTERN_C const IID IID_ITfCompositionSink;
  1526. #if defined(__cplusplus) && !defined(CINTERFACE)
  1527. MIDL_INTERFACE("A781718C-579A-4B15-A280-32B8577ACC5E")
  1528. ITfCompositionSink : public IUnknown
  1529. {
  1530. public:
  1531. virtual HRESULT STDMETHODCALLTYPE OnCompositionTerminated(
  1532. /* [in] */ TfEditCookie ecWrite,
  1533. ITfComposition *pComposition) = 0;
  1534. };
  1535. #else /* C style interface */
  1536. typedef struct ITfCompositionSinkVtbl
  1537. {
  1538. BEGIN_INTERFACE
  1539. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1540. ITfCompositionSink * This,
  1541. /* [in] */ REFIID riid,
  1542. /* [iid_is][out] */ void **ppvObject);
  1543. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1544. ITfCompositionSink * This);
  1545. ULONG ( STDMETHODCALLTYPE *Release )(
  1546. ITfCompositionSink * This);
  1547. HRESULT ( STDMETHODCALLTYPE *OnCompositionTerminated )(
  1548. ITfCompositionSink * This,
  1549. /* [in] */ TfEditCookie ecWrite,
  1550. ITfComposition *pComposition);
  1551. END_INTERFACE
  1552. } ITfCompositionSinkVtbl;
  1553. interface ITfCompositionSink
  1554. {
  1555. CONST_VTBL struct ITfCompositionSinkVtbl *lpVtbl;
  1556. };
  1557. #ifdef COBJMACROS
  1558. #define ITfCompositionSink_QueryInterface(This,riid,ppvObject) \
  1559. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1560. #define ITfCompositionSink_AddRef(This) \
  1561. (This)->lpVtbl -> AddRef(This)
  1562. #define ITfCompositionSink_Release(This) \
  1563. (This)->lpVtbl -> Release(This)
  1564. #define ITfCompositionSink_OnCompositionTerminated(This,ecWrite,pComposition) \
  1565. (This)->lpVtbl -> OnCompositionTerminated(This,ecWrite,pComposition)
  1566. #endif /* COBJMACROS */
  1567. #endif /* C style interface */
  1568. HRESULT STDMETHODCALLTYPE ITfCompositionSink_OnCompositionTerminated_Proxy(
  1569. ITfCompositionSink * This,
  1570. /* [in] */ TfEditCookie ecWrite,
  1571. ITfComposition *pComposition);
  1572. void __RPC_STUB ITfCompositionSink_OnCompositionTerminated_Stub(
  1573. IRpcStubBuffer *This,
  1574. IRpcChannelBuffer *_pRpcChannelBuffer,
  1575. PRPC_MESSAGE _pRpcMessage,
  1576. DWORD *_pdwStubPhase);
  1577. #endif /* __ITfCompositionSink_INTERFACE_DEFINED__ */
  1578. #ifndef __ITfContextComposition_INTERFACE_DEFINED__
  1579. #define __ITfContextComposition_INTERFACE_DEFINED__
  1580. /* interface ITfContextComposition */
  1581. /* [unique][uuid][object] */
  1582. EXTERN_C const IID IID_ITfContextComposition;
  1583. #if defined(__cplusplus) && !defined(CINTERFACE)
  1584. MIDL_INTERFACE("D40C8AAE-AC92-4FC7-9A11-0EE0E23AA39B")
  1585. ITfContextComposition : public IUnknown
  1586. {
  1587. public:
  1588. virtual HRESULT STDMETHODCALLTYPE StartComposition(
  1589. /* [in] */ TfEditCookie ecWrite,
  1590. /* [in] */ ITfRange *pCompositionRange,
  1591. /* [in] */ ITfCompositionSink *pSink,
  1592. /* [out] */ ITfComposition **ppComposition) = 0;
  1593. virtual HRESULT STDMETHODCALLTYPE EnumCompositions(
  1594. /* [out] */ IEnumITfCompositionView **ppEnum) = 0;
  1595. virtual HRESULT STDMETHODCALLTYPE FindComposition(
  1596. /* [in] */ TfEditCookie ecRead,
  1597. /* [in] */ ITfRange *pTestRange,
  1598. /* [out] */ IEnumITfCompositionView **ppEnum) = 0;
  1599. virtual HRESULT STDMETHODCALLTYPE TakeOwnerShip(
  1600. /* [in] */ TfEditCookie ecWrite,
  1601. /* [in] */ ITfCompositionView *pComposition,
  1602. /* [in] */ ITfCompositionSink *pSink,
  1603. /* [out] */ ITfComposition **ppComposition) = 0;
  1604. };
  1605. #else /* C style interface */
  1606. typedef struct ITfContextCompositionVtbl
  1607. {
  1608. BEGIN_INTERFACE
  1609. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1610. ITfContextComposition * This,
  1611. /* [in] */ REFIID riid,
  1612. /* [iid_is][out] */ void **ppvObject);
  1613. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1614. ITfContextComposition * This);
  1615. ULONG ( STDMETHODCALLTYPE *Release )(
  1616. ITfContextComposition * This);
  1617. HRESULT ( STDMETHODCALLTYPE *StartComposition )(
  1618. ITfContextComposition * This,
  1619. /* [in] */ TfEditCookie ecWrite,
  1620. /* [in] */ ITfRange *pCompositionRange,
  1621. /* [in] */ ITfCompositionSink *pSink,
  1622. /* [out] */ ITfComposition **ppComposition);
  1623. HRESULT ( STDMETHODCALLTYPE *EnumCompositions )(
  1624. ITfContextComposition * This,
  1625. /* [out] */ IEnumITfCompositionView **ppEnum);
  1626. HRESULT ( STDMETHODCALLTYPE *FindComposition )(
  1627. ITfContextComposition * This,
  1628. /* [in] */ TfEditCookie ecRead,
  1629. /* [in] */ ITfRange *pTestRange,
  1630. /* [out] */ IEnumITfCompositionView **ppEnum);
  1631. HRESULT ( STDMETHODCALLTYPE *TakeOwnerShip )(
  1632. ITfContextComposition * This,
  1633. /* [in] */ TfEditCookie ecWrite,
  1634. /* [in] */ ITfCompositionView *pComposition,
  1635. /* [in] */ ITfCompositionSink *pSink,
  1636. /* [out] */ ITfComposition **ppComposition);
  1637. END_INTERFACE
  1638. } ITfContextCompositionVtbl;
  1639. interface ITfContextComposition
  1640. {
  1641. CONST_VTBL struct ITfContextCompositionVtbl *lpVtbl;
  1642. };
  1643. #ifdef COBJMACROS
  1644. #define ITfContextComposition_QueryInterface(This,riid,ppvObject) \
  1645. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1646. #define ITfContextComposition_AddRef(This) \
  1647. (This)->lpVtbl -> AddRef(This)
  1648. #define ITfContextComposition_Release(This) \
  1649. (This)->lpVtbl -> Release(This)
  1650. #define ITfContextComposition_StartComposition(This,ecWrite,pCompositionRange,pSink,ppComposition) \
  1651. (This)->lpVtbl -> StartComposition(This,ecWrite,pCompositionRange,pSink,ppComposition)
  1652. #define ITfContextComposition_EnumCompositions(This,ppEnum) \
  1653. (This)->lpVtbl -> EnumCompositions(This,ppEnum)
  1654. #define ITfContextComposition_FindComposition(This,ecRead,pTestRange,ppEnum) \
  1655. (This)->lpVtbl -> FindComposition(This,ecRead,pTestRange,ppEnum)
  1656. #define ITfContextComposition_TakeOwnerShip(This,ecWrite,pComposition,pSink,ppComposition) \
  1657. (This)->lpVtbl -> TakeOwnerShip(This,ecWrite,pComposition,pSink,ppComposition)
  1658. #endif /* COBJMACROS */
  1659. #endif /* C style interface */
  1660. HRESULT STDMETHODCALLTYPE ITfContextComposition_StartComposition_Proxy(
  1661. ITfContextComposition * This,
  1662. /* [in] */ TfEditCookie ecWrite,
  1663. /* [in] */ ITfRange *pCompositionRange,
  1664. /* [in] */ ITfCompositionSink *pSink,
  1665. /* [out] */ ITfComposition **ppComposition);
  1666. void __RPC_STUB ITfContextComposition_StartComposition_Stub(
  1667. IRpcStubBuffer *This,
  1668. IRpcChannelBuffer *_pRpcChannelBuffer,
  1669. PRPC_MESSAGE _pRpcMessage,
  1670. DWORD *_pdwStubPhase);
  1671. HRESULT STDMETHODCALLTYPE ITfContextComposition_EnumCompositions_Proxy(
  1672. ITfContextComposition * This,
  1673. /* [out] */ IEnumITfCompositionView **ppEnum);
  1674. void __RPC_STUB ITfContextComposition_EnumCompositions_Stub(
  1675. IRpcStubBuffer *This,
  1676. IRpcChannelBuffer *_pRpcChannelBuffer,
  1677. PRPC_MESSAGE _pRpcMessage,
  1678. DWORD *_pdwStubPhase);
  1679. HRESULT STDMETHODCALLTYPE ITfContextComposition_FindComposition_Proxy(
  1680. ITfContextComposition * This,
  1681. /* [in] */ TfEditCookie ecRead,
  1682. /* [in] */ ITfRange *pTestRange,
  1683. /* [out] */ IEnumITfCompositionView **ppEnum);
  1684. void __RPC_STUB ITfContextComposition_FindComposition_Stub(
  1685. IRpcStubBuffer *This,
  1686. IRpcChannelBuffer *_pRpcChannelBuffer,
  1687. PRPC_MESSAGE _pRpcMessage,
  1688. DWORD *_pdwStubPhase);
  1689. HRESULT STDMETHODCALLTYPE ITfContextComposition_TakeOwnerShip_Proxy(
  1690. ITfContextComposition * This,
  1691. /* [in] */ TfEditCookie ecWrite,
  1692. /* [in] */ ITfCompositionView *pComposition,
  1693. /* [in] */ ITfCompositionSink *pSink,
  1694. /* [out] */ ITfComposition **ppComposition);
  1695. void __RPC_STUB ITfContextComposition_TakeOwnerShip_Stub(
  1696. IRpcStubBuffer *This,
  1697. IRpcChannelBuffer *_pRpcChannelBuffer,
  1698. PRPC_MESSAGE _pRpcMessage,
  1699. DWORD *_pdwStubPhase);
  1700. #endif /* __ITfContextComposition_INTERFACE_DEFINED__ */
  1701. #ifndef __ITfContextOwnerCompositionServices_INTERFACE_DEFINED__
  1702. #define __ITfContextOwnerCompositionServices_INTERFACE_DEFINED__
  1703. /* interface ITfContextOwnerCompositionServices */
  1704. /* [unique][uuid][object] */
  1705. EXTERN_C const IID IID_ITfContextOwnerCompositionServices;
  1706. #if defined(__cplusplus) && !defined(CINTERFACE)
  1707. MIDL_INTERFACE("86462810-593B-4916-9764-19C08E9CE110")
  1708. ITfContextOwnerCompositionServices : public ITfContextComposition
  1709. {
  1710. public:
  1711. virtual HRESULT STDMETHODCALLTYPE TerminateComposition(
  1712. /* [in] */ ITfCompositionView *pComposition) = 0;
  1713. };
  1714. #else /* C style interface */
  1715. typedef struct ITfContextOwnerCompositionServicesVtbl
  1716. {
  1717. BEGIN_INTERFACE
  1718. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1719. ITfContextOwnerCompositionServices * This,
  1720. /* [in] */ REFIID riid,
  1721. /* [iid_is][out] */ void **ppvObject);
  1722. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1723. ITfContextOwnerCompositionServices * This);
  1724. ULONG ( STDMETHODCALLTYPE *Release )(
  1725. ITfContextOwnerCompositionServices * This);
  1726. HRESULT ( STDMETHODCALLTYPE *StartComposition )(
  1727. ITfContextOwnerCompositionServices * This,
  1728. /* [in] */ TfEditCookie ecWrite,
  1729. /* [in] */ ITfRange *pCompositionRange,
  1730. /* [in] */ ITfCompositionSink *pSink,
  1731. /* [out] */ ITfComposition **ppComposition);
  1732. HRESULT ( STDMETHODCALLTYPE *EnumCompositions )(
  1733. ITfContextOwnerCompositionServices * This,
  1734. /* [out] */ IEnumITfCompositionView **ppEnum);
  1735. HRESULT ( STDMETHODCALLTYPE *FindComposition )(
  1736. ITfContextOwnerCompositionServices * This,
  1737. /* [in] */ TfEditCookie ecRead,
  1738. /* [in] */ ITfRange *pTestRange,
  1739. /* [out] */ IEnumITfCompositionView **ppEnum);
  1740. HRESULT ( STDMETHODCALLTYPE *TakeOwnerShip )(
  1741. ITfContextOwnerCompositionServices * This,
  1742. /* [in] */ TfEditCookie ecWrite,
  1743. /* [in] */ ITfCompositionView *pComposition,
  1744. /* [in] */ ITfCompositionSink *pSink,
  1745. /* [out] */ ITfComposition **ppComposition);
  1746. HRESULT ( STDMETHODCALLTYPE *TerminateComposition )(
  1747. ITfContextOwnerCompositionServices * This,
  1748. /* [in] */ ITfCompositionView *pComposition);
  1749. END_INTERFACE
  1750. } ITfContextOwnerCompositionServicesVtbl;
  1751. interface ITfContextOwnerCompositionServices
  1752. {
  1753. CONST_VTBL struct ITfContextOwnerCompositionServicesVtbl *lpVtbl;
  1754. };
  1755. #ifdef COBJMACROS
  1756. #define ITfContextOwnerCompositionServices_QueryInterface(This,riid,ppvObject) \
  1757. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1758. #define ITfContextOwnerCompositionServices_AddRef(This) \
  1759. (This)->lpVtbl -> AddRef(This)
  1760. #define ITfContextOwnerCompositionServices_Release(This) \
  1761. (This)->lpVtbl -> Release(This)
  1762. #define ITfContextOwnerCompositionServices_StartComposition(This,ecWrite,pCompositionRange,pSink,ppComposition) \
  1763. (This)->lpVtbl -> StartComposition(This,ecWrite,pCompositionRange,pSink,ppComposition)
  1764. #define ITfContextOwnerCompositionServices_EnumCompositions(This,ppEnum) \
  1765. (This)->lpVtbl -> EnumCompositions(This,ppEnum)
  1766. #define ITfContextOwnerCompositionServices_FindComposition(This,ecRead,pTestRange,ppEnum) \
  1767. (This)->lpVtbl -> FindComposition(This,ecRead,pTestRange,ppEnum)
  1768. #define ITfContextOwnerCompositionServices_TakeOwnerShip(This,ecWrite,pComposition,pSink,ppComposition) \
  1769. (This)->lpVtbl -> TakeOwnerShip(This,ecWrite,pComposition,pSink,ppComposition)
  1770. #define ITfContextOwnerCompositionServices_TerminateComposition(This,pComposition) \
  1771. (This)->lpVtbl -> TerminateComposition(This,pComposition)
  1772. #endif /* COBJMACROS */
  1773. #endif /* C style interface */
  1774. HRESULT STDMETHODCALLTYPE ITfContextOwnerCompositionServices_TerminateComposition_Proxy(
  1775. ITfContextOwnerCompositionServices * This,
  1776. /* [in] */ ITfCompositionView *pComposition);
  1777. void __RPC_STUB ITfContextOwnerCompositionServices_TerminateComposition_Stub(
  1778. IRpcStubBuffer *This,
  1779. IRpcChannelBuffer *_pRpcChannelBuffer,
  1780. PRPC_MESSAGE _pRpcMessage,
  1781. DWORD *_pdwStubPhase);
  1782. #endif /* __ITfContextOwnerCompositionServices_INTERFACE_DEFINED__ */
  1783. #ifndef __ITfContextOwnerCompositionSink_INTERFACE_DEFINED__
  1784. #define __ITfContextOwnerCompositionSink_INTERFACE_DEFINED__
  1785. /* interface ITfContextOwnerCompositionSink */
  1786. /* [unique][uuid][object] */
  1787. EXTERN_C const IID IID_ITfContextOwnerCompositionSink;
  1788. #if defined(__cplusplus) && !defined(CINTERFACE)
  1789. MIDL_INTERFACE("5F20AA40-B57A-4F34-96AB-3576F377CC79")
  1790. ITfContextOwnerCompositionSink : public IUnknown
  1791. {
  1792. public:
  1793. virtual HRESULT STDMETHODCALLTYPE OnStartComposition(
  1794. /* [in] */ ITfCompositionView *pComposition,
  1795. /* [out] */ BOOL *pfOk) = 0;
  1796. virtual HRESULT STDMETHODCALLTYPE OnUpdateComposition(
  1797. /* [in] */ ITfCompositionView *pComposition,
  1798. /* [in] */ ITfRange *pRangeNew) = 0;
  1799. virtual HRESULT STDMETHODCALLTYPE OnEndComposition(
  1800. /* [in] */ ITfCompositionView *pComposition) = 0;
  1801. };
  1802. #else /* C style interface */
  1803. typedef struct ITfContextOwnerCompositionSinkVtbl
  1804. {
  1805. BEGIN_INTERFACE
  1806. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1807. ITfContextOwnerCompositionSink * This,
  1808. /* [in] */ REFIID riid,
  1809. /* [iid_is][out] */ void **ppvObject);
  1810. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1811. ITfContextOwnerCompositionSink * This);
  1812. ULONG ( STDMETHODCALLTYPE *Release )(
  1813. ITfContextOwnerCompositionSink * This);
  1814. HRESULT ( STDMETHODCALLTYPE *OnStartComposition )(
  1815. ITfContextOwnerCompositionSink * This,
  1816. /* [in] */ ITfCompositionView *pComposition,
  1817. /* [out] */ BOOL *pfOk);
  1818. HRESULT ( STDMETHODCALLTYPE *OnUpdateComposition )(
  1819. ITfContextOwnerCompositionSink * This,
  1820. /* [in] */ ITfCompositionView *pComposition,
  1821. /* [in] */ ITfRange *pRangeNew);
  1822. HRESULT ( STDMETHODCALLTYPE *OnEndComposition )(
  1823. ITfContextOwnerCompositionSink * This,
  1824. /* [in] */ ITfCompositionView *pComposition);
  1825. END_INTERFACE
  1826. } ITfContextOwnerCompositionSinkVtbl;
  1827. interface ITfContextOwnerCompositionSink
  1828. {
  1829. CONST_VTBL struct ITfContextOwnerCompositionSinkVtbl *lpVtbl;
  1830. };
  1831. #ifdef COBJMACROS
  1832. #define ITfContextOwnerCompositionSink_QueryInterface(This,riid,ppvObject) \
  1833. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1834. #define ITfContextOwnerCompositionSink_AddRef(This) \
  1835. (This)->lpVtbl -> AddRef(This)
  1836. #define ITfContextOwnerCompositionSink_Release(This) \
  1837. (This)->lpVtbl -> Release(This)
  1838. #define ITfContextOwnerCompositionSink_OnStartComposition(This,pComposition,pfOk) \
  1839. (This)->lpVtbl -> OnStartComposition(This,pComposition,pfOk)
  1840. #define ITfContextOwnerCompositionSink_OnUpdateComposition(This,pComposition,pRangeNew) \
  1841. (This)->lpVtbl -> OnUpdateComposition(This,pComposition,pRangeNew)
  1842. #define ITfContextOwnerCompositionSink_OnEndComposition(This,pComposition) \
  1843. (This)->lpVtbl -> OnEndComposition(This,pComposition)
  1844. #endif /* COBJMACROS */
  1845. #endif /* C style interface */
  1846. HRESULT STDMETHODCALLTYPE ITfContextOwnerCompositionSink_OnStartComposition_Proxy(
  1847. ITfContextOwnerCompositionSink * This,
  1848. /* [in] */ ITfCompositionView *pComposition,
  1849. /* [out] */ BOOL *pfOk);
  1850. void __RPC_STUB ITfContextOwnerCompositionSink_OnStartComposition_Stub(
  1851. IRpcStubBuffer *This,
  1852. IRpcChannelBuffer *_pRpcChannelBuffer,
  1853. PRPC_MESSAGE _pRpcMessage,
  1854. DWORD *_pdwStubPhase);
  1855. HRESULT STDMETHODCALLTYPE ITfContextOwnerCompositionSink_OnUpdateComposition_Proxy(
  1856. ITfContextOwnerCompositionSink * This,
  1857. /* [in] */ ITfCompositionView *pComposition,
  1858. /* [in] */ ITfRange *pRangeNew);
  1859. void __RPC_STUB ITfContextOwnerCompositionSink_OnUpdateComposition_Stub(
  1860. IRpcStubBuffer *This,
  1861. IRpcChannelBuffer *_pRpcChannelBuffer,
  1862. PRPC_MESSAGE _pRpcMessage,
  1863. DWORD *_pdwStubPhase);
  1864. HRESULT STDMETHODCALLTYPE ITfContextOwnerCompositionSink_OnEndComposition_Proxy(
  1865. ITfContextOwnerCompositionSink * This,
  1866. /* [in] */ ITfCompositionView *pComposition);
  1867. void __RPC_STUB ITfContextOwnerCompositionSink_OnEndComposition_Stub(
  1868. IRpcStubBuffer *This,
  1869. IRpcChannelBuffer *_pRpcChannelBuffer,
  1870. PRPC_MESSAGE _pRpcMessage,
  1871. DWORD *_pdwStubPhase);
  1872. #endif /* __ITfContextOwnerCompositionSink_INTERFACE_DEFINED__ */
  1873. #ifndef __ITfContextView_INTERFACE_DEFINED__
  1874. #define __ITfContextView_INTERFACE_DEFINED__
  1875. /* interface ITfContextView */
  1876. /* [unique][uuid][object] */
  1877. EXTERN_C const IID IID_ITfContextView;
  1878. #if defined(__cplusplus) && !defined(CINTERFACE)
  1879. MIDL_INTERFACE("2433bf8e-0f9b-435c-ba2c-180611978c30")
  1880. ITfContextView : public IUnknown
  1881. {
  1882. public:
  1883. virtual HRESULT STDMETHODCALLTYPE GetRangeFromPoint(
  1884. /* [in] */ TfEditCookie ec,
  1885. /* [in] */ const POINT *ppt,
  1886. /* [in] */ DWORD dwFlags,
  1887. /* [out] */ ITfRange **ppRange) = 0;
  1888. virtual HRESULT STDMETHODCALLTYPE GetTextExt(
  1889. /* [in] */ TfEditCookie ec,
  1890. /* [in] */ ITfRange *pRange,
  1891. /* [out] */ RECT *prc,
  1892. /* [out] */ BOOL *pfClipped) = 0;
  1893. virtual HRESULT STDMETHODCALLTYPE GetScreenExt(
  1894. /* [out] */ RECT *prc) = 0;
  1895. virtual HRESULT STDMETHODCALLTYPE GetWnd(
  1896. /* [out] */ HWND *phwnd) = 0;
  1897. };
  1898. #else /* C style interface */
  1899. typedef struct ITfContextViewVtbl
  1900. {
  1901. BEGIN_INTERFACE
  1902. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1903. ITfContextView * This,
  1904. /* [in] */ REFIID riid,
  1905. /* [iid_is][out] */ void **ppvObject);
  1906. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1907. ITfContextView * This);
  1908. ULONG ( STDMETHODCALLTYPE *Release )(
  1909. ITfContextView * This);
  1910. HRESULT ( STDMETHODCALLTYPE *GetRangeFromPoint )(
  1911. ITfContextView * This,
  1912. /* [in] */ TfEditCookie ec,
  1913. /* [in] */ const POINT *ppt,
  1914. /* [in] */ DWORD dwFlags,
  1915. /* [out] */ ITfRange **ppRange);
  1916. HRESULT ( STDMETHODCALLTYPE *GetTextExt )(
  1917. ITfContextView * This,
  1918. /* [in] */ TfEditCookie ec,
  1919. /* [in] */ ITfRange *pRange,
  1920. /* [out] */ RECT *prc,
  1921. /* [out] */ BOOL *pfClipped);
  1922. HRESULT ( STDMETHODCALLTYPE *GetScreenExt )(
  1923. ITfContextView * This,
  1924. /* [out] */ RECT *prc);
  1925. HRESULT ( STDMETHODCALLTYPE *GetWnd )(
  1926. ITfContextView * This,
  1927. /* [out] */ HWND *phwnd);
  1928. END_INTERFACE
  1929. } ITfContextViewVtbl;
  1930. interface ITfContextView
  1931. {
  1932. CONST_VTBL struct ITfContextViewVtbl *lpVtbl;
  1933. };
  1934. #ifdef COBJMACROS
  1935. #define ITfContextView_QueryInterface(This,riid,ppvObject) \
  1936. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1937. #define ITfContextView_AddRef(This) \
  1938. (This)->lpVtbl -> AddRef(This)
  1939. #define ITfContextView_Release(This) \
  1940. (This)->lpVtbl -> Release(This)
  1941. #define ITfContextView_GetRangeFromPoint(This,ec,ppt,dwFlags,ppRange) \
  1942. (This)->lpVtbl -> GetRangeFromPoint(This,ec,ppt,dwFlags,ppRange)
  1943. #define ITfContextView_GetTextExt(This,ec,pRange,prc,pfClipped) \
  1944. (This)->lpVtbl -> GetTextExt(This,ec,pRange,prc,pfClipped)
  1945. #define ITfContextView_GetScreenExt(This,prc) \
  1946. (This)->lpVtbl -> GetScreenExt(This,prc)
  1947. #define ITfContextView_GetWnd(This,phwnd) \
  1948. (This)->lpVtbl -> GetWnd(This,phwnd)
  1949. #endif /* COBJMACROS */
  1950. #endif /* C style interface */
  1951. HRESULT STDMETHODCALLTYPE ITfContextView_GetRangeFromPoint_Proxy(
  1952. ITfContextView * This,
  1953. /* [in] */ TfEditCookie ec,
  1954. /* [in] */ const POINT *ppt,
  1955. /* [in] */ DWORD dwFlags,
  1956. /* [out] */ ITfRange **ppRange);
  1957. void __RPC_STUB ITfContextView_GetRangeFromPoint_Stub(
  1958. IRpcStubBuffer *This,
  1959. IRpcChannelBuffer *_pRpcChannelBuffer,
  1960. PRPC_MESSAGE _pRpcMessage,
  1961. DWORD *_pdwStubPhase);
  1962. HRESULT STDMETHODCALLTYPE ITfContextView_GetTextExt_Proxy(
  1963. ITfContextView * This,
  1964. /* [in] */ TfEditCookie ec,
  1965. /* [in] */ ITfRange *pRange,
  1966. /* [out] */ RECT *prc,
  1967. /* [out] */ BOOL *pfClipped);
  1968. void __RPC_STUB ITfContextView_GetTextExt_Stub(
  1969. IRpcStubBuffer *This,
  1970. IRpcChannelBuffer *_pRpcChannelBuffer,
  1971. PRPC_MESSAGE _pRpcMessage,
  1972. DWORD *_pdwStubPhase);
  1973. HRESULT STDMETHODCALLTYPE ITfContextView_GetScreenExt_Proxy(
  1974. ITfContextView * This,
  1975. /* [out] */ RECT *prc);
  1976. void __RPC_STUB ITfContextView_GetScreenExt_Stub(
  1977. IRpcStubBuffer *This,
  1978. IRpcChannelBuffer *_pRpcChannelBuffer,
  1979. PRPC_MESSAGE _pRpcMessage,
  1980. DWORD *_pdwStubPhase);
  1981. HRESULT STDMETHODCALLTYPE ITfContextView_GetWnd_Proxy(
  1982. ITfContextView * This,
  1983. /* [out] */ HWND *phwnd);
  1984. void __RPC_STUB ITfContextView_GetWnd_Stub(
  1985. IRpcStubBuffer *This,
  1986. IRpcChannelBuffer *_pRpcChannelBuffer,
  1987. PRPC_MESSAGE _pRpcMessage,
  1988. DWORD *_pdwStubPhase);
  1989. #endif /* __ITfContextView_INTERFACE_DEFINED__ */
  1990. #ifndef __IEnumTfContextViews_INTERFACE_DEFINED__
  1991. #define __IEnumTfContextViews_INTERFACE_DEFINED__
  1992. /* interface IEnumTfContextViews */
  1993. /* [unique][uuid][object] */
  1994. EXTERN_C const IID IID_IEnumTfContextViews;
  1995. #if defined(__cplusplus) && !defined(CINTERFACE)
  1996. MIDL_INTERFACE("F0C0F8DD-CF38-44E1-BB0F-68CF0D551C78")
  1997. IEnumTfContextViews : public IUnknown
  1998. {
  1999. public:
  2000. virtual HRESULT STDMETHODCALLTYPE Clone(
  2001. /* [out] */ IEnumTfContextViews **ppEnum) = 0;
  2002. virtual HRESULT STDMETHODCALLTYPE Next(
  2003. /* [in] */ ULONG ulCount,
  2004. /* [length_is][size_is][out] */ ITfContextView **rgViews,
  2005. /* [out] */ ULONG *pcFetched) = 0;
  2006. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  2007. virtual HRESULT STDMETHODCALLTYPE Skip(
  2008. /* [in] */ ULONG ulCount) = 0;
  2009. };
  2010. #else /* C style interface */
  2011. typedef struct IEnumTfContextViewsVtbl
  2012. {
  2013. BEGIN_INTERFACE
  2014. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2015. IEnumTfContextViews * This,
  2016. /* [in] */ REFIID riid,
  2017. /* [iid_is][out] */ void **ppvObject);
  2018. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2019. IEnumTfContextViews * This);
  2020. ULONG ( STDMETHODCALLTYPE *Release )(
  2021. IEnumTfContextViews * This);
  2022. HRESULT ( STDMETHODCALLTYPE *Clone )(
  2023. IEnumTfContextViews * This,
  2024. /* [out] */ IEnumTfContextViews **ppEnum);
  2025. HRESULT ( STDMETHODCALLTYPE *Next )(
  2026. IEnumTfContextViews * This,
  2027. /* [in] */ ULONG ulCount,
  2028. /* [length_is][size_is][out] */ ITfContextView **rgViews,
  2029. /* [out] */ ULONG *pcFetched);
  2030. HRESULT ( STDMETHODCALLTYPE *Reset )(
  2031. IEnumTfContextViews * This);
  2032. HRESULT ( STDMETHODCALLTYPE *Skip )(
  2033. IEnumTfContextViews * This,
  2034. /* [in] */ ULONG ulCount);
  2035. END_INTERFACE
  2036. } IEnumTfContextViewsVtbl;
  2037. interface IEnumTfContextViews
  2038. {
  2039. CONST_VTBL struct IEnumTfContextViewsVtbl *lpVtbl;
  2040. };
  2041. #ifdef COBJMACROS
  2042. #define IEnumTfContextViews_QueryInterface(This,riid,ppvObject) \
  2043. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2044. #define IEnumTfContextViews_AddRef(This) \
  2045. (This)->lpVtbl -> AddRef(This)
  2046. #define IEnumTfContextViews_Release(This) \
  2047. (This)->lpVtbl -> Release(This)
  2048. #define IEnumTfContextViews_Clone(This,ppEnum) \
  2049. (This)->lpVtbl -> Clone(This,ppEnum)
  2050. #define IEnumTfContextViews_Next(This,ulCount,rgViews,pcFetched) \
  2051. (This)->lpVtbl -> Next(This,ulCount,rgViews,pcFetched)
  2052. #define IEnumTfContextViews_Reset(This) \
  2053. (This)->lpVtbl -> Reset(This)
  2054. #define IEnumTfContextViews_Skip(This,ulCount) \
  2055. (This)->lpVtbl -> Skip(This,ulCount)
  2056. #endif /* COBJMACROS */
  2057. #endif /* C style interface */
  2058. HRESULT STDMETHODCALLTYPE IEnumTfContextViews_Clone_Proxy(
  2059. IEnumTfContextViews * This,
  2060. /* [out] */ IEnumTfContextViews **ppEnum);
  2061. void __RPC_STUB IEnumTfContextViews_Clone_Stub(
  2062. IRpcStubBuffer *This,
  2063. IRpcChannelBuffer *_pRpcChannelBuffer,
  2064. PRPC_MESSAGE _pRpcMessage,
  2065. DWORD *_pdwStubPhase);
  2066. HRESULT STDMETHODCALLTYPE IEnumTfContextViews_Next_Proxy(
  2067. IEnumTfContextViews * This,
  2068. /* [in] */ ULONG ulCount,
  2069. /* [length_is][size_is][out] */ ITfContextView **rgViews,
  2070. /* [out] */ ULONG *pcFetched);
  2071. void __RPC_STUB IEnumTfContextViews_Next_Stub(
  2072. IRpcStubBuffer *This,
  2073. IRpcChannelBuffer *_pRpcChannelBuffer,
  2074. PRPC_MESSAGE _pRpcMessage,
  2075. DWORD *_pdwStubPhase);
  2076. HRESULT STDMETHODCALLTYPE IEnumTfContextViews_Reset_Proxy(
  2077. IEnumTfContextViews * This);
  2078. void __RPC_STUB IEnumTfContextViews_Reset_Stub(
  2079. IRpcStubBuffer *This,
  2080. IRpcChannelBuffer *_pRpcChannelBuffer,
  2081. PRPC_MESSAGE _pRpcMessage,
  2082. DWORD *_pdwStubPhase);
  2083. HRESULT STDMETHODCALLTYPE IEnumTfContextViews_Skip_Proxy(
  2084. IEnumTfContextViews * This,
  2085. /* [in] */ ULONG ulCount);
  2086. void __RPC_STUB IEnumTfContextViews_Skip_Stub(
  2087. IRpcStubBuffer *This,
  2088. IRpcChannelBuffer *_pRpcChannelBuffer,
  2089. PRPC_MESSAGE _pRpcMessage,
  2090. DWORD *_pdwStubPhase);
  2091. #endif /* __IEnumTfContextViews_INTERFACE_DEFINED__ */
  2092. #ifndef __ITfContext_INTERFACE_DEFINED__
  2093. #define __ITfContext_INTERFACE_DEFINED__
  2094. /* interface ITfContext */
  2095. /* [unique][uuid][object] */
  2096. #define TF_ES_ASYNCDONTCARE ( 0 )
  2097. #define TF_ES_SYNC ( 0x1 )
  2098. #define TF_ES_READ ( 0x2 )
  2099. #define TF_ES_READWRITE ( 0x6 )
  2100. #define TF_ES_ASYNC ( 0x8 )
  2101. typedef /* [public][public][public][public][public][uuid] */ DECLSPEC_UUID("1690be9b-d3e9-49f6-8d8b-51b905af4c43")
  2102. enum __MIDL_ITfContext_0001
  2103. { TF_AE_NONE = 0,
  2104. TF_AE_START = 1,
  2105. TF_AE_END = 2
  2106. } TfActiveSelEnd;
  2107. typedef /* [uuid] */ DECLSPEC_UUID("36ae42a4-6989-4bdc-b48a-6137b7bf2e42") struct TF_SELECTIONSTYLE
  2108. {
  2109. TfActiveSelEnd ase;
  2110. BOOL fInterimChar;
  2111. } TF_SELECTIONSTYLE;
  2112. typedef /* [uuid] */ DECLSPEC_UUID("75eb22f2-b0bf-46a8-8006-975a3b6efcf1") struct TF_SELECTION
  2113. {
  2114. ITfRange *range;
  2115. TF_SELECTIONSTYLE style;
  2116. } TF_SELECTION;
  2117. #define TF_DEFAULT_SELECTION ( TS_DEFAULT_SELECTION )
  2118. #define TF_SD_READONLY ( TS_SD_READONLY )
  2119. #define TF_SD_LOADING ( TS_SD_LOADING )
  2120. #define TF_SS_DISJOINTSEL ( TS_SS_DISJOINTSEL )
  2121. #define TF_SS_REGIONS ( TS_SS_REGIONS )
  2122. #define TF_SS_TRANSITORY ( TS_SS_TRANSITORY )
  2123. typedef /* [uuid] */ DECLSPEC_UUID("bc7d979a-846a-444d-afef-0a9bfa82b961") TS_STATUS TF_STATUS;
  2124. EXTERN_C const IID IID_ITfContext;
  2125. #if defined(__cplusplus) && !defined(CINTERFACE)
  2126. MIDL_INTERFACE("aa80e7fd-2021-11d2-93e0-0060b067b86e")
  2127. ITfContext : public IUnknown
  2128. {
  2129. public:
  2130. virtual HRESULT STDMETHODCALLTYPE EditSession(
  2131. /* [in] */ TfClientId tid,
  2132. /* [in] */ ITfEditSession *pes,
  2133. /* [in] */ DWORD dwFlags,
  2134. /* [out] */ HRESULT *phrSession) = 0;
  2135. virtual HRESULT STDMETHODCALLTYPE InWriteSession(
  2136. /* [in] */ TfClientId tid,
  2137. /* [out] */ BOOL *pfWriteSession) = 0;
  2138. virtual HRESULT STDMETHODCALLTYPE GetSelection(
  2139. /* [in] */ TfEditCookie ec,
  2140. /* [in] */ ULONG ulIndex,
  2141. /* [in] */ ULONG ulCount,
  2142. /* [length_is][size_is][out] */ TF_SELECTION *pSelection,
  2143. /* [out] */ ULONG *pcFetched) = 0;
  2144. virtual HRESULT STDMETHODCALLTYPE SetSelection(
  2145. /* [in] */ TfEditCookie ec,
  2146. /* [in] */ ULONG ulCount,
  2147. /* [in] */ const TF_SELECTION *pSelection) = 0;
  2148. virtual HRESULT STDMETHODCALLTYPE GetStart(
  2149. /* [in] */ TfEditCookie ec,
  2150. /* [out] */ ITfRange **ppStart) = 0;
  2151. virtual HRESULT STDMETHODCALLTYPE GetEnd(
  2152. /* [in] */ TfEditCookie ec,
  2153. /* [out] */ ITfRange **ppEnd) = 0;
  2154. virtual HRESULT STDMETHODCALLTYPE GetActiveView(
  2155. /* [out] */ ITfContextView **ppView) = 0;
  2156. virtual HRESULT STDMETHODCALLTYPE EnumViews(
  2157. /* [out] */ IEnumTfContextViews **ppEnum) = 0;
  2158. virtual HRESULT STDMETHODCALLTYPE GetStatus(
  2159. /* [out] */ TF_STATUS *pdcs) = 0;
  2160. virtual HRESULT STDMETHODCALLTYPE GetProperty(
  2161. /* [in] */ REFGUID guidProp,
  2162. /* [out] */ ITfProperty **ppProp) = 0;
  2163. virtual HRESULT STDMETHODCALLTYPE GetAppProperty(
  2164. /* [in] */ REFGUID guidProp,
  2165. /* [out] */ ITfReadOnlyProperty **ppProp) = 0;
  2166. virtual HRESULT STDMETHODCALLTYPE TrackProperties(
  2167. /* [size_is][in] */ const GUID **prgProp,
  2168. /* [in] */ ULONG cProp,
  2169. /* [size_is][in] */ const GUID **prgAppProp,
  2170. /* [in] */ ULONG cAppProp,
  2171. /* [out] */ ITfReadOnlyProperty **ppProperty) = 0;
  2172. virtual HRESULT STDMETHODCALLTYPE EnumProperties(
  2173. /* [out] */ IEnumTfProperties **ppEnum) = 0;
  2174. virtual HRESULT STDMETHODCALLTYPE GetDocumentMgr(
  2175. /* [out] */ ITfDocumentMgr **ppDm) = 0;
  2176. virtual HRESULT STDMETHODCALLTYPE CreateRangeBackup(
  2177. /* [in] */ TfEditCookie ec,
  2178. /* [in] */ ITfRange *pRange,
  2179. /* [out] */ ITfRangeBackup **ppBackup) = 0;
  2180. };
  2181. #else /* C style interface */
  2182. typedef struct ITfContextVtbl
  2183. {
  2184. BEGIN_INTERFACE
  2185. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2186. ITfContext * This,
  2187. /* [in] */ REFIID riid,
  2188. /* [iid_is][out] */ void **ppvObject);
  2189. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2190. ITfContext * This);
  2191. ULONG ( STDMETHODCALLTYPE *Release )(
  2192. ITfContext * This);
  2193. HRESULT ( STDMETHODCALLTYPE *EditSession )(
  2194. ITfContext * This,
  2195. /* [in] */ TfClientId tid,
  2196. /* [in] */ ITfEditSession *pes,
  2197. /* [in] */ DWORD dwFlags,
  2198. /* [out] */ HRESULT *phrSession);
  2199. HRESULT ( STDMETHODCALLTYPE *InWriteSession )(
  2200. ITfContext * This,
  2201. /* [in] */ TfClientId tid,
  2202. /* [out] */ BOOL *pfWriteSession);
  2203. HRESULT ( STDMETHODCALLTYPE *GetSelection )(
  2204. ITfContext * This,
  2205. /* [in] */ TfEditCookie ec,
  2206. /* [in] */ ULONG ulIndex,
  2207. /* [in] */ ULONG ulCount,
  2208. /* [length_is][size_is][out] */ TF_SELECTION *pSelection,
  2209. /* [out] */ ULONG *pcFetched);
  2210. HRESULT ( STDMETHODCALLTYPE *SetSelection )(
  2211. ITfContext * This,
  2212. /* [in] */ TfEditCookie ec,
  2213. /* [in] */ ULONG ulCount,
  2214. /* [in] */ const TF_SELECTION *pSelection);
  2215. HRESULT ( STDMETHODCALLTYPE *GetStart )(
  2216. ITfContext * This,
  2217. /* [in] */ TfEditCookie ec,
  2218. /* [out] */ ITfRange **ppStart);
  2219. HRESULT ( STDMETHODCALLTYPE *GetEnd )(
  2220. ITfContext * This,
  2221. /* [in] */ TfEditCookie ec,
  2222. /* [out] */ ITfRange **ppEnd);
  2223. HRESULT ( STDMETHODCALLTYPE *GetActiveView )(
  2224. ITfContext * This,
  2225. /* [out] */ ITfContextView **ppView);
  2226. HRESULT ( STDMETHODCALLTYPE *EnumViews )(
  2227. ITfContext * This,
  2228. /* [out] */ IEnumTfContextViews **ppEnum);
  2229. HRESULT ( STDMETHODCALLTYPE *GetStatus )(
  2230. ITfContext * This,
  2231. /* [out] */ TF_STATUS *pdcs);
  2232. HRESULT ( STDMETHODCALLTYPE *GetProperty )(
  2233. ITfContext * This,
  2234. /* [in] */ REFGUID guidProp,
  2235. /* [out] */ ITfProperty **ppProp);
  2236. HRESULT ( STDMETHODCALLTYPE *GetAppProperty )(
  2237. ITfContext * This,
  2238. /* [in] */ REFGUID guidProp,
  2239. /* [out] */ ITfReadOnlyProperty **ppProp);
  2240. HRESULT ( STDMETHODCALLTYPE *TrackProperties )(
  2241. ITfContext * This,
  2242. /* [size_is][in] */ const GUID **prgProp,
  2243. /* [in] */ ULONG cProp,
  2244. /* [size_is][in] */ const GUID **prgAppProp,
  2245. /* [in] */ ULONG cAppProp,
  2246. /* [out] */ ITfReadOnlyProperty **ppProperty);
  2247. HRESULT ( STDMETHODCALLTYPE *EnumProperties )(
  2248. ITfContext * This,
  2249. /* [out] */ IEnumTfProperties **ppEnum);
  2250. HRESULT ( STDMETHODCALLTYPE *GetDocumentMgr )(
  2251. ITfContext * This,
  2252. /* [out] */ ITfDocumentMgr **ppDm);
  2253. HRESULT ( STDMETHODCALLTYPE *CreateRangeBackup )(
  2254. ITfContext * This,
  2255. /* [in] */ TfEditCookie ec,
  2256. /* [in] */ ITfRange *pRange,
  2257. /* [out] */ ITfRangeBackup **ppBackup);
  2258. END_INTERFACE
  2259. } ITfContextVtbl;
  2260. interface ITfContext
  2261. {
  2262. CONST_VTBL struct ITfContextVtbl *lpVtbl;
  2263. };
  2264. #ifdef COBJMACROS
  2265. #define ITfContext_QueryInterface(This,riid,ppvObject) \
  2266. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2267. #define ITfContext_AddRef(This) \
  2268. (This)->lpVtbl -> AddRef(This)
  2269. #define ITfContext_Release(This) \
  2270. (This)->lpVtbl -> Release(This)
  2271. #define ITfContext_EditSession(This,tid,pes,dwFlags,phrSession) \
  2272. (This)->lpVtbl -> EditSession(This,tid,pes,dwFlags,phrSession)
  2273. #define ITfContext_InWriteSession(This,tid,pfWriteSession) \
  2274. (This)->lpVtbl -> InWriteSession(This,tid,pfWriteSession)
  2275. #define ITfContext_GetSelection(This,ec,ulIndex,ulCount,pSelection,pcFetched) \
  2276. (This)->lpVtbl -> GetSelection(This,ec,ulIndex,ulCount,pSelection,pcFetched)
  2277. #define ITfContext_SetSelection(This,ec,ulCount,pSelection) \
  2278. (This)->lpVtbl -> SetSelection(This,ec,ulCount,pSelection)
  2279. #define ITfContext_GetStart(This,ec,ppStart) \
  2280. (This)->lpVtbl -> GetStart(This,ec,ppStart)
  2281. #define ITfContext_GetEnd(This,ec,ppEnd) \
  2282. (This)->lpVtbl -> GetEnd(This,ec,ppEnd)
  2283. #define ITfContext_GetActiveView(This,ppView) \
  2284. (This)->lpVtbl -> GetActiveView(This,ppView)
  2285. #define ITfContext_EnumViews(This,ppEnum) \
  2286. (This)->lpVtbl -> EnumViews(This,ppEnum)
  2287. #define ITfContext_GetStatus(This,pdcs) \
  2288. (This)->lpVtbl -> GetStatus(This,pdcs)
  2289. #define ITfContext_GetProperty(This,guidProp,ppProp) \
  2290. (This)->lpVtbl -> GetProperty(This,guidProp,ppProp)
  2291. #define ITfContext_GetAppProperty(This,guidProp,ppProp) \
  2292. (This)->lpVtbl -> GetAppProperty(This,guidProp,ppProp)
  2293. #define ITfContext_TrackProperties(This,prgProp,cProp,prgAppProp,cAppProp,ppProperty) \
  2294. (This)->lpVtbl -> TrackProperties(This,prgProp,cProp,prgAppProp,cAppProp,ppProperty)
  2295. #define ITfContext_EnumProperties(This,ppEnum) \
  2296. (This)->lpVtbl -> EnumProperties(This,ppEnum)
  2297. #define ITfContext_GetDocumentMgr(This,ppDm) \
  2298. (This)->lpVtbl -> GetDocumentMgr(This,ppDm)
  2299. #define ITfContext_CreateRangeBackup(This,ec,pRange,ppBackup) \
  2300. (This)->lpVtbl -> CreateRangeBackup(This,ec,pRange,ppBackup)
  2301. #endif /* COBJMACROS */
  2302. #endif /* C style interface */
  2303. HRESULT STDMETHODCALLTYPE ITfContext_EditSession_Proxy(
  2304. ITfContext * This,
  2305. /* [in] */ TfClientId tid,
  2306. /* [in] */ ITfEditSession *pes,
  2307. /* [in] */ DWORD dwFlags,
  2308. /* [out] */ HRESULT *phrSession);
  2309. void __RPC_STUB ITfContext_EditSession_Stub(
  2310. IRpcStubBuffer *This,
  2311. IRpcChannelBuffer *_pRpcChannelBuffer,
  2312. PRPC_MESSAGE _pRpcMessage,
  2313. DWORD *_pdwStubPhase);
  2314. HRESULT STDMETHODCALLTYPE ITfContext_InWriteSession_Proxy(
  2315. ITfContext * This,
  2316. /* [in] */ TfClientId tid,
  2317. /* [out] */ BOOL *pfWriteSession);
  2318. void __RPC_STUB ITfContext_InWriteSession_Stub(
  2319. IRpcStubBuffer *This,
  2320. IRpcChannelBuffer *_pRpcChannelBuffer,
  2321. PRPC_MESSAGE _pRpcMessage,
  2322. DWORD *_pdwStubPhase);
  2323. HRESULT STDMETHODCALLTYPE ITfContext_GetSelection_Proxy(
  2324. ITfContext * This,
  2325. /* [in] */ TfEditCookie ec,
  2326. /* [in] */ ULONG ulIndex,
  2327. /* [in] */ ULONG ulCount,
  2328. /* [length_is][size_is][out] */ TF_SELECTION *pSelection,
  2329. /* [out] */ ULONG *pcFetched);
  2330. void __RPC_STUB ITfContext_GetSelection_Stub(
  2331. IRpcStubBuffer *This,
  2332. IRpcChannelBuffer *_pRpcChannelBuffer,
  2333. PRPC_MESSAGE _pRpcMessage,
  2334. DWORD *_pdwStubPhase);
  2335. HRESULT STDMETHODCALLTYPE ITfContext_SetSelection_Proxy(
  2336. ITfContext * This,
  2337. /* [in] */ TfEditCookie ec,
  2338. /* [in] */ ULONG ulCount,
  2339. /* [in] */ const TF_SELECTION *pSelection);
  2340. void __RPC_STUB ITfContext_SetSelection_Stub(
  2341. IRpcStubBuffer *This,
  2342. IRpcChannelBuffer *_pRpcChannelBuffer,
  2343. PRPC_MESSAGE _pRpcMessage,
  2344. DWORD *_pdwStubPhase);
  2345. HRESULT STDMETHODCALLTYPE ITfContext_GetStart_Proxy(
  2346. ITfContext * This,
  2347. /* [in] */ TfEditCookie ec,
  2348. /* [out] */ ITfRange **ppStart);
  2349. void __RPC_STUB ITfContext_GetStart_Stub(
  2350. IRpcStubBuffer *This,
  2351. IRpcChannelBuffer *_pRpcChannelBuffer,
  2352. PRPC_MESSAGE _pRpcMessage,
  2353. DWORD *_pdwStubPhase);
  2354. HRESULT STDMETHODCALLTYPE ITfContext_GetEnd_Proxy(
  2355. ITfContext * This,
  2356. /* [in] */ TfEditCookie ec,
  2357. /* [out] */ ITfRange **ppEnd);
  2358. void __RPC_STUB ITfContext_GetEnd_Stub(
  2359. IRpcStubBuffer *This,
  2360. IRpcChannelBuffer *_pRpcChannelBuffer,
  2361. PRPC_MESSAGE _pRpcMessage,
  2362. DWORD *_pdwStubPhase);
  2363. HRESULT STDMETHODCALLTYPE ITfContext_GetActiveView_Proxy(
  2364. ITfContext * This,
  2365. /* [out] */ ITfContextView **ppView);
  2366. void __RPC_STUB ITfContext_GetActiveView_Stub(
  2367. IRpcStubBuffer *This,
  2368. IRpcChannelBuffer *_pRpcChannelBuffer,
  2369. PRPC_MESSAGE _pRpcMessage,
  2370. DWORD *_pdwStubPhase);
  2371. HRESULT STDMETHODCALLTYPE ITfContext_EnumViews_Proxy(
  2372. ITfContext * This,
  2373. /* [out] */ IEnumTfContextViews **ppEnum);
  2374. void __RPC_STUB ITfContext_EnumViews_Stub(
  2375. IRpcStubBuffer *This,
  2376. IRpcChannelBuffer *_pRpcChannelBuffer,
  2377. PRPC_MESSAGE _pRpcMessage,
  2378. DWORD *_pdwStubPhase);
  2379. HRESULT STDMETHODCALLTYPE ITfContext_GetStatus_Proxy(
  2380. ITfContext * This,
  2381. /* [out] */ TF_STATUS *pdcs);
  2382. void __RPC_STUB ITfContext_GetStatus_Stub(
  2383. IRpcStubBuffer *This,
  2384. IRpcChannelBuffer *_pRpcChannelBuffer,
  2385. PRPC_MESSAGE _pRpcMessage,
  2386. DWORD *_pdwStubPhase);
  2387. HRESULT STDMETHODCALLTYPE ITfContext_GetProperty_Proxy(
  2388. ITfContext * This,
  2389. /* [in] */ REFGUID guidProp,
  2390. /* [out] */ ITfProperty **ppProp);
  2391. void __RPC_STUB ITfContext_GetProperty_Stub(
  2392. IRpcStubBuffer *This,
  2393. IRpcChannelBuffer *_pRpcChannelBuffer,
  2394. PRPC_MESSAGE _pRpcMessage,
  2395. DWORD *_pdwStubPhase);
  2396. HRESULT STDMETHODCALLTYPE ITfContext_GetAppProperty_Proxy(
  2397. ITfContext * This,
  2398. /* [in] */ REFGUID guidProp,
  2399. /* [out] */ ITfReadOnlyProperty **ppProp);
  2400. void __RPC_STUB ITfContext_GetAppProperty_Stub(
  2401. IRpcStubBuffer *This,
  2402. IRpcChannelBuffer *_pRpcChannelBuffer,
  2403. PRPC_MESSAGE _pRpcMessage,
  2404. DWORD *_pdwStubPhase);
  2405. HRESULT STDMETHODCALLTYPE ITfContext_TrackProperties_Proxy(
  2406. ITfContext * This,
  2407. /* [size_is][in] */ const GUID **prgProp,
  2408. /* [in] */ ULONG cProp,
  2409. /* [size_is][in] */ const GUID **prgAppProp,
  2410. /* [in] */ ULONG cAppProp,
  2411. /* [out] */ ITfReadOnlyProperty **ppProperty);
  2412. void __RPC_STUB ITfContext_TrackProperties_Stub(
  2413. IRpcStubBuffer *This,
  2414. IRpcChannelBuffer *_pRpcChannelBuffer,
  2415. PRPC_MESSAGE _pRpcMessage,
  2416. DWORD *_pdwStubPhase);
  2417. HRESULT STDMETHODCALLTYPE ITfContext_EnumProperties_Proxy(
  2418. ITfContext * This,
  2419. /* [out] */ IEnumTfProperties **ppEnum);
  2420. void __RPC_STUB ITfContext_EnumProperties_Stub(
  2421. IRpcStubBuffer *This,
  2422. IRpcChannelBuffer *_pRpcChannelBuffer,
  2423. PRPC_MESSAGE _pRpcMessage,
  2424. DWORD *_pdwStubPhase);
  2425. HRESULT STDMETHODCALLTYPE ITfContext_GetDocumentMgr_Proxy(
  2426. ITfContext * This,
  2427. /* [out] */ ITfDocumentMgr **ppDm);
  2428. void __RPC_STUB ITfContext_GetDocumentMgr_Stub(
  2429. IRpcStubBuffer *This,
  2430. IRpcChannelBuffer *_pRpcChannelBuffer,
  2431. PRPC_MESSAGE _pRpcMessage,
  2432. DWORD *_pdwStubPhase);
  2433. HRESULT STDMETHODCALLTYPE ITfContext_CreateRangeBackup_Proxy(
  2434. ITfContext * This,
  2435. /* [in] */ TfEditCookie ec,
  2436. /* [in] */ ITfRange *pRange,
  2437. /* [out] */ ITfRangeBackup **ppBackup);
  2438. void __RPC_STUB ITfContext_CreateRangeBackup_Stub(
  2439. IRpcStubBuffer *This,
  2440. IRpcChannelBuffer *_pRpcChannelBuffer,
  2441. PRPC_MESSAGE _pRpcMessage,
  2442. DWORD *_pdwStubPhase);
  2443. #endif /* __ITfContext_INTERFACE_DEFINED__ */
  2444. #ifndef __ITfQueryEmbedded_INTERFACE_DEFINED__
  2445. #define __ITfQueryEmbedded_INTERFACE_DEFINED__
  2446. /* interface ITfQueryEmbedded */
  2447. /* [unique][uuid][object] */
  2448. EXTERN_C const IID IID_ITfQueryEmbedded;
  2449. #if defined(__cplusplus) && !defined(CINTERFACE)
  2450. MIDL_INTERFACE("0fab9bdb-d250-4169-84e5-6be118fdd7a8")
  2451. ITfQueryEmbedded : public IUnknown
  2452. {
  2453. public:
  2454. virtual HRESULT STDMETHODCALLTYPE QueryInsertEmbedded(
  2455. /* [in] */ const GUID *pguidService,
  2456. /* [in] */ const FORMATETC *pFormatEtc,
  2457. /* [out] */ BOOL *pfInsertable) = 0;
  2458. };
  2459. #else /* C style interface */
  2460. typedef struct ITfQueryEmbeddedVtbl
  2461. {
  2462. BEGIN_INTERFACE
  2463. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2464. ITfQueryEmbedded * This,
  2465. /* [in] */ REFIID riid,
  2466. /* [iid_is][out] */ void **ppvObject);
  2467. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2468. ITfQueryEmbedded * This);
  2469. ULONG ( STDMETHODCALLTYPE *Release )(
  2470. ITfQueryEmbedded * This);
  2471. HRESULT ( STDMETHODCALLTYPE *QueryInsertEmbedded )(
  2472. ITfQueryEmbedded * This,
  2473. /* [in] */ const GUID *pguidService,
  2474. /* [in] */ const FORMATETC *pFormatEtc,
  2475. /* [out] */ BOOL *pfInsertable);
  2476. END_INTERFACE
  2477. } ITfQueryEmbeddedVtbl;
  2478. interface ITfQueryEmbedded
  2479. {
  2480. CONST_VTBL struct ITfQueryEmbeddedVtbl *lpVtbl;
  2481. };
  2482. #ifdef COBJMACROS
  2483. #define ITfQueryEmbedded_QueryInterface(This,riid,ppvObject) \
  2484. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2485. #define ITfQueryEmbedded_AddRef(This) \
  2486. (This)->lpVtbl -> AddRef(This)
  2487. #define ITfQueryEmbedded_Release(This) \
  2488. (This)->lpVtbl -> Release(This)
  2489. #define ITfQueryEmbedded_QueryInsertEmbedded(This,pguidService,pFormatEtc,pfInsertable) \
  2490. (This)->lpVtbl -> QueryInsertEmbedded(This,pguidService,pFormatEtc,pfInsertable)
  2491. #endif /* COBJMACROS */
  2492. #endif /* C style interface */
  2493. HRESULT STDMETHODCALLTYPE ITfQueryEmbedded_QueryInsertEmbedded_Proxy(
  2494. ITfQueryEmbedded * This,
  2495. /* [in] */ const GUID *pguidService,
  2496. /* [in] */ const FORMATETC *pFormatEtc,
  2497. /* [out] */ BOOL *pfInsertable);
  2498. void __RPC_STUB ITfQueryEmbedded_QueryInsertEmbedded_Stub(
  2499. IRpcStubBuffer *This,
  2500. IRpcChannelBuffer *_pRpcChannelBuffer,
  2501. PRPC_MESSAGE _pRpcMessage,
  2502. DWORD *_pdwStubPhase);
  2503. #endif /* __ITfQueryEmbedded_INTERFACE_DEFINED__ */
  2504. #ifndef __ITfInsertAtSelection_INTERFACE_DEFINED__
  2505. #define __ITfInsertAtSelection_INTERFACE_DEFINED__
  2506. /* interface ITfInsertAtSelection */
  2507. /* [unique][uuid][object] */
  2508. #define TF_IAS_NOQUERY ( 0x1 )
  2509. #define TF_IAS_QUERYONLY ( 0x2 )
  2510. #define TF_IAS_NO_DEFAULT_COMPOSITION ( 0x80000000 )
  2511. EXTERN_C const IID IID_ITfInsertAtSelection;
  2512. #if defined(__cplusplus) && !defined(CINTERFACE)
  2513. MIDL_INTERFACE("55ce16ba-3014-41c1-9ceb-fade1446ac6c")
  2514. ITfInsertAtSelection : public IUnknown
  2515. {
  2516. public:
  2517. virtual HRESULT STDMETHODCALLTYPE InsertTextAtSelection(
  2518. /* [in] */ TfEditCookie ec,
  2519. /* [in] */ DWORD dwFlags,
  2520. /* [size_is][in] */ const WCHAR *pchText,
  2521. /* [in] */ LONG cch,
  2522. /* [out] */ ITfRange **ppRange) = 0;
  2523. virtual HRESULT STDMETHODCALLTYPE InsertEmbeddedAtSelection(
  2524. /* [in] */ TfEditCookie ec,
  2525. /* [in] */ DWORD dwFlags,
  2526. /* [in] */ IDataObject *pDataObject,
  2527. /* [out] */ ITfRange **ppRange) = 0;
  2528. };
  2529. #else /* C style interface */
  2530. typedef struct ITfInsertAtSelectionVtbl
  2531. {
  2532. BEGIN_INTERFACE
  2533. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2534. ITfInsertAtSelection * This,
  2535. /* [in] */ REFIID riid,
  2536. /* [iid_is][out] */ void **ppvObject);
  2537. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2538. ITfInsertAtSelection * This);
  2539. ULONG ( STDMETHODCALLTYPE *Release )(
  2540. ITfInsertAtSelection * This);
  2541. HRESULT ( STDMETHODCALLTYPE *InsertTextAtSelection )(
  2542. ITfInsertAtSelection * This,
  2543. /* [in] */ TfEditCookie ec,
  2544. /* [in] */ DWORD dwFlags,
  2545. /* [size_is][in] */ const WCHAR *pchText,
  2546. /* [in] */ LONG cch,
  2547. /* [out] */ ITfRange **ppRange);
  2548. HRESULT ( STDMETHODCALLTYPE *InsertEmbeddedAtSelection )(
  2549. ITfInsertAtSelection * This,
  2550. /* [in] */ TfEditCookie ec,
  2551. /* [in] */ DWORD dwFlags,
  2552. /* [in] */ IDataObject *pDataObject,
  2553. /* [out] */ ITfRange **ppRange);
  2554. END_INTERFACE
  2555. } ITfInsertAtSelectionVtbl;
  2556. interface ITfInsertAtSelection
  2557. {
  2558. CONST_VTBL struct ITfInsertAtSelectionVtbl *lpVtbl;
  2559. };
  2560. #ifdef COBJMACROS
  2561. #define ITfInsertAtSelection_QueryInterface(This,riid,ppvObject) \
  2562. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2563. #define ITfInsertAtSelection_AddRef(This) \
  2564. (This)->lpVtbl -> AddRef(This)
  2565. #define ITfInsertAtSelection_Release(This) \
  2566. (This)->lpVtbl -> Release(This)
  2567. #define ITfInsertAtSelection_InsertTextAtSelection(This,ec,dwFlags,pchText,cch,ppRange) \
  2568. (This)->lpVtbl -> InsertTextAtSelection(This,ec,dwFlags,pchText,cch,ppRange)
  2569. #define ITfInsertAtSelection_InsertEmbeddedAtSelection(This,ec,dwFlags,pDataObject,ppRange) \
  2570. (This)->lpVtbl -> InsertEmbeddedAtSelection(This,ec,dwFlags,pDataObject,ppRange)
  2571. #endif /* COBJMACROS */
  2572. #endif /* C style interface */
  2573. HRESULT STDMETHODCALLTYPE ITfInsertAtSelection_InsertTextAtSelection_Proxy(
  2574. ITfInsertAtSelection * This,
  2575. /* [in] */ TfEditCookie ec,
  2576. /* [in] */ DWORD dwFlags,
  2577. /* [size_is][in] */ const WCHAR *pchText,
  2578. /* [in] */ LONG cch,
  2579. /* [out] */ ITfRange **ppRange);
  2580. void __RPC_STUB ITfInsertAtSelection_InsertTextAtSelection_Stub(
  2581. IRpcStubBuffer *This,
  2582. IRpcChannelBuffer *_pRpcChannelBuffer,
  2583. PRPC_MESSAGE _pRpcMessage,
  2584. DWORD *_pdwStubPhase);
  2585. HRESULT STDMETHODCALLTYPE ITfInsertAtSelection_InsertEmbeddedAtSelection_Proxy(
  2586. ITfInsertAtSelection * This,
  2587. /* [in] */ TfEditCookie ec,
  2588. /* [in] */ DWORD dwFlags,
  2589. /* [in] */ IDataObject *pDataObject,
  2590. /* [out] */ ITfRange **ppRange);
  2591. void __RPC_STUB ITfInsertAtSelection_InsertEmbeddedAtSelection_Stub(
  2592. IRpcStubBuffer *This,
  2593. IRpcChannelBuffer *_pRpcChannelBuffer,
  2594. PRPC_MESSAGE _pRpcMessage,
  2595. DWORD *_pdwStubPhase);
  2596. #endif /* __ITfInsertAtSelection_INTERFACE_DEFINED__ */
  2597. #ifndef __ITfCleanupContextSink_INTERFACE_DEFINED__
  2598. #define __ITfCleanupContextSink_INTERFACE_DEFINED__
  2599. /* interface ITfCleanupContextSink */
  2600. /* [unique][uuid][object] */
  2601. EXTERN_C const IID IID_ITfCleanupContextSink;
  2602. #if defined(__cplusplus) && !defined(CINTERFACE)
  2603. MIDL_INTERFACE("01689689-7acb-4e9b-ab7c-7ea46b12b522")
  2604. ITfCleanupContextSink : public IUnknown
  2605. {
  2606. public:
  2607. virtual HRESULT STDMETHODCALLTYPE OnCleanupContext(
  2608. /* [in] */ TfEditCookie ecWrite,
  2609. /* [in] */ ITfContext *pic) = 0;
  2610. };
  2611. #else /* C style interface */
  2612. typedef struct ITfCleanupContextSinkVtbl
  2613. {
  2614. BEGIN_INTERFACE
  2615. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2616. ITfCleanupContextSink * This,
  2617. /* [in] */ REFIID riid,
  2618. /* [iid_is][out] */ void **ppvObject);
  2619. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2620. ITfCleanupContextSink * This);
  2621. ULONG ( STDMETHODCALLTYPE *Release )(
  2622. ITfCleanupContextSink * This);
  2623. HRESULT ( STDMETHODCALLTYPE *OnCleanupContext )(
  2624. ITfCleanupContextSink * This,
  2625. /* [in] */ TfEditCookie ecWrite,
  2626. /* [in] */ ITfContext *pic);
  2627. END_INTERFACE
  2628. } ITfCleanupContextSinkVtbl;
  2629. interface ITfCleanupContextSink
  2630. {
  2631. CONST_VTBL struct ITfCleanupContextSinkVtbl *lpVtbl;
  2632. };
  2633. #ifdef COBJMACROS
  2634. #define ITfCleanupContextSink_QueryInterface(This,riid,ppvObject) \
  2635. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2636. #define ITfCleanupContextSink_AddRef(This) \
  2637. (This)->lpVtbl -> AddRef(This)
  2638. #define ITfCleanupContextSink_Release(This) \
  2639. (This)->lpVtbl -> Release(This)
  2640. #define ITfCleanupContextSink_OnCleanupContext(This,ecWrite,pic) \
  2641. (This)->lpVtbl -> OnCleanupContext(This,ecWrite,pic)
  2642. #endif /* COBJMACROS */
  2643. #endif /* C style interface */
  2644. HRESULT STDMETHODCALLTYPE ITfCleanupContextSink_OnCleanupContext_Proxy(
  2645. ITfCleanupContextSink * This,
  2646. /* [in] */ TfEditCookie ecWrite,
  2647. /* [in] */ ITfContext *pic);
  2648. void __RPC_STUB ITfCleanupContextSink_OnCleanupContext_Stub(
  2649. IRpcStubBuffer *This,
  2650. IRpcChannelBuffer *_pRpcChannelBuffer,
  2651. PRPC_MESSAGE _pRpcMessage,
  2652. DWORD *_pdwStubPhase);
  2653. #endif /* __ITfCleanupContextSink_INTERFACE_DEFINED__ */
  2654. #ifndef __ITfCleanupContextDurationSink_INTERFACE_DEFINED__
  2655. #define __ITfCleanupContextDurationSink_INTERFACE_DEFINED__
  2656. /* interface ITfCleanupContextDurationSink */
  2657. /* [unique][uuid][object] */
  2658. EXTERN_C const IID IID_ITfCleanupContextDurationSink;
  2659. #if defined(__cplusplus) && !defined(CINTERFACE)
  2660. MIDL_INTERFACE("45c35144-154e-4797-bed8-d33ae7bf8794")
  2661. ITfCleanupContextDurationSink : public IUnknown
  2662. {
  2663. public:
  2664. virtual HRESULT STDMETHODCALLTYPE OnStartCleanupContext( void) = 0;
  2665. virtual HRESULT STDMETHODCALLTYPE OnEndCleanupContext( void) = 0;
  2666. };
  2667. #else /* C style interface */
  2668. typedef struct ITfCleanupContextDurationSinkVtbl
  2669. {
  2670. BEGIN_INTERFACE
  2671. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2672. ITfCleanupContextDurationSink * This,
  2673. /* [in] */ REFIID riid,
  2674. /* [iid_is][out] */ void **ppvObject);
  2675. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2676. ITfCleanupContextDurationSink * This);
  2677. ULONG ( STDMETHODCALLTYPE *Release )(
  2678. ITfCleanupContextDurationSink * This);
  2679. HRESULT ( STDMETHODCALLTYPE *OnStartCleanupContext )(
  2680. ITfCleanupContextDurationSink * This);
  2681. HRESULT ( STDMETHODCALLTYPE *OnEndCleanupContext )(
  2682. ITfCleanupContextDurationSink * This);
  2683. END_INTERFACE
  2684. } ITfCleanupContextDurationSinkVtbl;
  2685. interface ITfCleanupContextDurationSink
  2686. {
  2687. CONST_VTBL struct ITfCleanupContextDurationSinkVtbl *lpVtbl;
  2688. };
  2689. #ifdef COBJMACROS
  2690. #define ITfCleanupContextDurationSink_QueryInterface(This,riid,ppvObject) \
  2691. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2692. #define ITfCleanupContextDurationSink_AddRef(This) \
  2693. (This)->lpVtbl -> AddRef(This)
  2694. #define ITfCleanupContextDurationSink_Release(This) \
  2695. (This)->lpVtbl -> Release(This)
  2696. #define ITfCleanupContextDurationSink_OnStartCleanupContext(This) \
  2697. (This)->lpVtbl -> OnStartCleanupContext(This)
  2698. #define ITfCleanupContextDurationSink_OnEndCleanupContext(This) \
  2699. (This)->lpVtbl -> OnEndCleanupContext(This)
  2700. #endif /* COBJMACROS */
  2701. #endif /* C style interface */
  2702. HRESULT STDMETHODCALLTYPE ITfCleanupContextDurationSink_OnStartCleanupContext_Proxy(
  2703. ITfCleanupContextDurationSink * This);
  2704. void __RPC_STUB ITfCleanupContextDurationSink_OnStartCleanupContext_Stub(
  2705. IRpcStubBuffer *This,
  2706. IRpcChannelBuffer *_pRpcChannelBuffer,
  2707. PRPC_MESSAGE _pRpcMessage,
  2708. DWORD *_pdwStubPhase);
  2709. HRESULT STDMETHODCALLTYPE ITfCleanupContextDurationSink_OnEndCleanupContext_Proxy(
  2710. ITfCleanupContextDurationSink * This);
  2711. void __RPC_STUB ITfCleanupContextDurationSink_OnEndCleanupContext_Stub(
  2712. IRpcStubBuffer *This,
  2713. IRpcChannelBuffer *_pRpcChannelBuffer,
  2714. PRPC_MESSAGE _pRpcMessage,
  2715. DWORD *_pdwStubPhase);
  2716. #endif /* __ITfCleanupContextDurationSink_INTERFACE_DEFINED__ */
  2717. #ifndef __ITfReadOnlyProperty_INTERFACE_DEFINED__
  2718. #define __ITfReadOnlyProperty_INTERFACE_DEFINED__
  2719. /* interface ITfReadOnlyProperty */
  2720. /* [unique][uuid][object] */
  2721. EXTERN_C const IID IID_ITfReadOnlyProperty;
  2722. #if defined(__cplusplus) && !defined(CINTERFACE)
  2723. MIDL_INTERFACE("17d49a3d-f8b8-4b2f-b254-52319dd64c53")
  2724. ITfReadOnlyProperty : public IUnknown
  2725. {
  2726. public:
  2727. virtual HRESULT STDMETHODCALLTYPE GetType(
  2728. /* [out] */ GUID *pguid) = 0;
  2729. virtual HRESULT STDMETHODCALLTYPE EnumRanges(
  2730. /* [in] */ TfEditCookie ec,
  2731. /* [out] */ IEnumTfRanges **ppEnum,
  2732. /* [in] */ ITfRange *pTargetRange) = 0;
  2733. virtual HRESULT STDMETHODCALLTYPE GetValue(
  2734. /* [in] */ TfEditCookie ec,
  2735. /* [in] */ ITfRange *pRange,
  2736. /* [out] */ VARIANT *pvarValue) = 0;
  2737. virtual HRESULT STDMETHODCALLTYPE GetContext(
  2738. /* [out] */ ITfContext **ppContext) = 0;
  2739. };
  2740. #else /* C style interface */
  2741. typedef struct ITfReadOnlyPropertyVtbl
  2742. {
  2743. BEGIN_INTERFACE
  2744. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2745. ITfReadOnlyProperty * This,
  2746. /* [in] */ REFIID riid,
  2747. /* [iid_is][out] */ void **ppvObject);
  2748. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2749. ITfReadOnlyProperty * This);
  2750. ULONG ( STDMETHODCALLTYPE *Release )(
  2751. ITfReadOnlyProperty * This);
  2752. HRESULT ( STDMETHODCALLTYPE *GetType )(
  2753. ITfReadOnlyProperty * This,
  2754. /* [out] */ GUID *pguid);
  2755. HRESULT ( STDMETHODCALLTYPE *EnumRanges )(
  2756. ITfReadOnlyProperty * This,
  2757. /* [in] */ TfEditCookie ec,
  2758. /* [out] */ IEnumTfRanges **ppEnum,
  2759. /* [in] */ ITfRange *pTargetRange);
  2760. HRESULT ( STDMETHODCALLTYPE *GetValue )(
  2761. ITfReadOnlyProperty * This,
  2762. /* [in] */ TfEditCookie ec,
  2763. /* [in] */ ITfRange *pRange,
  2764. /* [out] */ VARIANT *pvarValue);
  2765. HRESULT ( STDMETHODCALLTYPE *GetContext )(
  2766. ITfReadOnlyProperty * This,
  2767. /* [out] */ ITfContext **ppContext);
  2768. END_INTERFACE
  2769. } ITfReadOnlyPropertyVtbl;
  2770. interface ITfReadOnlyProperty
  2771. {
  2772. CONST_VTBL struct ITfReadOnlyPropertyVtbl *lpVtbl;
  2773. };
  2774. #ifdef COBJMACROS
  2775. #define ITfReadOnlyProperty_QueryInterface(This,riid,ppvObject) \
  2776. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2777. #define ITfReadOnlyProperty_AddRef(This) \
  2778. (This)->lpVtbl -> AddRef(This)
  2779. #define ITfReadOnlyProperty_Release(This) \
  2780. (This)->lpVtbl -> Release(This)
  2781. #define ITfReadOnlyProperty_GetType(This,pguid) \
  2782. (This)->lpVtbl -> GetType(This,pguid)
  2783. #define ITfReadOnlyProperty_EnumRanges(This,ec,ppEnum,pTargetRange) \
  2784. (This)->lpVtbl -> EnumRanges(This,ec,ppEnum,pTargetRange)
  2785. #define ITfReadOnlyProperty_GetValue(This,ec,pRange,pvarValue) \
  2786. (This)->lpVtbl -> GetValue(This,ec,pRange,pvarValue)
  2787. #define ITfReadOnlyProperty_GetContext(This,ppContext) \
  2788. (This)->lpVtbl -> GetContext(This,ppContext)
  2789. #endif /* COBJMACROS */
  2790. #endif /* C style interface */
  2791. HRESULT STDMETHODCALLTYPE ITfReadOnlyProperty_GetType_Proxy(
  2792. ITfReadOnlyProperty * This,
  2793. /* [out] */ GUID *pguid);
  2794. void __RPC_STUB ITfReadOnlyProperty_GetType_Stub(
  2795. IRpcStubBuffer *This,
  2796. IRpcChannelBuffer *_pRpcChannelBuffer,
  2797. PRPC_MESSAGE _pRpcMessage,
  2798. DWORD *_pdwStubPhase);
  2799. HRESULT STDMETHODCALLTYPE ITfReadOnlyProperty_EnumRanges_Proxy(
  2800. ITfReadOnlyProperty * This,
  2801. /* [in] */ TfEditCookie ec,
  2802. /* [out] */ IEnumTfRanges **ppEnum,
  2803. /* [in] */ ITfRange *pTargetRange);
  2804. void __RPC_STUB ITfReadOnlyProperty_EnumRanges_Stub(
  2805. IRpcStubBuffer *This,
  2806. IRpcChannelBuffer *_pRpcChannelBuffer,
  2807. PRPC_MESSAGE _pRpcMessage,
  2808. DWORD *_pdwStubPhase);
  2809. HRESULT STDMETHODCALLTYPE ITfReadOnlyProperty_GetValue_Proxy(
  2810. ITfReadOnlyProperty * This,
  2811. /* [in] */ TfEditCookie ec,
  2812. /* [in] */ ITfRange *pRange,
  2813. /* [out] */ VARIANT *pvarValue);
  2814. void __RPC_STUB ITfReadOnlyProperty_GetValue_Stub(
  2815. IRpcStubBuffer *This,
  2816. IRpcChannelBuffer *_pRpcChannelBuffer,
  2817. PRPC_MESSAGE _pRpcMessage,
  2818. DWORD *_pdwStubPhase);
  2819. HRESULT STDMETHODCALLTYPE ITfReadOnlyProperty_GetContext_Proxy(
  2820. ITfReadOnlyProperty * This,
  2821. /* [out] */ ITfContext **ppContext);
  2822. void __RPC_STUB ITfReadOnlyProperty_GetContext_Stub(
  2823. IRpcStubBuffer *This,
  2824. IRpcChannelBuffer *_pRpcChannelBuffer,
  2825. PRPC_MESSAGE _pRpcMessage,
  2826. DWORD *_pdwStubPhase);
  2827. #endif /* __ITfReadOnlyProperty_INTERFACE_DEFINED__ */
  2828. /* interface __MIDL_itf_msctf_0158 */
  2829. /* [local] */
  2830. typedef /* [uuid] */ DECLSPEC_UUID("d678c645-eb6a-45c9-b4ee-0f3e3a991348") struct TF_PROPERTYVAL
  2831. {
  2832. GUID guidId;
  2833. VARIANT varValue;
  2834. } TF_PROPERTYVAL;
  2835. extern RPC_IF_HANDLE __MIDL_itf_msctf_0158_v0_0_c_ifspec;
  2836. extern RPC_IF_HANDLE __MIDL_itf_msctf_0158_v0_0_s_ifspec;
  2837. #ifndef __IEnumTfPropertyValue_INTERFACE_DEFINED__
  2838. #define __IEnumTfPropertyValue_INTERFACE_DEFINED__
  2839. /* interface IEnumTfPropertyValue */
  2840. /* [unique][uuid][object] */
  2841. EXTERN_C const IID IID_IEnumTfPropertyValue;
  2842. #if defined(__cplusplus) && !defined(CINTERFACE)
  2843. MIDL_INTERFACE("8ed8981b-7c10-4d7d-9fb3-ab72e9c75f72")
  2844. IEnumTfPropertyValue : public IUnknown
  2845. {
  2846. public:
  2847. virtual HRESULT STDMETHODCALLTYPE Clone(
  2848. /* [out] */ IEnumTfPropertyValue **ppEnum) = 0;
  2849. virtual HRESULT STDMETHODCALLTYPE Next(
  2850. /* [in] */ ULONG ulCount,
  2851. /* [length_is][size_is][out] */ TF_PROPERTYVAL *rgValues,
  2852. /* [out] */ ULONG *pcFetched) = 0;
  2853. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  2854. virtual HRESULT STDMETHODCALLTYPE Skip(
  2855. /* [in] */ ULONG ulCount) = 0;
  2856. };
  2857. #else /* C style interface */
  2858. typedef struct IEnumTfPropertyValueVtbl
  2859. {
  2860. BEGIN_INTERFACE
  2861. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2862. IEnumTfPropertyValue * This,
  2863. /* [in] */ REFIID riid,
  2864. /* [iid_is][out] */ void **ppvObject);
  2865. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2866. IEnumTfPropertyValue * This);
  2867. ULONG ( STDMETHODCALLTYPE *Release )(
  2868. IEnumTfPropertyValue * This);
  2869. HRESULT ( STDMETHODCALLTYPE *Clone )(
  2870. IEnumTfPropertyValue * This,
  2871. /* [out] */ IEnumTfPropertyValue **ppEnum);
  2872. HRESULT ( STDMETHODCALLTYPE *Next )(
  2873. IEnumTfPropertyValue * This,
  2874. /* [in] */ ULONG ulCount,
  2875. /* [length_is][size_is][out] */ TF_PROPERTYVAL *rgValues,
  2876. /* [out] */ ULONG *pcFetched);
  2877. HRESULT ( STDMETHODCALLTYPE *Reset )(
  2878. IEnumTfPropertyValue * This);
  2879. HRESULT ( STDMETHODCALLTYPE *Skip )(
  2880. IEnumTfPropertyValue * This,
  2881. /* [in] */ ULONG ulCount);
  2882. END_INTERFACE
  2883. } IEnumTfPropertyValueVtbl;
  2884. interface IEnumTfPropertyValue
  2885. {
  2886. CONST_VTBL struct IEnumTfPropertyValueVtbl *lpVtbl;
  2887. };
  2888. #ifdef COBJMACROS
  2889. #define IEnumTfPropertyValue_QueryInterface(This,riid,ppvObject) \
  2890. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2891. #define IEnumTfPropertyValue_AddRef(This) \
  2892. (This)->lpVtbl -> AddRef(This)
  2893. #define IEnumTfPropertyValue_Release(This) \
  2894. (This)->lpVtbl -> Release(This)
  2895. #define IEnumTfPropertyValue_Clone(This,ppEnum) \
  2896. (This)->lpVtbl -> Clone(This,ppEnum)
  2897. #define IEnumTfPropertyValue_Next(This,ulCount,rgValues,pcFetched) \
  2898. (This)->lpVtbl -> Next(This,ulCount,rgValues,pcFetched)
  2899. #define IEnumTfPropertyValue_Reset(This) \
  2900. (This)->lpVtbl -> Reset(This)
  2901. #define IEnumTfPropertyValue_Skip(This,ulCount) \
  2902. (This)->lpVtbl -> Skip(This,ulCount)
  2903. #endif /* COBJMACROS */
  2904. #endif /* C style interface */
  2905. HRESULT STDMETHODCALLTYPE IEnumTfPropertyValue_Clone_Proxy(
  2906. IEnumTfPropertyValue * This,
  2907. /* [out] */ IEnumTfPropertyValue **ppEnum);
  2908. void __RPC_STUB IEnumTfPropertyValue_Clone_Stub(
  2909. IRpcStubBuffer *This,
  2910. IRpcChannelBuffer *_pRpcChannelBuffer,
  2911. PRPC_MESSAGE _pRpcMessage,
  2912. DWORD *_pdwStubPhase);
  2913. HRESULT STDMETHODCALLTYPE IEnumTfPropertyValue_Next_Proxy(
  2914. IEnumTfPropertyValue * This,
  2915. /* [in] */ ULONG ulCount,
  2916. /* [length_is][size_is][out] */ TF_PROPERTYVAL *rgValues,
  2917. /* [out] */ ULONG *pcFetched);
  2918. void __RPC_STUB IEnumTfPropertyValue_Next_Stub(
  2919. IRpcStubBuffer *This,
  2920. IRpcChannelBuffer *_pRpcChannelBuffer,
  2921. PRPC_MESSAGE _pRpcMessage,
  2922. DWORD *_pdwStubPhase);
  2923. HRESULT STDMETHODCALLTYPE IEnumTfPropertyValue_Reset_Proxy(
  2924. IEnumTfPropertyValue * This);
  2925. void __RPC_STUB IEnumTfPropertyValue_Reset_Stub(
  2926. IRpcStubBuffer *This,
  2927. IRpcChannelBuffer *_pRpcChannelBuffer,
  2928. PRPC_MESSAGE _pRpcMessage,
  2929. DWORD *_pdwStubPhase);
  2930. HRESULT STDMETHODCALLTYPE IEnumTfPropertyValue_Skip_Proxy(
  2931. IEnumTfPropertyValue * This,
  2932. /* [in] */ ULONG ulCount);
  2933. void __RPC_STUB IEnumTfPropertyValue_Skip_Stub(
  2934. IRpcStubBuffer *This,
  2935. IRpcChannelBuffer *_pRpcChannelBuffer,
  2936. PRPC_MESSAGE _pRpcMessage,
  2937. DWORD *_pdwStubPhase);
  2938. #endif /* __IEnumTfPropertyValue_INTERFACE_DEFINED__ */
  2939. #ifndef __ITfMouseTracker_INTERFACE_DEFINED__
  2940. #define __ITfMouseTracker_INTERFACE_DEFINED__
  2941. /* interface ITfMouseTracker */
  2942. /* [unique][uuid][object] */
  2943. EXTERN_C const IID IID_ITfMouseTracker;
  2944. #if defined(__cplusplus) && !defined(CINTERFACE)
  2945. MIDL_INTERFACE("09d146cd-a544-4132-925b-7afa8ef322d0")
  2946. ITfMouseTracker : public IUnknown
  2947. {
  2948. public:
  2949. virtual HRESULT STDMETHODCALLTYPE AdviseMouseSink(
  2950. /* [in] */ ITfRange *range,
  2951. /* [in] */ ITfMouseSink *pSink,
  2952. /* [out] */ DWORD *pdwCookie) = 0;
  2953. virtual HRESULT STDMETHODCALLTYPE UnadviseMouseSink(
  2954. /* [in] */ DWORD dwCookie) = 0;
  2955. };
  2956. #else /* C style interface */
  2957. typedef struct ITfMouseTrackerVtbl
  2958. {
  2959. BEGIN_INTERFACE
  2960. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2961. ITfMouseTracker * This,
  2962. /* [in] */ REFIID riid,
  2963. /* [iid_is][out] */ void **ppvObject);
  2964. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2965. ITfMouseTracker * This);
  2966. ULONG ( STDMETHODCALLTYPE *Release )(
  2967. ITfMouseTracker * This);
  2968. HRESULT ( STDMETHODCALLTYPE *AdviseMouseSink )(
  2969. ITfMouseTracker * This,
  2970. /* [in] */ ITfRange *range,
  2971. /* [in] */ ITfMouseSink *pSink,
  2972. /* [out] */ DWORD *pdwCookie);
  2973. HRESULT ( STDMETHODCALLTYPE *UnadviseMouseSink )(
  2974. ITfMouseTracker * This,
  2975. /* [in] */ DWORD dwCookie);
  2976. END_INTERFACE
  2977. } ITfMouseTrackerVtbl;
  2978. interface ITfMouseTracker
  2979. {
  2980. CONST_VTBL struct ITfMouseTrackerVtbl *lpVtbl;
  2981. };
  2982. #ifdef COBJMACROS
  2983. #define ITfMouseTracker_QueryInterface(This,riid,ppvObject) \
  2984. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2985. #define ITfMouseTracker_AddRef(This) \
  2986. (This)->lpVtbl -> AddRef(This)
  2987. #define ITfMouseTracker_Release(This) \
  2988. (This)->lpVtbl -> Release(This)
  2989. #define ITfMouseTracker_AdviseMouseSink(This,range,pSink,pdwCookie) \
  2990. (This)->lpVtbl -> AdviseMouseSink(This,range,pSink,pdwCookie)
  2991. #define ITfMouseTracker_UnadviseMouseSink(This,dwCookie) \
  2992. (This)->lpVtbl -> UnadviseMouseSink(This,dwCookie)
  2993. #endif /* COBJMACROS */
  2994. #endif /* C style interface */
  2995. HRESULT STDMETHODCALLTYPE ITfMouseTracker_AdviseMouseSink_Proxy(
  2996. ITfMouseTracker * This,
  2997. /* [in] */ ITfRange *range,
  2998. /* [in] */ ITfMouseSink *pSink,
  2999. /* [out] */ DWORD *pdwCookie);
  3000. void __RPC_STUB ITfMouseTracker_AdviseMouseSink_Stub(
  3001. IRpcStubBuffer *This,
  3002. IRpcChannelBuffer *_pRpcChannelBuffer,
  3003. PRPC_MESSAGE _pRpcMessage,
  3004. DWORD *_pdwStubPhase);
  3005. HRESULT STDMETHODCALLTYPE ITfMouseTracker_UnadviseMouseSink_Proxy(
  3006. ITfMouseTracker * This,
  3007. /* [in] */ DWORD dwCookie);
  3008. void __RPC_STUB ITfMouseTracker_UnadviseMouseSink_Stub(
  3009. IRpcStubBuffer *This,
  3010. IRpcChannelBuffer *_pRpcChannelBuffer,
  3011. PRPC_MESSAGE _pRpcMessage,
  3012. DWORD *_pdwStubPhase);
  3013. #endif /* __ITfMouseTracker_INTERFACE_DEFINED__ */
  3014. #ifndef __ITfMouseTrackerACP_INTERFACE_DEFINED__
  3015. #define __ITfMouseTrackerACP_INTERFACE_DEFINED__
  3016. /* interface ITfMouseTrackerACP */
  3017. /* [unique][uuid][object] */
  3018. EXTERN_C const IID IID_ITfMouseTrackerACP;
  3019. #if defined(__cplusplus) && !defined(CINTERFACE)
  3020. MIDL_INTERFACE("3bdd78e2-c16e-47fd-b883-ce6facc1a208")
  3021. ITfMouseTrackerACP : public IUnknown
  3022. {
  3023. public:
  3024. virtual HRESULT STDMETHODCALLTYPE AdviseMouseSink(
  3025. /* [in] */ ITfRangeACP *range,
  3026. /* [in] */ ITfMouseSink *pSink,
  3027. /* [out] */ DWORD *pdwCookie) = 0;
  3028. virtual HRESULT STDMETHODCALLTYPE UnadviseMouseSink(
  3029. /* [in] */ DWORD dwCookie) = 0;
  3030. };
  3031. #else /* C style interface */
  3032. typedef struct ITfMouseTrackerACPVtbl
  3033. {
  3034. BEGIN_INTERFACE
  3035. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3036. ITfMouseTrackerACP * This,
  3037. /* [in] */ REFIID riid,
  3038. /* [iid_is][out] */ void **ppvObject);
  3039. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3040. ITfMouseTrackerACP * This);
  3041. ULONG ( STDMETHODCALLTYPE *Release )(
  3042. ITfMouseTrackerACP * This);
  3043. HRESULT ( STDMETHODCALLTYPE *AdviseMouseSink )(
  3044. ITfMouseTrackerACP * This,
  3045. /* [in] */ ITfRangeACP *range,
  3046. /* [in] */ ITfMouseSink *pSink,
  3047. /* [out] */ DWORD *pdwCookie);
  3048. HRESULT ( STDMETHODCALLTYPE *UnadviseMouseSink )(
  3049. ITfMouseTrackerACP * This,
  3050. /* [in] */ DWORD dwCookie);
  3051. END_INTERFACE
  3052. } ITfMouseTrackerACPVtbl;
  3053. interface ITfMouseTrackerACP
  3054. {
  3055. CONST_VTBL struct ITfMouseTrackerACPVtbl *lpVtbl;
  3056. };
  3057. #ifdef COBJMACROS
  3058. #define ITfMouseTrackerACP_QueryInterface(This,riid,ppvObject) \
  3059. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  3060. #define ITfMouseTrackerACP_AddRef(This) \
  3061. (This)->lpVtbl -> AddRef(This)
  3062. #define ITfMouseTrackerACP_Release(This) \
  3063. (This)->lpVtbl -> Release(This)
  3064. #define ITfMouseTrackerACP_AdviseMouseSink(This,range,pSink,pdwCookie) \
  3065. (This)->lpVtbl -> AdviseMouseSink(This,range,pSink,pdwCookie)
  3066. #define ITfMouseTrackerACP_UnadviseMouseSink(This,dwCookie) \
  3067. (This)->lpVtbl -> UnadviseMouseSink(This,dwCookie)
  3068. #endif /* COBJMACROS */
  3069. #endif /* C style interface */
  3070. HRESULT STDMETHODCALLTYPE ITfMouseTrackerACP_AdviseMouseSink_Proxy(
  3071. ITfMouseTrackerACP * This,
  3072. /* [in] */ ITfRangeACP *range,
  3073. /* [in] */ ITfMouseSink *pSink,
  3074. /* [out] */ DWORD *pdwCookie);
  3075. void __RPC_STUB ITfMouseTrackerACP_AdviseMouseSink_Stub(
  3076. IRpcStubBuffer *This,
  3077. IRpcChannelBuffer *_pRpcChannelBuffer,
  3078. PRPC_MESSAGE _pRpcMessage,
  3079. DWORD *_pdwStubPhase);
  3080. HRESULT STDMETHODCALLTYPE ITfMouseTrackerACP_UnadviseMouseSink_Proxy(
  3081. ITfMouseTrackerACP * This,
  3082. /* [in] */ DWORD dwCookie);
  3083. void __RPC_STUB ITfMouseTrackerACP_UnadviseMouseSink_Stub(
  3084. IRpcStubBuffer *This,
  3085. IRpcChannelBuffer *_pRpcChannelBuffer,
  3086. PRPC_MESSAGE _pRpcMessage,
  3087. DWORD *_pdwStubPhase);
  3088. #endif /* __ITfMouseTrackerACP_INTERFACE_DEFINED__ */
  3089. #ifndef __ITfMouseTrackerAnchor_INTERFACE_DEFINED__
  3090. #define __ITfMouseTrackerAnchor_INTERFACE_DEFINED__
  3091. /* interface ITfMouseTrackerAnchor */
  3092. /* [unique][uuid][object] */
  3093. EXTERN_C const IID IID_ITfMouseTrackerAnchor;
  3094. #if defined(__cplusplus) && !defined(CINTERFACE)
  3095. MIDL_INTERFACE("f9f4e0f2-d600-4a4c-b144-77e201ebd1b0")
  3096. ITfMouseTrackerAnchor : public IUnknown
  3097. {
  3098. public:
  3099. virtual HRESULT STDMETHODCALLTYPE AdviseMouseSink(
  3100. /* [in] */ IAnchor *paStart,
  3101. /* [in] */ IAnchor *paEnd,
  3102. /* [in] */ ITfMouseSink *pSink,
  3103. /* [out] */ DWORD *pdwCookie) = 0;
  3104. virtual HRESULT STDMETHODCALLTYPE UnadviseMouseSink(
  3105. /* [in] */ DWORD dwCookie) = 0;
  3106. };
  3107. #else /* C style interface */
  3108. typedef struct ITfMouseTrackerAnchorVtbl
  3109. {
  3110. BEGIN_INTERFACE
  3111. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3112. ITfMouseTrackerAnchor * This,
  3113. /* [in] */ REFIID riid,
  3114. /* [iid_is][out] */ void **ppvObject);
  3115. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3116. ITfMouseTrackerAnchor * This);
  3117. ULONG ( STDMETHODCALLTYPE *Release )(
  3118. ITfMouseTrackerAnchor * This);
  3119. HRESULT ( STDMETHODCALLTYPE *AdviseMouseSink )(
  3120. ITfMouseTrackerAnchor * This,
  3121. /* [in] */ IAnchor *paStart,
  3122. /* [in] */ IAnchor *paEnd,
  3123. /* [in] */ ITfMouseSink *pSink,
  3124. /* [out] */ DWORD *pdwCookie);
  3125. HRESULT ( STDMETHODCALLTYPE *UnadviseMouseSink )(
  3126. ITfMouseTrackerAnchor * This,
  3127. /* [in] */ DWORD dwCookie);
  3128. END_INTERFACE
  3129. } ITfMouseTrackerAnchorVtbl;
  3130. interface ITfMouseTrackerAnchor
  3131. {
  3132. CONST_VTBL struct ITfMouseTrackerAnchorVtbl *lpVtbl;
  3133. };
  3134. #ifdef COBJMACROS
  3135. #define ITfMouseTrackerAnchor_QueryInterface(This,riid,ppvObject) \
  3136. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  3137. #define ITfMouseTrackerAnchor_AddRef(This) \
  3138. (This)->lpVtbl -> AddRef(This)
  3139. #define ITfMouseTrackerAnchor_Release(This) \
  3140. (This)->lpVtbl -> Release(This)
  3141. #define ITfMouseTrackerAnchor_AdviseMouseSink(This,paStart,paEnd,pSink,pdwCookie) \
  3142. (This)->lpVtbl -> AdviseMouseSink(This,paStart,paEnd,pSink,pdwCookie)
  3143. #define ITfMouseTrackerAnchor_UnadviseMouseSink(This,dwCookie) \
  3144. (This)->lpVtbl -> UnadviseMouseSink(This,dwCookie)
  3145. #endif /* COBJMACROS */
  3146. #endif /* C style interface */
  3147. HRESULT STDMETHODCALLTYPE ITfMouseTrackerAnchor_AdviseMouseSink_Proxy(
  3148. ITfMouseTrackerAnchor * This,
  3149. /* [in] */ IAnchor *paStart,
  3150. /* [in] */ IAnchor *paEnd,
  3151. /* [in] */ ITfMouseSink *pSink,
  3152. /* [out] */ DWORD *pdwCookie);
  3153. void __RPC_STUB ITfMouseTrackerAnchor_AdviseMouseSink_Stub(
  3154. IRpcStubBuffer *This,
  3155. IRpcChannelBuffer *_pRpcChannelBuffer,
  3156. PRPC_MESSAGE _pRpcMessage,
  3157. DWORD *_pdwStubPhase);
  3158. HRESULT STDMETHODCALLTYPE ITfMouseTrackerAnchor_UnadviseMouseSink_Proxy(
  3159. ITfMouseTrackerAnchor * This,
  3160. /* [in] */ DWORD dwCookie);
  3161. void __RPC_STUB ITfMouseTrackerAnchor_UnadviseMouseSink_Stub(
  3162. IRpcStubBuffer *This,
  3163. IRpcChannelBuffer *_pRpcChannelBuffer,
  3164. PRPC_MESSAGE _pRpcMessage,
  3165. DWORD *_pdwStubPhase);
  3166. #endif /* __ITfMouseTrackerAnchor_INTERFACE_DEFINED__ */
  3167. #ifndef __ITfMouseSink_INTERFACE_DEFINED__
  3168. #define __ITfMouseSink_INTERFACE_DEFINED__
  3169. /* interface ITfMouseSink */
  3170. /* [unique][uuid][local][object] */
  3171. EXTERN_C const IID IID_ITfMouseSink;
  3172. #if defined(__cplusplus) && !defined(CINTERFACE)
  3173. MIDL_INTERFACE("a1adaaa2-3a24-449d-ac96-5183e7f5c217")
  3174. ITfMouseSink : public IUnknown
  3175. {
  3176. public:
  3177. virtual HRESULT STDMETHODCALLTYPE OnMouseEvent(
  3178. /* [in] */ ULONG uEdge,
  3179. /* [in] */ ULONG uQuadrant,
  3180. /* [in] */ DWORD dwBtnStatus,
  3181. /* [out] */ BOOL *pfEaten) = 0;
  3182. };
  3183. #else /* C style interface */
  3184. typedef struct ITfMouseSinkVtbl
  3185. {
  3186. BEGIN_INTERFACE
  3187. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3188. ITfMouseSink * This,
  3189. /* [in] */ REFIID riid,
  3190. /* [iid_is][out] */ void **ppvObject);
  3191. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3192. ITfMouseSink * This);
  3193. ULONG ( STDMETHODCALLTYPE *Release )(
  3194. ITfMouseSink * This);
  3195. HRESULT ( STDMETHODCALLTYPE *OnMouseEvent )(
  3196. ITfMouseSink * This,
  3197. /* [in] */ ULONG uEdge,
  3198. /* [in] */ ULONG uQuadrant,
  3199. /* [in] */ DWORD dwBtnStatus,
  3200. /* [out] */ BOOL *pfEaten);
  3201. END_INTERFACE
  3202. } ITfMouseSinkVtbl;
  3203. interface ITfMouseSink
  3204. {
  3205. CONST_VTBL struct ITfMouseSinkVtbl *lpVtbl;
  3206. };
  3207. #ifdef COBJMACROS
  3208. #define ITfMouseSink_QueryInterface(This,riid,ppvObject) \
  3209. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  3210. #define ITfMouseSink_AddRef(This) \
  3211. (This)->lpVtbl -> AddRef(This)
  3212. #define ITfMouseSink_Release(This) \
  3213. (This)->lpVtbl -> Release(This)
  3214. #define ITfMouseSink_OnMouseEvent(This,uEdge,uQuadrant,dwBtnStatus,pfEaten) \
  3215. (This)->lpVtbl -> OnMouseEvent(This,uEdge,uQuadrant,dwBtnStatus,pfEaten)
  3216. #endif /* COBJMACROS */
  3217. #endif /* C style interface */
  3218. HRESULT STDMETHODCALLTYPE ITfMouseSink_OnMouseEvent_Proxy(
  3219. ITfMouseSink * This,
  3220. /* [in] */ ULONG uEdge,
  3221. /* [in] */ ULONG uQuadrant,
  3222. /* [in] */ DWORD dwBtnStatus,
  3223. /* [out] */ BOOL *pfEaten);
  3224. void __RPC_STUB ITfMouseSink_OnMouseEvent_Stub(
  3225. IRpcStubBuffer *This,
  3226. IRpcChannelBuffer *_pRpcChannelBuffer,
  3227. PRPC_MESSAGE _pRpcMessage,
  3228. DWORD *_pdwStubPhase);
  3229. #endif /* __ITfMouseSink_INTERFACE_DEFINED__ */
  3230. #ifndef __ITfEditRecord_INTERFACE_DEFINED__
  3231. #define __ITfEditRecord_INTERFACE_DEFINED__
  3232. /* interface ITfEditRecord */
  3233. /* [unique][uuid][object] */
  3234. #define TF_GTP_INCL_TEXT ( 0x1 )
  3235. EXTERN_C const IID IID_ITfEditRecord;
  3236. #if defined(__cplusplus) && !defined(CINTERFACE)
  3237. MIDL_INTERFACE("42d4d099-7c1a-4a89-b836-6c6f22160df0")
  3238. ITfEditRecord : public IUnknown
  3239. {
  3240. public:
  3241. virtual HRESULT STDMETHODCALLTYPE GetSelectionStatus(
  3242. /* [out] */ BOOL *pfChanged) = 0;
  3243. virtual HRESULT STDMETHODCALLTYPE GetTextAndPropertyUpdates(
  3244. /* [in] */ DWORD dwFlags,
  3245. /* [size_is][in] */ const GUID **prgProperties,
  3246. /* [in] */ ULONG cProperties,
  3247. /* [out] */ IEnumTfRanges **ppEnum) = 0;
  3248. };
  3249. #else /* C style interface */
  3250. typedef struct ITfEditRecordVtbl
  3251. {
  3252. BEGIN_INTERFACE
  3253. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3254. ITfEditRecord * This,
  3255. /* [in] */ REFIID riid,
  3256. /* [iid_is][out] */ void **ppvObject);
  3257. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3258. ITfEditRecord * This);
  3259. ULONG ( STDMETHODCALLTYPE *Release )(
  3260. ITfEditRecord * This);
  3261. HRESULT ( STDMETHODCALLTYPE *GetSelectionStatus )(
  3262. ITfEditRecord * This,
  3263. /* [out] */ BOOL *pfChanged);
  3264. HRESULT ( STDMETHODCALLTYPE *GetTextAndPropertyUpdates )(
  3265. ITfEditRecord * This,
  3266. /* [in] */ DWORD dwFlags,
  3267. /* [size_is][in] */ const GUID **prgProperties,
  3268. /* [in] */ ULONG cProperties,
  3269. /* [out] */ IEnumTfRanges **ppEnum);
  3270. END_INTERFACE
  3271. } ITfEditRecordVtbl;
  3272. interface ITfEditRecord
  3273. {
  3274. CONST_VTBL struct ITfEditRecordVtbl *lpVtbl;
  3275. };
  3276. #ifdef COBJMACROS
  3277. #define ITfEditRecord_QueryInterface(This,riid,ppvObject) \
  3278. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  3279. #define ITfEditRecord_AddRef(This) \
  3280. (This)->lpVtbl -> AddRef(This)
  3281. #define ITfEditRecord_Release(This) \
  3282. (This)->lpVtbl -> Release(This)
  3283. #define ITfEditRecord_GetSelectionStatus(This,pfChanged) \
  3284. (This)->lpVtbl -> GetSelectionStatus(This,pfChanged)
  3285. #define ITfEditRecord_GetTextAndPropertyUpdates(This,dwFlags,prgProperties,cProperties,ppEnum) \
  3286. (This)->lpVtbl -> GetTextAndPropertyUpdates(This,dwFlags,prgProperties,cProperties,ppEnum)
  3287. #endif /* COBJMACROS */
  3288. #endif /* C style interface */
  3289. HRESULT STDMETHODCALLTYPE ITfEditRecord_GetSelectionStatus_Proxy(
  3290. ITfEditRecord * This,
  3291. /* [out] */ BOOL *pfChanged);
  3292. void __RPC_STUB ITfEditRecord_GetSelectionStatus_Stub(
  3293. IRpcStubBuffer *This,
  3294. IRpcChannelBuffer *_pRpcChannelBuffer,
  3295. PRPC_MESSAGE _pRpcMessage,
  3296. DWORD *_pdwStubPhase);
  3297. HRESULT STDMETHODCALLTYPE ITfEditRecord_GetTextAndPropertyUpdates_Proxy(
  3298. ITfEditRecord * This,
  3299. /* [in] */ DWORD dwFlags,
  3300. /* [size_is][in] */ const GUID **prgProperties,
  3301. /* [in] */ ULONG cProperties,
  3302. /* [out] */ IEnumTfRanges **ppEnum);
  3303. void __RPC_STUB ITfEditRecord_GetTextAndPropertyUpdates_Stub(
  3304. IRpcStubBuffer *This,
  3305. IRpcChannelBuffer *_pRpcChannelBuffer,
  3306. PRPC_MESSAGE _pRpcMessage,
  3307. DWORD *_pdwStubPhase);
  3308. #endif /* __ITfEditRecord_INTERFACE_DEFINED__ */
  3309. #ifndef __ITfTextEditSink_INTERFACE_DEFINED__
  3310. #define __ITfTextEditSink_INTERFACE_DEFINED__
  3311. /* interface ITfTextEditSink */
  3312. /* [unique][uuid][object] */
  3313. EXTERN_C const IID IID_ITfTextEditSink;
  3314. #if defined(__cplusplus) && !defined(CINTERFACE)
  3315. MIDL_INTERFACE("8127d409-ccd3-4683-967a-b43d5b482bf7")
  3316. ITfTextEditSink : public IUnknown
  3317. {
  3318. public:
  3319. virtual HRESULT STDMETHODCALLTYPE OnEndEdit(
  3320. /* [in] */ ITfContext *pic,
  3321. /* [in] */ TfEditCookie ecReadOnly,
  3322. /* [in] */ ITfEditRecord *pEditRecord) = 0;
  3323. };
  3324. #else /* C style interface */
  3325. typedef struct ITfTextEditSinkVtbl
  3326. {
  3327. BEGIN_INTERFACE
  3328. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3329. ITfTextEditSink * This,
  3330. /* [in] */ REFIID riid,
  3331. /* [iid_is][out] */ void **ppvObject);
  3332. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3333. ITfTextEditSink * This);
  3334. ULONG ( STDMETHODCALLTYPE *Release )(
  3335. ITfTextEditSink * This);
  3336. HRESULT ( STDMETHODCALLTYPE *OnEndEdit )(
  3337. ITfTextEditSink * This,
  3338. /* [in] */ ITfContext *pic,
  3339. /* [in] */ TfEditCookie ecReadOnly,
  3340. /* [in] */ ITfEditRecord *pEditRecord);
  3341. END_INTERFACE
  3342. } ITfTextEditSinkVtbl;
  3343. interface ITfTextEditSink
  3344. {
  3345. CONST_VTBL struct ITfTextEditSinkVtbl *lpVtbl;
  3346. };
  3347. #ifdef COBJMACROS
  3348. #define ITfTextEditSink_QueryInterface(This,riid,ppvObject) \
  3349. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  3350. #define ITfTextEditSink_AddRef(This) \
  3351. (This)->lpVtbl -> AddRef(This)
  3352. #define ITfTextEditSink_Release(This) \
  3353. (This)->lpVtbl -> Release(This)
  3354. #define ITfTextEditSink_OnEndEdit(This,pic,ecReadOnly,pEditRecord) \
  3355. (This)->lpVtbl -> OnEndEdit(This,pic,ecReadOnly,pEditRecord)
  3356. #endif /* COBJMACROS */
  3357. #endif /* C style interface */
  3358. HRESULT STDMETHODCALLTYPE ITfTextEditSink_OnEndEdit_Proxy(
  3359. ITfTextEditSink * This,
  3360. /* [in] */ ITfContext *pic,
  3361. /* [in] */ TfEditCookie ecReadOnly,
  3362. /* [in] */ ITfEditRecord *pEditRecord);
  3363. void __RPC_STUB ITfTextEditSink_OnEndEdit_Stub(
  3364. IRpcStubBuffer *This,
  3365. IRpcChannelBuffer *_pRpcChannelBuffer,
  3366. PRPC_MESSAGE _pRpcMessage,
  3367. DWORD *_pdwStubPhase);
  3368. #endif /* __ITfTextEditSink_INTERFACE_DEFINED__ */
  3369. #ifndef __ITfTextLayoutSink_INTERFACE_DEFINED__
  3370. #define __ITfTextLayoutSink_INTERFACE_DEFINED__
  3371. /* interface ITfTextLayoutSink */
  3372. /* [unique][uuid][object] */
  3373. typedef /* [public][public][uuid] */ DECLSPEC_UUID("603553cf-9edd-4cc1-9ecc-069e4a427734")
  3374. enum __MIDL_ITfTextLayoutSink_0001
  3375. { TF_LC_CREATE = 0,
  3376. TF_LC_CHANGE = 1,
  3377. TF_LC_DESTROY = 2
  3378. } TfLayoutCode;
  3379. EXTERN_C const IID IID_ITfTextLayoutSink;
  3380. #if defined(__cplusplus) && !defined(CINTERFACE)
  3381. MIDL_INTERFACE("2af2d06a-dd5b-4927-a0b4-54f19c91fade")
  3382. ITfTextLayoutSink : public IUnknown
  3383. {
  3384. public:
  3385. virtual HRESULT STDMETHODCALLTYPE OnLayoutChange(
  3386. /* [in] */ ITfContext *pic,
  3387. /* [in] */ TfLayoutCode lcode,
  3388. /* [in] */ ITfContextView *pView) = 0;
  3389. };
  3390. #else /* C style interface */
  3391. typedef struct ITfTextLayoutSinkVtbl
  3392. {
  3393. BEGIN_INTERFACE
  3394. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3395. ITfTextLayoutSink * This,
  3396. /* [in] */ REFIID riid,
  3397. /* [iid_is][out] */ void **ppvObject);
  3398. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3399. ITfTextLayoutSink * This);
  3400. ULONG ( STDMETHODCALLTYPE *Release )(
  3401. ITfTextLayoutSink * This);
  3402. HRESULT ( STDMETHODCALLTYPE *OnLayoutChange )(
  3403. ITfTextLayoutSink * This,
  3404. /* [in] */ ITfContext *pic,
  3405. /* [in] */ TfLayoutCode lcode,
  3406. /* [in] */ ITfContextView *pView);
  3407. END_INTERFACE
  3408. } ITfTextLayoutSinkVtbl;
  3409. interface ITfTextLayoutSink
  3410. {
  3411. CONST_VTBL struct ITfTextLayoutSinkVtbl *lpVtbl;
  3412. };
  3413. #ifdef COBJMACROS
  3414. #define ITfTextLayoutSink_QueryInterface(This,riid,ppvObject) \
  3415. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  3416. #define ITfTextLayoutSink_AddRef(This) \
  3417. (This)->lpVtbl -> AddRef(This)
  3418. #define ITfTextLayoutSink_Release(This) \
  3419. (This)->lpVtbl -> Release(This)
  3420. #define ITfTextLayoutSink_OnLayoutChange(This,pic,lcode,pView) \
  3421. (This)->lpVtbl -> OnLayoutChange(This,pic,lcode,pView)
  3422. #endif /* COBJMACROS */
  3423. #endif /* C style interface */
  3424. HRESULT STDMETHODCALLTYPE ITfTextLayoutSink_OnLayoutChange_Proxy(
  3425. ITfTextLayoutSink * This,
  3426. /* [in] */ ITfContext *pic,
  3427. /* [in] */ TfLayoutCode lcode,
  3428. /* [in] */ ITfContextView *pView);
  3429. void __RPC_STUB ITfTextLayoutSink_OnLayoutChange_Stub(
  3430. IRpcStubBuffer *This,
  3431. IRpcChannelBuffer *_pRpcChannelBuffer,
  3432. PRPC_MESSAGE _pRpcMessage,
  3433. DWORD *_pdwStubPhase);
  3434. #endif /* __ITfTextLayoutSink_INTERFACE_DEFINED__ */
  3435. #ifndef __ITfStatusSink_INTERFACE_DEFINED__
  3436. #define __ITfStatusSink_INTERFACE_DEFINED__
  3437. /* interface ITfStatusSink */
  3438. /* [unique][uuid][object] */
  3439. EXTERN_C const IID IID_ITfStatusSink;
  3440. #if defined(__cplusplus) && !defined(CINTERFACE)
  3441. MIDL_INTERFACE("6b7d8d73-b267-4f69-b32e-1ca321ce4f45")
  3442. ITfStatusSink : public IUnknown
  3443. {
  3444. public:
  3445. virtual HRESULT STDMETHODCALLTYPE OnStatusChange(
  3446. /* [in] */ ITfContext *pic,
  3447. /* [in] */ DWORD dwFlags) = 0;
  3448. };
  3449. #else /* C style interface */
  3450. typedef struct ITfStatusSinkVtbl
  3451. {
  3452. BEGIN_INTERFACE
  3453. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3454. ITfStatusSink * This,
  3455. /* [in] */ REFIID riid,
  3456. /* [iid_is][out] */ void **ppvObject);
  3457. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3458. ITfStatusSink * This);
  3459. ULONG ( STDMETHODCALLTYPE *Release )(
  3460. ITfStatusSink * This);
  3461. HRESULT ( STDMETHODCALLTYPE *OnStatusChange )(
  3462. ITfStatusSink * This,
  3463. /* [in] */ ITfContext *pic,
  3464. /* [in] */ DWORD dwFlags);
  3465. END_INTERFACE
  3466. } ITfStatusSinkVtbl;
  3467. interface ITfStatusSink
  3468. {
  3469. CONST_VTBL struct ITfStatusSinkVtbl *lpVtbl;
  3470. };
  3471. #ifdef COBJMACROS
  3472. #define ITfStatusSink_QueryInterface(This,riid,ppvObject) \
  3473. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  3474. #define ITfStatusSink_AddRef(This) \
  3475. (This)->lpVtbl -> AddRef(This)
  3476. #define ITfStatusSink_Release(This) \
  3477. (This)->lpVtbl -> Release(This)
  3478. #define ITfStatusSink_OnStatusChange(This,pic,dwFlags) \
  3479. (This)->lpVtbl -> OnStatusChange(This,pic,dwFlags)
  3480. #endif /* COBJMACROS */
  3481. #endif /* C style interface */
  3482. HRESULT STDMETHODCALLTYPE ITfStatusSink_OnStatusChange_Proxy(
  3483. ITfStatusSink * This,
  3484. /* [in] */ ITfContext *pic,
  3485. /* [in] */ DWORD dwFlags);
  3486. void __RPC_STUB ITfStatusSink_OnStatusChange_Stub(
  3487. IRpcStubBuffer *This,
  3488. IRpcChannelBuffer *_pRpcChannelBuffer,
  3489. PRPC_MESSAGE _pRpcMessage,
  3490. DWORD *_pdwStubPhase);
  3491. #endif /* __ITfStatusSink_INTERFACE_DEFINED__ */
  3492. #ifndef __ITfEditTransactionSink_INTERFACE_DEFINED__
  3493. #define __ITfEditTransactionSink_INTERFACE_DEFINED__
  3494. /* interface ITfEditTransactionSink */
  3495. /* [unique][uuid][object] */
  3496. EXTERN_C const IID IID_ITfEditTransactionSink;
  3497. #if defined(__cplusplus) && !defined(CINTERFACE)
  3498. MIDL_INTERFACE("708fbf70-b520-416b-b06c-2c41ab44f8ba")
  3499. ITfEditTransactionSink : public IUnknown
  3500. {
  3501. public:
  3502. virtual HRESULT STDMETHODCALLTYPE OnStartEditTransaction(
  3503. /* [in] */ ITfContext *pic) = 0;
  3504. virtual HRESULT STDMETHODCALLTYPE OnEndEditTransaction(
  3505. /* [in] */ ITfContext *pic) = 0;
  3506. };
  3507. #else /* C style interface */
  3508. typedef struct ITfEditTransactionSinkVtbl
  3509. {
  3510. BEGIN_INTERFACE
  3511. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3512. ITfEditTransactionSink * This,
  3513. /* [in] */ REFIID riid,
  3514. /* [iid_is][out] */ void **ppvObject);
  3515. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3516. ITfEditTransactionSink * This);
  3517. ULONG ( STDMETHODCALLTYPE *Release )(
  3518. ITfEditTransactionSink * This);
  3519. HRESULT ( STDMETHODCALLTYPE *OnStartEditTransaction )(
  3520. ITfEditTransactionSink * This,
  3521. /* [in] */ ITfContext *pic);
  3522. HRESULT ( STDMETHODCALLTYPE *OnEndEditTransaction )(
  3523. ITfEditTransactionSink * This,
  3524. /* [in] */ ITfContext *pic);
  3525. END_INTERFACE
  3526. } ITfEditTransactionSinkVtbl;
  3527. interface ITfEditTransactionSink
  3528. {
  3529. CONST_VTBL struct ITfEditTransactionSinkVtbl *lpVtbl;
  3530. };
  3531. #ifdef COBJMACROS
  3532. #define ITfEditTransactionSink_QueryInterface(This,riid,ppvObject) \
  3533. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  3534. #define ITfEditTransactionSink_AddRef(This) \
  3535. (This)->lpVtbl -> AddRef(This)
  3536. #define ITfEditTransactionSink_Release(This) \
  3537. (This)->lpVtbl -> Release(This)
  3538. #define ITfEditTransactionSink_OnStartEditTransaction(This,pic) \
  3539. (This)->lpVtbl -> OnStartEditTransaction(This,pic)
  3540. #define ITfEditTransactionSink_OnEndEditTransaction(This,pic) \
  3541. (This)->lpVtbl -> OnEndEditTransaction(This,pic)
  3542. #endif /* COBJMACROS */
  3543. #endif /* C style interface */
  3544. HRESULT STDMETHODCALLTYPE ITfEditTransactionSink_OnStartEditTransaction_Proxy(
  3545. ITfEditTransactionSink * This,
  3546. /* [in] */ ITfContext *pic);
  3547. void __RPC_STUB ITfEditTransactionSink_OnStartEditTransaction_Stub(
  3548. IRpcStubBuffer *This,
  3549. IRpcChannelBuffer *_pRpcChannelBuffer,
  3550. PRPC_MESSAGE _pRpcMessage,
  3551. DWORD *_pdwStubPhase);
  3552. HRESULT STDMETHODCALLTYPE ITfEditTransactionSink_OnEndEditTransaction_Proxy(
  3553. ITfEditTransactionSink * This,
  3554. /* [in] */ ITfContext *pic);
  3555. void __RPC_STUB ITfEditTransactionSink_OnEndEditTransaction_Stub(
  3556. IRpcStubBuffer *This,
  3557. IRpcChannelBuffer *_pRpcChannelBuffer,
  3558. PRPC_MESSAGE _pRpcMessage,
  3559. DWORD *_pdwStubPhase);
  3560. #endif /* __ITfEditTransactionSink_INTERFACE_DEFINED__ */
  3561. #ifndef __ITfContextOwner_INTERFACE_DEFINED__
  3562. #define __ITfContextOwner_INTERFACE_DEFINED__
  3563. /* interface ITfContextOwner */
  3564. /* [unique][uuid][object] */
  3565. EXTERN_C const IID IID_ITfContextOwner;
  3566. #if defined(__cplusplus) && !defined(CINTERFACE)
  3567. MIDL_INTERFACE("aa80e80c-2021-11d2-93e0-0060b067b86e")
  3568. ITfContextOwner : public IUnknown
  3569. {
  3570. public:
  3571. virtual HRESULT STDMETHODCALLTYPE GetACPFromPoint(
  3572. /* [in] */ const POINT *ptScreen,
  3573. /* [in] */ DWORD dwFlags,
  3574. /* [out] */ LONG *pacp) = 0;
  3575. virtual HRESULT STDMETHODCALLTYPE GetTextExt(
  3576. /* [in] */ LONG acpStart,
  3577. /* [in] */ LONG acpEnd,
  3578. /* [out] */ RECT *prc,
  3579. /* [out] */ BOOL *pfClipped) = 0;
  3580. virtual HRESULT STDMETHODCALLTYPE GetScreenExt(
  3581. /* [out] */ RECT *prc) = 0;
  3582. virtual HRESULT STDMETHODCALLTYPE GetStatus(
  3583. /* [out] */ TF_STATUS *pdcs) = 0;
  3584. virtual HRESULT STDMETHODCALLTYPE GetWnd(
  3585. /* [out] */ HWND *phwnd) = 0;
  3586. virtual HRESULT STDMETHODCALLTYPE GetAttribute(
  3587. /* [in] */ REFGUID rguidAttribute,
  3588. /* [out] */ VARIANT *pvarValue) = 0;
  3589. };
  3590. #else /* C style interface */
  3591. typedef struct ITfContextOwnerVtbl
  3592. {
  3593. BEGIN_INTERFACE
  3594. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3595. ITfContextOwner * This,
  3596. /* [in] */ REFIID riid,
  3597. /* [iid_is][out] */ void **ppvObject);
  3598. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3599. ITfContextOwner * This);
  3600. ULONG ( STDMETHODCALLTYPE *Release )(
  3601. ITfContextOwner * This);
  3602. HRESULT ( STDMETHODCALLTYPE *GetACPFromPoint )(
  3603. ITfContextOwner * This,
  3604. /* [in] */ const POINT *ptScreen,
  3605. /* [in] */ DWORD dwFlags,
  3606. /* [out] */ LONG *pacp);
  3607. HRESULT ( STDMETHODCALLTYPE *GetTextExt )(
  3608. ITfContextOwner * This,
  3609. /* [in] */ LONG acpStart,
  3610. /* [in] */ LONG acpEnd,
  3611. /* [out] */ RECT *prc,
  3612. /* [out] */ BOOL *pfClipped);
  3613. HRESULT ( STDMETHODCALLTYPE *GetScreenExt )(
  3614. ITfContextOwner * This,
  3615. /* [out] */ RECT *prc);
  3616. HRESULT ( STDMETHODCALLTYPE *GetStatus )(
  3617. ITfContextOwner * This,
  3618. /* [out] */ TF_STATUS *pdcs);
  3619. HRESULT ( STDMETHODCALLTYPE *GetWnd )(
  3620. ITfContextOwner * This,
  3621. /* [out] */ HWND *phwnd);
  3622. HRESULT ( STDMETHODCALLTYPE *GetAttribute )(
  3623. ITfContextOwner * This,
  3624. /* [in] */ REFGUID rguidAttribute,
  3625. /* [out] */ VARIANT *pvarValue);
  3626. END_INTERFACE
  3627. } ITfContextOwnerVtbl;
  3628. interface ITfContextOwner
  3629. {
  3630. CONST_VTBL struct ITfContextOwnerVtbl *lpVtbl;
  3631. };
  3632. #ifdef COBJMACROS
  3633. #define ITfContextOwner_QueryInterface(This,riid,ppvObject) \
  3634. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  3635. #define ITfContextOwner_AddRef(This) \
  3636. (This)->lpVtbl -> AddRef(This)
  3637. #define ITfContextOwner_Release(This) \
  3638. (This)->lpVtbl -> Release(This)
  3639. #define ITfContextOwner_GetACPFromPoint(This,ptScreen,dwFlags,pacp) \
  3640. (This)->lpVtbl -> GetACPFromPoint(This,ptScreen,dwFlags,pacp)
  3641. #define ITfContextOwner_GetTextExt(This,acpStart,acpEnd,prc,pfClipped) \
  3642. (This)->lpVtbl -> GetTextExt(This,acpStart,acpEnd,prc,pfClipped)
  3643. #define ITfContextOwner_GetScreenExt(This,prc) \
  3644. (This)->lpVtbl -> GetScreenExt(This,prc)
  3645. #define ITfContextOwner_GetStatus(This,pdcs) \
  3646. (This)->lpVtbl -> GetStatus(This,pdcs)
  3647. #define ITfContextOwner_GetWnd(This,phwnd) \
  3648. (This)->lpVtbl -> GetWnd(This,phwnd)
  3649. #define ITfContextOwner_GetAttribute(This,rguidAttribute,pvarValue) \
  3650. (This)->lpVtbl -> GetAttribute(This,rguidAttribute,pvarValue)
  3651. #endif /* COBJMACROS */
  3652. #endif /* C style interface */
  3653. HRESULT STDMETHODCALLTYPE ITfContextOwner_GetACPFromPoint_Proxy(
  3654. ITfContextOwner * This,
  3655. /* [in] */ const POINT *ptScreen,
  3656. /* [in] */ DWORD dwFlags,
  3657. /* [out] */ LONG *pacp);
  3658. void __RPC_STUB ITfContextOwner_GetACPFromPoint_Stub(
  3659. IRpcStubBuffer *This,
  3660. IRpcChannelBuffer *_pRpcChannelBuffer,
  3661. PRPC_MESSAGE _pRpcMessage,
  3662. DWORD *_pdwStubPhase);
  3663. HRESULT STDMETHODCALLTYPE ITfContextOwner_GetTextExt_Proxy(
  3664. ITfContextOwner * This,
  3665. /* [in] */ LONG acpStart,
  3666. /* [in] */ LONG acpEnd,
  3667. /* [out] */ RECT *prc,
  3668. /* [out] */ BOOL *pfClipped);
  3669. void __RPC_STUB ITfContextOwner_GetTextExt_Stub(
  3670. IRpcStubBuffer *This,
  3671. IRpcChannelBuffer *_pRpcChannelBuffer,
  3672. PRPC_MESSAGE _pRpcMessage,
  3673. DWORD *_pdwStubPhase);
  3674. HRESULT STDMETHODCALLTYPE ITfContextOwner_GetScreenExt_Proxy(
  3675. ITfContextOwner * This,
  3676. /* [out] */ RECT *prc);
  3677. void __RPC_STUB ITfContextOwner_GetScreenExt_Stub(
  3678. IRpcStubBuffer *This,
  3679. IRpcChannelBuffer *_pRpcChannelBuffer,
  3680. PRPC_MESSAGE _pRpcMessage,
  3681. DWORD *_pdwStubPhase);
  3682. HRESULT STDMETHODCALLTYPE ITfContextOwner_GetStatus_Proxy(
  3683. ITfContextOwner * This,
  3684. /* [out] */ TF_STATUS *pdcs);
  3685. void __RPC_STUB ITfContextOwner_GetStatus_Stub(
  3686. IRpcStubBuffer *This,
  3687. IRpcChannelBuffer *_pRpcChannelBuffer,
  3688. PRPC_MESSAGE _pRpcMessage,
  3689. DWORD *_pdwStubPhase);
  3690. HRESULT STDMETHODCALLTYPE ITfContextOwner_GetWnd_Proxy(
  3691. ITfContextOwner * This,
  3692. /* [out] */ HWND *phwnd);
  3693. void __RPC_STUB ITfContextOwner_GetWnd_Stub(
  3694. IRpcStubBuffer *This,
  3695. IRpcChannelBuffer *_pRpcChannelBuffer,
  3696. PRPC_MESSAGE _pRpcMessage,
  3697. DWORD *_pdwStubPhase);
  3698. HRESULT STDMETHODCALLTYPE ITfContextOwner_GetAttribute_Proxy(
  3699. ITfContextOwner * This,
  3700. /* [in] */ REFGUID rguidAttribute,
  3701. /* [out] */ VARIANT *pvarValue);
  3702. void __RPC_STUB ITfContextOwner_GetAttribute_Stub(
  3703. IRpcStubBuffer *This,
  3704. IRpcChannelBuffer *_pRpcChannelBuffer,
  3705. PRPC_MESSAGE _pRpcMessage,
  3706. DWORD *_pdwStubPhase);
  3707. #endif /* __ITfContextOwner_INTERFACE_DEFINED__ */
  3708. #ifndef __ITfContextOwnerServices_INTERFACE_DEFINED__
  3709. #define __ITfContextOwnerServices_INTERFACE_DEFINED__
  3710. /* interface ITfContextOwnerServices */
  3711. /* [unique][uuid][object] */
  3712. EXTERN_C const IID IID_ITfContextOwnerServices;
  3713. #if defined(__cplusplus) && !defined(CINTERFACE)
  3714. MIDL_INTERFACE("b23eb630-3e1c-11d3-a745-0050040ab407")
  3715. ITfContextOwnerServices : public IUnknown
  3716. {
  3717. public:
  3718. virtual HRESULT STDMETHODCALLTYPE OnLayoutChange( void) = 0;
  3719. virtual HRESULT STDMETHODCALLTYPE OnStatusChange(
  3720. /* [in] */ DWORD dwFlags) = 0;
  3721. virtual HRESULT STDMETHODCALLTYPE OnAttributeChange(
  3722. /* [in] */ REFGUID rguidAttribute) = 0;
  3723. virtual HRESULT STDMETHODCALLTYPE Serialize(
  3724. /* [in] */ ITfProperty *pProp,
  3725. /* [in] */ ITfRange *pRange,
  3726. /* [out] */ TF_PERSISTENT_PROPERTY_HEADER_ACP *pHdr,
  3727. /* [in] */ IStream *pStream) = 0;
  3728. virtual HRESULT STDMETHODCALLTYPE Unserialize(
  3729. /* [in] */ ITfProperty *pProp,
  3730. /* [in] */ const TF_PERSISTENT_PROPERTY_HEADER_ACP *pHdr,
  3731. /* [in] */ IStream *pStream,
  3732. /* [in] */ ITfPersistentPropertyLoaderACP *pLoader) = 0;
  3733. virtual HRESULT STDMETHODCALLTYPE ForceLoadProperty(
  3734. /* [in] */ ITfProperty *pProp) = 0;
  3735. virtual HRESULT STDMETHODCALLTYPE CreateRange(
  3736. /* [in] */ LONG acpStart,
  3737. /* [in] */ LONG acpEnd,
  3738. /* [out] */ ITfRangeACP **ppRange) = 0;
  3739. };
  3740. #else /* C style interface */
  3741. typedef struct ITfContextOwnerServicesVtbl
  3742. {
  3743. BEGIN_INTERFACE
  3744. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3745. ITfContextOwnerServices * This,
  3746. /* [in] */ REFIID riid,
  3747. /* [iid_is][out] */ void **ppvObject);
  3748. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3749. ITfContextOwnerServices * This);
  3750. ULONG ( STDMETHODCALLTYPE *Release )(
  3751. ITfContextOwnerServices * This);
  3752. HRESULT ( STDMETHODCALLTYPE *OnLayoutChange )(
  3753. ITfContextOwnerServices * This);
  3754. HRESULT ( STDMETHODCALLTYPE *OnStatusChange )(
  3755. ITfContextOwnerServices * This,
  3756. /* [in] */ DWORD dwFlags);
  3757. HRESULT ( STDMETHODCALLTYPE *OnAttributeChange )(
  3758. ITfContextOwnerServices * This,
  3759. /* [in] */ REFGUID rguidAttribute);
  3760. HRESULT ( STDMETHODCALLTYPE *Serialize )(
  3761. ITfContextOwnerServices * This,
  3762. /* [in] */ ITfProperty *pProp,
  3763. /* [in] */ ITfRange *pRange,
  3764. /* [out] */ TF_PERSISTENT_PROPERTY_HEADER_ACP *pHdr,
  3765. /* [in] */ IStream *pStream);
  3766. HRESULT ( STDMETHODCALLTYPE *Unserialize )(
  3767. ITfContextOwnerServices * This,
  3768. /* [in] */ ITfProperty *pProp,
  3769. /* [in] */ const TF_PERSISTENT_PROPERTY_HEADER_ACP *pHdr,
  3770. /* [in] */ IStream *pStream,
  3771. /* [in] */ ITfPersistentPropertyLoaderACP *pLoader);
  3772. HRESULT ( STDMETHODCALLTYPE *ForceLoadProperty )(
  3773. ITfContextOwnerServices * This,
  3774. /* [in] */ ITfProperty *pProp);
  3775. HRESULT ( STDMETHODCALLTYPE *CreateRange )(
  3776. ITfContextOwnerServices * This,
  3777. /* [in] */ LONG acpStart,
  3778. /* [in] */ LONG acpEnd,
  3779. /* [out] */ ITfRangeACP **ppRange);
  3780. END_INTERFACE
  3781. } ITfContextOwnerServicesVtbl;
  3782. interface ITfContextOwnerServices
  3783. {
  3784. CONST_VTBL struct ITfContextOwnerServicesVtbl *lpVtbl;
  3785. };
  3786. #ifdef COBJMACROS
  3787. #define ITfContextOwnerServices_QueryInterface(This,riid,ppvObject) \
  3788. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  3789. #define ITfContextOwnerServices_AddRef(This) \
  3790. (This)->lpVtbl -> AddRef(This)
  3791. #define ITfContextOwnerServices_Release(This) \
  3792. (This)->lpVtbl -> Release(This)
  3793. #define ITfContextOwnerServices_OnLayoutChange(This) \
  3794. (This)->lpVtbl -> OnLayoutChange(This)
  3795. #define ITfContextOwnerServices_OnStatusChange(This,dwFlags) \
  3796. (This)->lpVtbl -> OnStatusChange(This,dwFlags)
  3797. #define ITfContextOwnerServices_OnAttributeChange(This,rguidAttribute) \
  3798. (This)->lpVtbl -> OnAttributeChange(This,rguidAttribute)
  3799. #define ITfContextOwnerServices_Serialize(This,pProp,pRange,pHdr,pStream) \
  3800. (This)->lpVtbl -> Serialize(This,pProp,pRange,pHdr,pStream)
  3801. #define ITfContextOwnerServices_Unserialize(This,pProp,pHdr,pStream,pLoader) \
  3802. (This)->lpVtbl -> Unserialize(This,pProp,pHdr,pStream,pLoader)
  3803. #define ITfContextOwnerServices_ForceLoadProperty(This,pProp) \
  3804. (This)->lpVtbl -> ForceLoadProperty(This,pProp)
  3805. #define ITfContextOwnerServices_CreateRange(This,acpStart,acpEnd,ppRange) \
  3806. (This)->lpVtbl -> CreateRange(This,acpStart,acpEnd,ppRange)
  3807. #endif /* COBJMACROS */
  3808. #endif /* C style interface */
  3809. HRESULT STDMETHODCALLTYPE ITfContextOwnerServices_OnLayoutChange_Proxy(
  3810. ITfContextOwnerServices * This);
  3811. void __RPC_STUB ITfContextOwnerServices_OnLayoutChange_Stub(
  3812. IRpcStubBuffer *This,
  3813. IRpcChannelBuffer *_pRpcChannelBuffer,
  3814. PRPC_MESSAGE _pRpcMessage,
  3815. DWORD *_pdwStubPhase);
  3816. HRESULT STDMETHODCALLTYPE ITfContextOwnerServices_OnStatusChange_Proxy(
  3817. ITfContextOwnerServices * This,
  3818. /* [in] */ DWORD dwFlags);
  3819. void __RPC_STUB ITfContextOwnerServices_OnStatusChange_Stub(
  3820. IRpcStubBuffer *This,
  3821. IRpcChannelBuffer *_pRpcChannelBuffer,
  3822. PRPC_MESSAGE _pRpcMessage,
  3823. DWORD *_pdwStubPhase);
  3824. HRESULT STDMETHODCALLTYPE ITfContextOwnerServices_OnAttributeChange_Proxy(
  3825. ITfContextOwnerServices * This,
  3826. /* [in] */ REFGUID rguidAttribute);
  3827. void __RPC_STUB ITfContextOwnerServices_OnAttributeChange_Stub(
  3828. IRpcStubBuffer *This,
  3829. IRpcChannelBuffer *_pRpcChannelBuffer,
  3830. PRPC_MESSAGE _pRpcMessage,
  3831. DWORD *_pdwStubPhase);
  3832. HRESULT STDMETHODCALLTYPE ITfContextOwnerServices_Serialize_Proxy(
  3833. ITfContextOwnerServices * This,
  3834. /* [in] */ ITfProperty *pProp,
  3835. /* [in] */ ITfRange *pRange,
  3836. /* [out] */ TF_PERSISTENT_PROPERTY_HEADER_ACP *pHdr,
  3837. /* [in] */ IStream *pStream);
  3838. void __RPC_STUB ITfContextOwnerServices_Serialize_Stub(
  3839. IRpcStubBuffer *This,
  3840. IRpcChannelBuffer *_pRpcChannelBuffer,
  3841. PRPC_MESSAGE _pRpcMessage,
  3842. DWORD *_pdwStubPhase);
  3843. HRESULT STDMETHODCALLTYPE ITfContextOwnerServices_Unserialize_Proxy(
  3844. ITfContextOwnerServices * This,
  3845. /* [in] */ ITfProperty *pProp,
  3846. /* [in] */ const TF_PERSISTENT_PROPERTY_HEADER_ACP *pHdr,
  3847. /* [in] */ IStream *pStream,
  3848. /* [in] */ ITfPersistentPropertyLoaderACP *pLoader);
  3849. void __RPC_STUB ITfContextOwnerServices_Unserialize_Stub(
  3850. IRpcStubBuffer *This,
  3851. IRpcChannelBuffer *_pRpcChannelBuffer,
  3852. PRPC_MESSAGE _pRpcMessage,
  3853. DWORD *_pdwStubPhase);
  3854. HRESULT STDMETHODCALLTYPE ITfContextOwnerServices_ForceLoadProperty_Proxy(
  3855. ITfContextOwnerServices * This,
  3856. /* [in] */ ITfProperty *pProp);
  3857. void __RPC_STUB ITfContextOwnerServices_ForceLoadProperty_Stub(
  3858. IRpcStubBuffer *This,
  3859. IRpcChannelBuffer *_pRpcChannelBuffer,
  3860. PRPC_MESSAGE _pRpcMessage,
  3861. DWORD *_pdwStubPhase);
  3862. HRESULT STDMETHODCALLTYPE ITfContextOwnerServices_CreateRange_Proxy(
  3863. ITfContextOwnerServices * This,
  3864. /* [in] */ LONG acpStart,
  3865. /* [in] */ LONG acpEnd,
  3866. /* [out] */ ITfRangeACP **ppRange);
  3867. void __RPC_STUB ITfContextOwnerServices_CreateRange_Stub(
  3868. IRpcStubBuffer *This,
  3869. IRpcChannelBuffer *_pRpcChannelBuffer,
  3870. PRPC_MESSAGE _pRpcMessage,
  3871. DWORD *_pdwStubPhase);
  3872. #endif /* __ITfContextOwnerServices_INTERFACE_DEFINED__ */
  3873. #ifndef __ITfContextKeyEventSink_INTERFACE_DEFINED__
  3874. #define __ITfContextKeyEventSink_INTERFACE_DEFINED__
  3875. /* interface ITfContextKeyEventSink */
  3876. /* [unique][uuid][local][object] */
  3877. EXTERN_C const IID IID_ITfContextKeyEventSink;
  3878. #if defined(__cplusplus) && !defined(CINTERFACE)
  3879. MIDL_INTERFACE("0552ba5d-c835-4934-bf50-846aaa67432f")
  3880. ITfContextKeyEventSink : public IUnknown
  3881. {
  3882. public:
  3883. virtual HRESULT STDMETHODCALLTYPE OnKeyDown(
  3884. /* [in] */ WPARAM wParam,
  3885. /* [in] */ LPARAM lParam,
  3886. /* [out] */ BOOL *pfEaten) = 0;
  3887. virtual HRESULT STDMETHODCALLTYPE OnKeyUp(
  3888. /* [in] */ WPARAM wParam,
  3889. /* [in] */ LPARAM lParam,
  3890. /* [out] */ BOOL *pfEaten) = 0;
  3891. virtual HRESULT STDMETHODCALLTYPE OnTestKeyDown(
  3892. /* [in] */ WPARAM wParam,
  3893. /* [in] */ LPARAM lParam,
  3894. /* [out] */ BOOL *pfEaten) = 0;
  3895. virtual HRESULT STDMETHODCALLTYPE OnTestKeyUp(
  3896. /* [in] */ WPARAM wParam,
  3897. /* [in] */ LPARAM lParam,
  3898. /* [out] */ BOOL *pfEaten) = 0;
  3899. };
  3900. #else /* C style interface */
  3901. typedef struct ITfContextKeyEventSinkVtbl
  3902. {
  3903. BEGIN_INTERFACE
  3904. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3905. ITfContextKeyEventSink * This,
  3906. /* [in] */ REFIID riid,
  3907. /* [iid_is][out] */ void **ppvObject);
  3908. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3909. ITfContextKeyEventSink * This);
  3910. ULONG ( STDMETHODCALLTYPE *Release )(
  3911. ITfContextKeyEventSink * This);
  3912. HRESULT ( STDMETHODCALLTYPE *OnKeyDown )(
  3913. ITfContextKeyEventSink * This,
  3914. /* [in] */ WPARAM wParam,
  3915. /* [in] */ LPARAM lParam,
  3916. /* [out] */ BOOL *pfEaten);
  3917. HRESULT ( STDMETHODCALLTYPE *OnKeyUp )(
  3918. ITfContextKeyEventSink * This,
  3919. /* [in] */ WPARAM wParam,
  3920. /* [in] */ LPARAM lParam,
  3921. /* [out] */ BOOL *pfEaten);
  3922. HRESULT ( STDMETHODCALLTYPE *OnTestKeyDown )(
  3923. ITfContextKeyEventSink * This,
  3924. /* [in] */ WPARAM wParam,
  3925. /* [in] */ LPARAM lParam,
  3926. /* [out] */ BOOL *pfEaten);
  3927. HRESULT ( STDMETHODCALLTYPE *OnTestKeyUp )(
  3928. ITfContextKeyEventSink * This,
  3929. /* [in] */ WPARAM wParam,
  3930. /* [in] */ LPARAM lParam,
  3931. /* [out] */ BOOL *pfEaten);
  3932. END_INTERFACE
  3933. } ITfContextKeyEventSinkVtbl;
  3934. interface ITfContextKeyEventSink
  3935. {
  3936. CONST_VTBL struct ITfContextKeyEventSinkVtbl *lpVtbl;
  3937. };
  3938. #ifdef COBJMACROS
  3939. #define ITfContextKeyEventSink_QueryInterface(This,riid,ppvObject) \
  3940. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  3941. #define ITfContextKeyEventSink_AddRef(This) \
  3942. (This)->lpVtbl -> AddRef(This)
  3943. #define ITfContextKeyEventSink_Release(This) \
  3944. (This)->lpVtbl -> Release(This)
  3945. #define ITfContextKeyEventSink_OnKeyDown(This,wParam,lParam,pfEaten) \
  3946. (This)->lpVtbl -> OnKeyDown(This,wParam,lParam,pfEaten)
  3947. #define ITfContextKeyEventSink_OnKeyUp(This,wParam,lParam,pfEaten) \
  3948. (This)->lpVtbl -> OnKeyUp(This,wParam,lParam,pfEaten)
  3949. #define ITfContextKeyEventSink_OnTestKeyDown(This,wParam,lParam,pfEaten) \
  3950. (This)->lpVtbl -> OnTestKeyDown(This,wParam,lParam,pfEaten)
  3951. #define ITfContextKeyEventSink_OnTestKeyUp(This,wParam,lParam,pfEaten) \
  3952. (This)->lpVtbl -> OnTestKeyUp(This,wParam,lParam,pfEaten)
  3953. #endif /* COBJMACROS */
  3954. #endif /* C style interface */
  3955. HRESULT STDMETHODCALLTYPE ITfContextKeyEventSink_OnKeyDown_Proxy(
  3956. ITfContextKeyEventSink * This,
  3957. /* [in] */ WPARAM wParam,
  3958. /* [in] */ LPARAM lParam,
  3959. /* [out] */ BOOL *pfEaten);
  3960. void __RPC_STUB ITfContextKeyEventSink_OnKeyDown_Stub(
  3961. IRpcStubBuffer *This,
  3962. IRpcChannelBuffer *_pRpcChannelBuffer,
  3963. PRPC_MESSAGE _pRpcMessage,
  3964. DWORD *_pdwStubPhase);
  3965. HRESULT STDMETHODCALLTYPE ITfContextKeyEventSink_OnKeyUp_Proxy(
  3966. ITfContextKeyEventSink * This,
  3967. /* [in] */ WPARAM wParam,
  3968. /* [in] */ LPARAM lParam,
  3969. /* [out] */ BOOL *pfEaten);
  3970. void __RPC_STUB ITfContextKeyEventSink_OnKeyUp_Stub(
  3971. IRpcStubBuffer *This,
  3972. IRpcChannelBuffer *_pRpcChannelBuffer,
  3973. PRPC_MESSAGE _pRpcMessage,
  3974. DWORD *_pdwStubPhase);
  3975. HRESULT STDMETHODCALLTYPE ITfContextKeyEventSink_OnTestKeyDown_Proxy(
  3976. ITfContextKeyEventSink * This,
  3977. /* [in] */ WPARAM wParam,
  3978. /* [in] */ LPARAM lParam,
  3979. /* [out] */ BOOL *pfEaten);
  3980. void __RPC_STUB ITfContextKeyEventSink_OnTestKeyDown_Stub(
  3981. IRpcStubBuffer *This,
  3982. IRpcChannelBuffer *_pRpcChannelBuffer,
  3983. PRPC_MESSAGE _pRpcMessage,
  3984. DWORD *_pdwStubPhase);
  3985. HRESULT STDMETHODCALLTYPE ITfContextKeyEventSink_OnTestKeyUp_Proxy(
  3986. ITfContextKeyEventSink * This,
  3987. /* [in] */ WPARAM wParam,
  3988. /* [in] */ LPARAM lParam,
  3989. /* [out] */ BOOL *pfEaten);
  3990. void __RPC_STUB ITfContextKeyEventSink_OnTestKeyUp_Stub(
  3991. IRpcStubBuffer *This,
  3992. IRpcChannelBuffer *_pRpcChannelBuffer,
  3993. PRPC_MESSAGE _pRpcMessage,
  3994. DWORD *_pdwStubPhase);
  3995. #endif /* __ITfContextKeyEventSink_INTERFACE_DEFINED__ */
  3996. #ifndef __ITfEditSession_INTERFACE_DEFINED__
  3997. #define __ITfEditSession_INTERFACE_DEFINED__
  3998. /* interface ITfEditSession */
  3999. /* [unique][uuid][object] */
  4000. EXTERN_C const IID IID_ITfEditSession;
  4001. #if defined(__cplusplus) && !defined(CINTERFACE)
  4002. MIDL_INTERFACE("aa80e803-2021-11d2-93e0-0060b067b86e")
  4003. ITfEditSession : public IUnknown
  4004. {
  4005. public:
  4006. virtual HRESULT STDMETHODCALLTYPE EditSession(
  4007. /* [in] */ TfEditCookie ec) = 0;
  4008. };
  4009. #else /* C style interface */
  4010. typedef struct ITfEditSessionVtbl
  4011. {
  4012. BEGIN_INTERFACE
  4013. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4014. ITfEditSession * This,
  4015. /* [in] */ REFIID riid,
  4016. /* [iid_is][out] */ void **ppvObject);
  4017. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4018. ITfEditSession * This);
  4019. ULONG ( STDMETHODCALLTYPE *Release )(
  4020. ITfEditSession * This);
  4021. HRESULT ( STDMETHODCALLTYPE *EditSession )(
  4022. ITfEditSession * This,
  4023. /* [in] */ TfEditCookie ec);
  4024. END_INTERFACE
  4025. } ITfEditSessionVtbl;
  4026. interface ITfEditSession
  4027. {
  4028. CONST_VTBL struct ITfEditSessionVtbl *lpVtbl;
  4029. };
  4030. #ifdef COBJMACROS
  4031. #define ITfEditSession_QueryInterface(This,riid,ppvObject) \
  4032. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  4033. #define ITfEditSession_AddRef(This) \
  4034. (This)->lpVtbl -> AddRef(This)
  4035. #define ITfEditSession_Release(This) \
  4036. (This)->lpVtbl -> Release(This)
  4037. #define ITfEditSession_EditSession(This,ec) \
  4038. (This)->lpVtbl -> EditSession(This,ec)
  4039. #endif /* COBJMACROS */
  4040. #endif /* C style interface */
  4041. HRESULT STDMETHODCALLTYPE ITfEditSession_EditSession_Proxy(
  4042. ITfEditSession * This,
  4043. /* [in] */ TfEditCookie ec);
  4044. void __RPC_STUB ITfEditSession_EditSession_Stub(
  4045. IRpcStubBuffer *This,
  4046. IRpcChannelBuffer *_pRpcChannelBuffer,
  4047. PRPC_MESSAGE _pRpcMessage,
  4048. DWORD *_pdwStubPhase);
  4049. #endif /* __ITfEditSession_INTERFACE_DEFINED__ */
  4050. /* interface __MIDL_itf_msctf_0172 */
  4051. /* [local] */
  4052. #define TF_TD_CORRECTION ( 1 )
  4053. typedef /* [uuid] */ DECLSPEC_UUID("2b9f8421-ea29-4904-8668-2eca2083ca61") struct TF_TEXTDELTA
  4054. {
  4055. ITfRange *pRange;
  4056. DWORD dwFlags;
  4057. LONG lOldLen;
  4058. } TF_TEXTDELTA;
  4059. extern RPC_IF_HANDLE __MIDL_itf_msctf_0172_v0_0_c_ifspec;
  4060. extern RPC_IF_HANDLE __MIDL_itf_msctf_0172_v0_0_s_ifspec;
  4061. #ifndef __IEnumTfTextDeltas_INTERFACE_DEFINED__
  4062. #define __IEnumTfTextDeltas_INTERFACE_DEFINED__
  4063. /* interface IEnumTfTextDeltas */
  4064. /* [unique][uuid][object] */
  4065. EXTERN_C const IID IID_IEnumTfTextDeltas;
  4066. #if defined(__cplusplus) && !defined(CINTERFACE)
  4067. MIDL_INTERFACE("aa80e807-2021-11d2-93e0-0060b067b86e")
  4068. IEnumTfTextDeltas : public IUnknown
  4069. {
  4070. public:
  4071. virtual HRESULT STDMETHODCALLTYPE Clone(
  4072. /* [out] */ IEnumTfTextDeltas **ppEnum) = 0;
  4073. virtual HRESULT STDMETHODCALLTYPE Next(
  4074. /* [in] */ ULONG ulCount,
  4075. /* [length_is][size_is][out] */ TF_TEXTDELTA *rgTextDelta,
  4076. /* [out] */ ULONG *pcFetched) = 0;
  4077. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  4078. virtual HRESULT STDMETHODCALLTYPE Skip(
  4079. /* [in] */ ULONG ulCount) = 0;
  4080. };
  4081. #else /* C style interface */
  4082. typedef struct IEnumTfTextDeltasVtbl
  4083. {
  4084. BEGIN_INTERFACE
  4085. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4086. IEnumTfTextDeltas * This,
  4087. /* [in] */ REFIID riid,
  4088. /* [iid_is][out] */ void **ppvObject);
  4089. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4090. IEnumTfTextDeltas * This);
  4091. ULONG ( STDMETHODCALLTYPE *Release )(
  4092. IEnumTfTextDeltas * This);
  4093. HRESULT ( STDMETHODCALLTYPE *Clone )(
  4094. IEnumTfTextDeltas * This,
  4095. /* [out] */ IEnumTfTextDeltas **ppEnum);
  4096. HRESULT ( STDMETHODCALLTYPE *Next )(
  4097. IEnumTfTextDeltas * This,
  4098. /* [in] */ ULONG ulCount,
  4099. /* [length_is][size_is][out] */ TF_TEXTDELTA *rgTextDelta,
  4100. /* [out] */ ULONG *pcFetched);
  4101. HRESULT ( STDMETHODCALLTYPE *Reset )(
  4102. IEnumTfTextDeltas * This);
  4103. HRESULT ( STDMETHODCALLTYPE *Skip )(
  4104. IEnumTfTextDeltas * This,
  4105. /* [in] */ ULONG ulCount);
  4106. END_INTERFACE
  4107. } IEnumTfTextDeltasVtbl;
  4108. interface IEnumTfTextDeltas
  4109. {
  4110. CONST_VTBL struct IEnumTfTextDeltasVtbl *lpVtbl;
  4111. };
  4112. #ifdef COBJMACROS
  4113. #define IEnumTfTextDeltas_QueryInterface(This,riid,ppvObject) \
  4114. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  4115. #define IEnumTfTextDeltas_AddRef(This) \
  4116. (This)->lpVtbl -> AddRef(This)
  4117. #define IEnumTfTextDeltas_Release(This) \
  4118. (This)->lpVtbl -> Release(This)
  4119. #define IEnumTfTextDeltas_Clone(This,ppEnum) \
  4120. (This)->lpVtbl -> Clone(This,ppEnum)
  4121. #define IEnumTfTextDeltas_Next(This,ulCount,rgTextDelta,pcFetched) \
  4122. (This)->lpVtbl -> Next(This,ulCount,rgTextDelta,pcFetched)
  4123. #define IEnumTfTextDeltas_Reset(This) \
  4124. (This)->lpVtbl -> Reset(This)
  4125. #define IEnumTfTextDeltas_Skip(This,ulCount) \
  4126. (This)->lpVtbl -> Skip(This,ulCount)
  4127. #endif /* COBJMACROS */
  4128. #endif /* C style interface */
  4129. HRESULT STDMETHODCALLTYPE IEnumTfTextDeltas_Clone_Proxy(
  4130. IEnumTfTextDeltas * This,
  4131. /* [out] */ IEnumTfTextDeltas **ppEnum);
  4132. void __RPC_STUB IEnumTfTextDeltas_Clone_Stub(
  4133. IRpcStubBuffer *This,
  4134. IRpcChannelBuffer *_pRpcChannelBuffer,
  4135. PRPC_MESSAGE _pRpcMessage,
  4136. DWORD *_pdwStubPhase);
  4137. HRESULT STDMETHODCALLTYPE IEnumTfTextDeltas_Next_Proxy(
  4138. IEnumTfTextDeltas * This,
  4139. /* [in] */ ULONG ulCount,
  4140. /* [length_is][size_is][out] */ TF_TEXTDELTA *rgTextDelta,
  4141. /* [out] */ ULONG *pcFetched);
  4142. void __RPC_STUB IEnumTfTextDeltas_Next_Stub(
  4143. IRpcStubBuffer *This,
  4144. IRpcChannelBuffer *_pRpcChannelBuffer,
  4145. PRPC_MESSAGE _pRpcMessage,
  4146. DWORD *_pdwStubPhase);
  4147. HRESULT STDMETHODCALLTYPE IEnumTfTextDeltas_Reset_Proxy(
  4148. IEnumTfTextDeltas * This);
  4149. void __RPC_STUB IEnumTfTextDeltas_Reset_Stub(
  4150. IRpcStubBuffer *This,
  4151. IRpcChannelBuffer *_pRpcChannelBuffer,
  4152. PRPC_MESSAGE _pRpcMessage,
  4153. DWORD *_pdwStubPhase);
  4154. HRESULT STDMETHODCALLTYPE IEnumTfTextDeltas_Skip_Proxy(
  4155. IEnumTfTextDeltas * This,
  4156. /* [in] */ ULONG ulCount);
  4157. void __RPC_STUB IEnumTfTextDeltas_Skip_Stub(
  4158. IRpcStubBuffer *This,
  4159. IRpcChannelBuffer *_pRpcChannelBuffer,
  4160. PRPC_MESSAGE _pRpcMessage,
  4161. DWORD *_pdwStubPhase);
  4162. #endif /* __IEnumTfTextDeltas_INTERFACE_DEFINED__ */
  4163. #ifndef __ITfRange_INTERFACE_DEFINED__
  4164. #define __ITfRange_INTERFACE_DEFINED__
  4165. /* interface ITfRange */
  4166. /* [unique][uuid][object] */
  4167. #define TF_CHAR_EMBEDDED ( TS_CHAR_EMBEDDED )
  4168. typedef /* [public][public][public][public][public][uuid] */ DECLSPEC_UUID("cf610f06-2882-46f6-abe5-298568b664c4")
  4169. enum __MIDL_ITfRange_0001
  4170. { TF_GRAVITY_BACKWARD = 0,
  4171. TF_GRAVITY_FORWARD = 1
  4172. } TfGravity;
  4173. typedef /* [public][public][public][uuid] */ DECLSPEC_UUID("1e512533-bbdc-4530-9a8e-a1dc0af67468")
  4174. enum __MIDL_ITfRange_0002
  4175. { TF_SD_BACKWARD = 0,
  4176. TF_SD_FORWARD = 1
  4177. } TfShiftDir;
  4178. #define TF_HF_OBJECT ( 1 )
  4179. #define TF_TF_MOVESTART ( 1 )
  4180. #define TF_TF_IGNOREEND ( 2 )
  4181. #define TF_ST_CORRECTION ( 1 )
  4182. #define TF_IE_CORRECTION ( 1 )
  4183. typedef /* [uuid] */ DECLSPEC_UUID("49930d51-7d93-448c-a48c-fea5dac192b1") struct TF_HALTCOND
  4184. {
  4185. ITfRange *pHaltRange;
  4186. TfAnchor aHaltPos;
  4187. DWORD dwFlags;
  4188. } TF_HALTCOND;
  4189. EXTERN_C const IID IID_ITfRange;
  4190. #if defined(__cplusplus) && !defined(CINTERFACE)
  4191. MIDL_INTERFACE("aa80e7ff-2021-11d2-93e0-0060b067b86e")
  4192. ITfRange : public IUnknown
  4193. {
  4194. public:
  4195. virtual HRESULT STDMETHODCALLTYPE GetText(
  4196. /* [in] */ TfEditCookie ec,
  4197. /* [in] */ DWORD dwFlags,
  4198. /* [length_is][size_is][out] */ WCHAR *pchText,
  4199. /* [in] */ ULONG cchMax,
  4200. /* [out] */ ULONG *pcch) = 0;
  4201. virtual HRESULT STDMETHODCALLTYPE SetText(
  4202. /* [in] */ TfEditCookie ec,
  4203. /* [in] */ DWORD dwFlags,
  4204. /* [unique][size_is][in] */ const WCHAR *pchText,
  4205. /* [in] */ LONG cch) = 0;
  4206. virtual HRESULT STDMETHODCALLTYPE GetFormattedText(
  4207. /* [in] */ TfEditCookie ec,
  4208. /* [out] */ IDataObject **ppDataObject) = 0;
  4209. virtual HRESULT STDMETHODCALLTYPE GetEmbedded(
  4210. /* [in] */ TfEditCookie ec,
  4211. /* [in] */ REFGUID rguidService,
  4212. /* [in] */ REFIID riid,
  4213. /* [iid_is][out] */ IUnknown **ppunk) = 0;
  4214. virtual HRESULT STDMETHODCALLTYPE InsertEmbedded(
  4215. /* [in] */ TfEditCookie ec,
  4216. /* [in] */ DWORD dwFlags,
  4217. /* [in] */ IDataObject *pDataObject) = 0;
  4218. virtual HRESULT STDMETHODCALLTYPE ShiftStart(
  4219. /* [in] */ TfEditCookie ec,
  4220. /* [in] */ LONG cchReq,
  4221. /* [out] */ LONG *pcch,
  4222. /* [unique][in] */ const TF_HALTCOND *pHalt) = 0;
  4223. virtual HRESULT STDMETHODCALLTYPE ShiftEnd(
  4224. /* [in] */ TfEditCookie ec,
  4225. /* [in] */ LONG cchReq,
  4226. /* [out] */ LONG *pcch,
  4227. /* [unique][in] */ const TF_HALTCOND *pHalt) = 0;
  4228. virtual HRESULT STDMETHODCALLTYPE ShiftStartToRange(
  4229. /* [in] */ TfEditCookie ec,
  4230. /* [in] */ ITfRange *pRange,
  4231. /* [in] */ TfAnchor aPos) = 0;
  4232. virtual HRESULT STDMETHODCALLTYPE ShiftEndToRange(
  4233. /* [in] */ TfEditCookie ec,
  4234. /* [in] */ ITfRange *pRange,
  4235. /* [in] */ TfAnchor aPos) = 0;
  4236. virtual HRESULT STDMETHODCALLTYPE ShiftStartRegion(
  4237. /* [in] */ TfEditCookie ec,
  4238. /* [in] */ TfShiftDir dir,
  4239. /* [out] */ BOOL *pfNoRegion) = 0;
  4240. virtual HRESULT STDMETHODCALLTYPE ShiftEndRegion(
  4241. /* [in] */ TfEditCookie ec,
  4242. /* [in] */ TfShiftDir dir,
  4243. /* [out] */ BOOL *pfNoRegion) = 0;
  4244. virtual HRESULT STDMETHODCALLTYPE IsEmpty(
  4245. /* [in] */ TfEditCookie ec,
  4246. /* [out] */ BOOL *pfEmpty) = 0;
  4247. virtual HRESULT STDMETHODCALLTYPE Collapse(
  4248. /* [in] */ TfEditCookie ec,
  4249. /* [in] */ TfAnchor aPos) = 0;
  4250. virtual HRESULT STDMETHODCALLTYPE IsEqualStart(
  4251. /* [in] */ TfEditCookie ec,
  4252. /* [in] */ ITfRange *pWith,
  4253. /* [in] */ TfAnchor aPos,
  4254. /* [out] */ BOOL *pfEqual) = 0;
  4255. virtual HRESULT STDMETHODCALLTYPE IsEqualEnd(
  4256. /* [in] */ TfEditCookie ec,
  4257. /* [in] */ ITfRange *pWith,
  4258. /* [in] */ TfAnchor aPos,
  4259. /* [out] */ BOOL *pfEqual) = 0;
  4260. virtual HRESULT STDMETHODCALLTYPE CompareStart(
  4261. /* [in] */ TfEditCookie ec,
  4262. /* [in] */ ITfRange *pWith,
  4263. /* [in] */ TfAnchor aPos,
  4264. /* [out] */ LONG *plResult) = 0;
  4265. virtual HRESULT STDMETHODCALLTYPE CompareEnd(
  4266. /* [in] */ TfEditCookie ec,
  4267. /* [in] */ ITfRange *pWith,
  4268. /* [in] */ TfAnchor aPos,
  4269. /* [out] */ LONG *plResult) = 0;
  4270. virtual HRESULT STDMETHODCALLTYPE AdjustForInsert(
  4271. /* [in] */ TfEditCookie ec,
  4272. /* [in] */ ULONG cchInsert,
  4273. /* [out] */ BOOL *pfInsertOk) = 0;
  4274. virtual HRESULT STDMETHODCALLTYPE GetGravity(
  4275. /* [out] */ TfGravity *pgStart,
  4276. /* [out] */ TfGravity *pgEnd) = 0;
  4277. virtual HRESULT STDMETHODCALLTYPE SetGravity(
  4278. /* [in] */ TfEditCookie ec,
  4279. /* [in] */ TfGravity gStart,
  4280. /* [in] */ TfGravity gEnd) = 0;
  4281. virtual HRESULT STDMETHODCALLTYPE Clone(
  4282. /* [out] */ ITfRange **ppClone) = 0;
  4283. virtual HRESULT STDMETHODCALLTYPE GetContext(
  4284. /* [out] */ ITfContext **ppContext) = 0;
  4285. };
  4286. #else /* C style interface */
  4287. typedef struct ITfRangeVtbl
  4288. {
  4289. BEGIN_INTERFACE
  4290. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4291. ITfRange * This,
  4292. /* [in] */ REFIID riid,
  4293. /* [iid_is][out] */ void **ppvObject);
  4294. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4295. ITfRange * This);
  4296. ULONG ( STDMETHODCALLTYPE *Release )(
  4297. ITfRange * This);
  4298. HRESULT ( STDMETHODCALLTYPE *GetText )(
  4299. ITfRange * This,
  4300. /* [in] */ TfEditCookie ec,
  4301. /* [in] */ DWORD dwFlags,
  4302. /* [length_is][size_is][out] */ WCHAR *pchText,
  4303. /* [in] */ ULONG cchMax,
  4304. /* [out] */ ULONG *pcch);
  4305. HRESULT ( STDMETHODCALLTYPE *SetText )(
  4306. ITfRange * This,
  4307. /* [in] */ TfEditCookie ec,
  4308. /* [in] */ DWORD dwFlags,
  4309. /* [unique][size_is][in] */ const WCHAR *pchText,
  4310. /* [in] */ LONG cch);
  4311. HRESULT ( STDMETHODCALLTYPE *GetFormattedText )(
  4312. ITfRange * This,
  4313. /* [in] */ TfEditCookie ec,
  4314. /* [out] */ IDataObject **ppDataObject);
  4315. HRESULT ( STDMETHODCALLTYPE *GetEmbedded )(
  4316. ITfRange * This,
  4317. /* [in] */ TfEditCookie ec,
  4318. /* [in] */ REFGUID rguidService,
  4319. /* [in] */ REFIID riid,
  4320. /* [iid_is][out] */ IUnknown **ppunk);
  4321. HRESULT ( STDMETHODCALLTYPE *InsertEmbedded )(
  4322. ITfRange * This,
  4323. /* [in] */ TfEditCookie ec,
  4324. /* [in] */ DWORD dwFlags,
  4325. /* [in] */ IDataObject *pDataObject);
  4326. HRESULT ( STDMETHODCALLTYPE *ShiftStart )(
  4327. ITfRange * This,
  4328. /* [in] */ TfEditCookie ec,
  4329. /* [in] */ LONG cchReq,
  4330. /* [out] */ LONG *pcch,
  4331. /* [unique][in] */ const TF_HALTCOND *pHalt);
  4332. HRESULT ( STDMETHODCALLTYPE *ShiftEnd )(
  4333. ITfRange * This,
  4334. /* [in] */ TfEditCookie ec,
  4335. /* [in] */ LONG cchReq,
  4336. /* [out] */ LONG *pcch,
  4337. /* [unique][in] */ const TF_HALTCOND *pHalt);
  4338. HRESULT ( STDMETHODCALLTYPE *ShiftStartToRange )(
  4339. ITfRange * This,
  4340. /* [in] */ TfEditCookie ec,
  4341. /* [in] */ ITfRange *pRange,
  4342. /* [in] */ TfAnchor aPos);
  4343. HRESULT ( STDMETHODCALLTYPE *ShiftEndToRange )(
  4344. ITfRange * This,
  4345. /* [in] */ TfEditCookie ec,
  4346. /* [in] */ ITfRange *pRange,
  4347. /* [in] */ TfAnchor aPos);
  4348. HRESULT ( STDMETHODCALLTYPE *ShiftStartRegion )(
  4349. ITfRange * This,
  4350. /* [in] */ TfEditCookie ec,
  4351. /* [in] */ TfShiftDir dir,
  4352. /* [out] */ BOOL *pfNoRegion);
  4353. HRESULT ( STDMETHODCALLTYPE *ShiftEndRegion )(
  4354. ITfRange * This,
  4355. /* [in] */ TfEditCookie ec,
  4356. /* [in] */ TfShiftDir dir,
  4357. /* [out] */ BOOL *pfNoRegion);
  4358. HRESULT ( STDMETHODCALLTYPE *IsEmpty )(
  4359. ITfRange * This,
  4360. /* [in] */ TfEditCookie ec,
  4361. /* [out] */ BOOL *pfEmpty);
  4362. HRESULT ( STDMETHODCALLTYPE *Collapse )(
  4363. ITfRange * This,
  4364. /* [in] */ TfEditCookie ec,
  4365. /* [in] */ TfAnchor aPos);
  4366. HRESULT ( STDMETHODCALLTYPE *IsEqualStart )(
  4367. ITfRange * This,
  4368. /* [in] */ TfEditCookie ec,
  4369. /* [in] */ ITfRange *pWith,
  4370. /* [in] */ TfAnchor aPos,
  4371. /* [out] */ BOOL *pfEqual);
  4372. HRESULT ( STDMETHODCALLTYPE *IsEqualEnd )(
  4373. ITfRange * This,
  4374. /* [in] */ TfEditCookie ec,
  4375. /* [in] */ ITfRange *pWith,
  4376. /* [in] */ TfAnchor aPos,
  4377. /* [out] */ BOOL *pfEqual);
  4378. HRESULT ( STDMETHODCALLTYPE *CompareStart )(
  4379. ITfRange * This,
  4380. /* [in] */ TfEditCookie ec,
  4381. /* [in] */ ITfRange *pWith,
  4382. /* [in] */ TfAnchor aPos,
  4383. /* [out] */ LONG *plResult);
  4384. HRESULT ( STDMETHODCALLTYPE *CompareEnd )(
  4385. ITfRange * This,
  4386. /* [in] */ TfEditCookie ec,
  4387. /* [in] */ ITfRange *pWith,
  4388. /* [in] */ TfAnchor aPos,
  4389. /* [out] */ LONG *plResult);
  4390. HRESULT ( STDMETHODCALLTYPE *AdjustForInsert )(
  4391. ITfRange * This,
  4392. /* [in] */ TfEditCookie ec,
  4393. /* [in] */ ULONG cchInsert,
  4394. /* [out] */ BOOL *pfInsertOk);
  4395. HRESULT ( STDMETHODCALLTYPE *GetGravity )(
  4396. ITfRange * This,
  4397. /* [out] */ TfGravity *pgStart,
  4398. /* [out] */ TfGravity *pgEnd);
  4399. HRESULT ( STDMETHODCALLTYPE *SetGravity )(
  4400. ITfRange * This,
  4401. /* [in] */ TfEditCookie ec,
  4402. /* [in] */ TfGravity gStart,
  4403. /* [in] */ TfGravity gEnd);
  4404. HRESULT ( STDMETHODCALLTYPE *Clone )(
  4405. ITfRange * This,
  4406. /* [out] */ ITfRange **ppClone);
  4407. HRESULT ( STDMETHODCALLTYPE *GetContext )(
  4408. ITfRange * This,
  4409. /* [out] */ ITfContext **ppContext);
  4410. END_INTERFACE
  4411. } ITfRangeVtbl;
  4412. interface ITfRange
  4413. {
  4414. CONST_VTBL struct ITfRangeVtbl *lpVtbl;
  4415. };
  4416. #ifdef COBJMACROS
  4417. #define ITfRange_QueryInterface(This,riid,ppvObject) \
  4418. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  4419. #define ITfRange_AddRef(This) \
  4420. (This)->lpVtbl -> AddRef(This)
  4421. #define ITfRange_Release(This) \
  4422. (This)->lpVtbl -> Release(This)
  4423. #define ITfRange_GetText(This,ec,dwFlags,pchText,cchMax,pcch) \
  4424. (This)->lpVtbl -> GetText(This,ec,dwFlags,pchText,cchMax,pcch)
  4425. #define ITfRange_SetText(This,ec,dwFlags,pchText,cch) \
  4426. (This)->lpVtbl -> SetText(This,ec,dwFlags,pchText,cch)
  4427. #define ITfRange_GetFormattedText(This,ec,ppDataObject) \
  4428. (This)->lpVtbl -> GetFormattedText(This,ec,ppDataObject)
  4429. #define ITfRange_GetEmbedded(This,ec,rguidService,riid,ppunk) \
  4430. (This)->lpVtbl -> GetEmbedded(This,ec,rguidService,riid,ppunk)
  4431. #define ITfRange_InsertEmbedded(This,ec,dwFlags,pDataObject) \
  4432. (This)->lpVtbl -> InsertEmbedded(This,ec,dwFlags,pDataObject)
  4433. #define ITfRange_ShiftStart(This,ec,cchReq,pcch,pHalt) \
  4434. (This)->lpVtbl -> ShiftStart(This,ec,cchReq,pcch,pHalt)
  4435. #define ITfRange_ShiftEnd(This,ec,cchReq,pcch,pHalt) \
  4436. (This)->lpVtbl -> ShiftEnd(This,ec,cchReq,pcch,pHalt)
  4437. #define ITfRange_ShiftStartToRange(This,ec,pRange,aPos) \
  4438. (This)->lpVtbl -> ShiftStartToRange(This,ec,pRange,aPos)
  4439. #define ITfRange_ShiftEndToRange(This,ec,pRange,aPos) \
  4440. (This)->lpVtbl -> ShiftEndToRange(This,ec,pRange,aPos)
  4441. #define ITfRange_ShiftStartRegion(This,ec,dir,pfNoRegion) \
  4442. (This)->lpVtbl -> ShiftStartRegion(This,ec,dir,pfNoRegion)
  4443. #define ITfRange_ShiftEndRegion(This,ec,dir,pfNoRegion) \
  4444. (This)->lpVtbl -> ShiftEndRegion(This,ec,dir,pfNoRegion)
  4445. #define ITfRange_IsEmpty(This,ec,pfEmpty) \
  4446. (This)->lpVtbl -> IsEmpty(This,ec,pfEmpty)
  4447. #define ITfRange_Collapse(This,ec,aPos) \
  4448. (This)->lpVtbl -> Collapse(This,ec,aPos)
  4449. #define ITfRange_IsEqualStart(This,ec,pWith,aPos,pfEqual) \
  4450. (This)->lpVtbl -> IsEqualStart(This,ec,pWith,aPos,pfEqual)
  4451. #define ITfRange_IsEqualEnd(This,ec,pWith,aPos,pfEqual) \
  4452. (This)->lpVtbl -> IsEqualEnd(This,ec,pWith,aPos,pfEqual)
  4453. #define ITfRange_CompareStart(This,ec,pWith,aPos,plResult) \
  4454. (This)->lpVtbl -> CompareStart(This,ec,pWith,aPos,plResult)
  4455. #define ITfRange_CompareEnd(This,ec,pWith,aPos,plResult) \
  4456. (This)->lpVtbl -> CompareEnd(This,ec,pWith,aPos,plResult)
  4457. #define ITfRange_AdjustForInsert(This,ec,cchInsert,pfInsertOk) \
  4458. (This)->lpVtbl -> AdjustForInsert(This,ec,cchInsert,pfInsertOk)
  4459. #define ITfRange_GetGravity(This,pgStart,pgEnd) \
  4460. (This)->lpVtbl -> GetGravity(This,pgStart,pgEnd)
  4461. #define ITfRange_SetGravity(This,ec,gStart,gEnd) \
  4462. (This)->lpVtbl -> SetGravity(This,ec,gStart,gEnd)
  4463. #define ITfRange_Clone(This,ppClone) \
  4464. (This)->lpVtbl -> Clone(This,ppClone)
  4465. #define ITfRange_GetContext(This,ppContext) \
  4466. (This)->lpVtbl -> GetContext(This,ppContext)
  4467. #endif /* COBJMACROS */
  4468. #endif /* C style interface */
  4469. HRESULT STDMETHODCALLTYPE ITfRange_GetText_Proxy(
  4470. ITfRange * This,
  4471. /* [in] */ TfEditCookie ec,
  4472. /* [in] */ DWORD dwFlags,
  4473. /* [length_is][size_is][out] */ WCHAR *pchText,
  4474. /* [in] */ ULONG cchMax,
  4475. /* [out] */ ULONG *pcch);
  4476. void __RPC_STUB ITfRange_GetText_Stub(
  4477. IRpcStubBuffer *This,
  4478. IRpcChannelBuffer *_pRpcChannelBuffer,
  4479. PRPC_MESSAGE _pRpcMessage,
  4480. DWORD *_pdwStubPhase);
  4481. HRESULT STDMETHODCALLTYPE ITfRange_SetText_Proxy(
  4482. ITfRange * This,
  4483. /* [in] */ TfEditCookie ec,
  4484. /* [in] */ DWORD dwFlags,
  4485. /* [unique][size_is][in] */ const WCHAR *pchText,
  4486. /* [in] */ LONG cch);
  4487. void __RPC_STUB ITfRange_SetText_Stub(
  4488. IRpcStubBuffer *This,
  4489. IRpcChannelBuffer *_pRpcChannelBuffer,
  4490. PRPC_MESSAGE _pRpcMessage,
  4491. DWORD *_pdwStubPhase);
  4492. HRESULT STDMETHODCALLTYPE ITfRange_GetFormattedText_Proxy(
  4493. ITfRange * This,
  4494. /* [in] */ TfEditCookie ec,
  4495. /* [out] */ IDataObject **ppDataObject);
  4496. void __RPC_STUB ITfRange_GetFormattedText_Stub(
  4497. IRpcStubBuffer *This,
  4498. IRpcChannelBuffer *_pRpcChannelBuffer,
  4499. PRPC_MESSAGE _pRpcMessage,
  4500. DWORD *_pdwStubPhase);
  4501. HRESULT STDMETHODCALLTYPE ITfRange_GetEmbedded_Proxy(
  4502. ITfRange * This,
  4503. /* [in] */ TfEditCookie ec,
  4504. /* [in] */ REFGUID rguidService,
  4505. /* [in] */ REFIID riid,
  4506. /* [iid_is][out] */ IUnknown **ppunk);
  4507. void __RPC_STUB ITfRange_GetEmbedded_Stub(
  4508. IRpcStubBuffer *This,
  4509. IRpcChannelBuffer *_pRpcChannelBuffer,
  4510. PRPC_MESSAGE _pRpcMessage,
  4511. DWORD *_pdwStubPhase);
  4512. HRESULT STDMETHODCALLTYPE ITfRange_InsertEmbedded_Proxy(
  4513. ITfRange * This,
  4514. /* [in] */ TfEditCookie ec,
  4515. /* [in] */ DWORD dwFlags,
  4516. /* [in] */ IDataObject *pDataObject);
  4517. void __RPC_STUB ITfRange_InsertEmbedded_Stub(
  4518. IRpcStubBuffer *This,
  4519. IRpcChannelBuffer *_pRpcChannelBuffer,
  4520. PRPC_MESSAGE _pRpcMessage,
  4521. DWORD *_pdwStubPhase);
  4522. HRESULT STDMETHODCALLTYPE ITfRange_ShiftStart_Proxy(
  4523. ITfRange * This,
  4524. /* [in] */ TfEditCookie ec,
  4525. /* [in] */ LONG cchReq,
  4526. /* [out] */ LONG *pcch,
  4527. /* [unique][in] */ const TF_HALTCOND *pHalt);
  4528. void __RPC_STUB ITfRange_ShiftStart_Stub(
  4529. IRpcStubBuffer *This,
  4530. IRpcChannelBuffer *_pRpcChannelBuffer,
  4531. PRPC_MESSAGE _pRpcMessage,
  4532. DWORD *_pdwStubPhase);
  4533. HRESULT STDMETHODCALLTYPE ITfRange_ShiftEnd_Proxy(
  4534. ITfRange * This,
  4535. /* [in] */ TfEditCookie ec,
  4536. /* [in] */ LONG cchReq,
  4537. /* [out] */ LONG *pcch,
  4538. /* [unique][in] */ const TF_HALTCOND *pHalt);
  4539. void __RPC_STUB ITfRange_ShiftEnd_Stub(
  4540. IRpcStubBuffer *This,
  4541. IRpcChannelBuffer *_pRpcChannelBuffer,
  4542. PRPC_MESSAGE _pRpcMessage,
  4543. DWORD *_pdwStubPhase);
  4544. HRESULT STDMETHODCALLTYPE ITfRange_ShiftStartToRange_Proxy(
  4545. ITfRange * This,
  4546. /* [in] */ TfEditCookie ec,
  4547. /* [in] */ ITfRange *pRange,
  4548. /* [in] */ TfAnchor aPos);
  4549. void __RPC_STUB ITfRange_ShiftStartToRange_Stub(
  4550. IRpcStubBuffer *This,
  4551. IRpcChannelBuffer *_pRpcChannelBuffer,
  4552. PRPC_MESSAGE _pRpcMessage,
  4553. DWORD *_pdwStubPhase);
  4554. HRESULT STDMETHODCALLTYPE ITfRange_ShiftEndToRange_Proxy(
  4555. ITfRange * This,
  4556. /* [in] */ TfEditCookie ec,
  4557. /* [in] */ ITfRange *pRange,
  4558. /* [in] */ TfAnchor aPos);
  4559. void __RPC_STUB ITfRange_ShiftEndToRange_Stub(
  4560. IRpcStubBuffer *This,
  4561. IRpcChannelBuffer *_pRpcChannelBuffer,
  4562. PRPC_MESSAGE _pRpcMessage,
  4563. DWORD *_pdwStubPhase);
  4564. HRESULT STDMETHODCALLTYPE ITfRange_ShiftStartRegion_Proxy(
  4565. ITfRange * This,
  4566. /* [in] */ TfEditCookie ec,
  4567. /* [in] */ TfShiftDir dir,
  4568. /* [out] */ BOOL *pfNoRegion);
  4569. void __RPC_STUB ITfRange_ShiftStartRegion_Stub(
  4570. IRpcStubBuffer *This,
  4571. IRpcChannelBuffer *_pRpcChannelBuffer,
  4572. PRPC_MESSAGE _pRpcMessage,
  4573. DWORD *_pdwStubPhase);
  4574. HRESULT STDMETHODCALLTYPE ITfRange_ShiftEndRegion_Proxy(
  4575. ITfRange * This,
  4576. /* [in] */ TfEditCookie ec,
  4577. /* [in] */ TfShiftDir dir,
  4578. /* [out] */ BOOL *pfNoRegion);
  4579. void __RPC_STUB ITfRange_ShiftEndRegion_Stub(
  4580. IRpcStubBuffer *This,
  4581. IRpcChannelBuffer *_pRpcChannelBuffer,
  4582. PRPC_MESSAGE _pRpcMessage,
  4583. DWORD *_pdwStubPhase);
  4584. HRESULT STDMETHODCALLTYPE ITfRange_IsEmpty_Proxy(
  4585. ITfRange * This,
  4586. /* [in] */ TfEditCookie ec,
  4587. /* [out] */ BOOL *pfEmpty);
  4588. void __RPC_STUB ITfRange_IsEmpty_Stub(
  4589. IRpcStubBuffer *This,
  4590. IRpcChannelBuffer *_pRpcChannelBuffer,
  4591. PRPC_MESSAGE _pRpcMessage,
  4592. DWORD *_pdwStubPhase);
  4593. HRESULT STDMETHODCALLTYPE ITfRange_Collapse_Proxy(
  4594. ITfRange * This,
  4595. /* [in] */ TfEditCookie ec,
  4596. /* [in] */ TfAnchor aPos);
  4597. void __RPC_STUB ITfRange_Collapse_Stub(
  4598. IRpcStubBuffer *This,
  4599. IRpcChannelBuffer *_pRpcChannelBuffer,
  4600. PRPC_MESSAGE _pRpcMessage,
  4601. DWORD *_pdwStubPhase);
  4602. HRESULT STDMETHODCALLTYPE ITfRange_IsEqualStart_Proxy(
  4603. ITfRange * This,
  4604. /* [in] */ TfEditCookie ec,
  4605. /* [in] */ ITfRange *pWith,
  4606. /* [in] */ TfAnchor aPos,
  4607. /* [out] */ BOOL *pfEqual);
  4608. void __RPC_STUB ITfRange_IsEqualStart_Stub(
  4609. IRpcStubBuffer *This,
  4610. IRpcChannelBuffer *_pRpcChannelBuffer,
  4611. PRPC_MESSAGE _pRpcMessage,
  4612. DWORD *_pdwStubPhase);
  4613. HRESULT STDMETHODCALLTYPE ITfRange_IsEqualEnd_Proxy(
  4614. ITfRange * This,
  4615. /* [in] */ TfEditCookie ec,
  4616. /* [in] */ ITfRange *pWith,
  4617. /* [in] */ TfAnchor aPos,
  4618. /* [out] */ BOOL *pfEqual);
  4619. void __RPC_STUB ITfRange_IsEqualEnd_Stub(
  4620. IRpcStubBuffer *This,
  4621. IRpcChannelBuffer *_pRpcChannelBuffer,
  4622. PRPC_MESSAGE _pRpcMessage,
  4623. DWORD *_pdwStubPhase);
  4624. HRESULT STDMETHODCALLTYPE ITfRange_CompareStart_Proxy(
  4625. ITfRange * This,
  4626. /* [in] */ TfEditCookie ec,
  4627. /* [in] */ ITfRange *pWith,
  4628. /* [in] */ TfAnchor aPos,
  4629. /* [out] */ LONG *plResult);
  4630. void __RPC_STUB ITfRange_CompareStart_Stub(
  4631. IRpcStubBuffer *This,
  4632. IRpcChannelBuffer *_pRpcChannelBuffer,
  4633. PRPC_MESSAGE _pRpcMessage,
  4634. DWORD *_pdwStubPhase);
  4635. HRESULT STDMETHODCALLTYPE ITfRange_CompareEnd_Proxy(
  4636. ITfRange * This,
  4637. /* [in] */ TfEditCookie ec,
  4638. /* [in] */ ITfRange *pWith,
  4639. /* [in] */ TfAnchor aPos,
  4640. /* [out] */ LONG *plResult);
  4641. void __RPC_STUB ITfRange_CompareEnd_Stub(
  4642. IRpcStubBuffer *This,
  4643. IRpcChannelBuffer *_pRpcChannelBuffer,
  4644. PRPC_MESSAGE _pRpcMessage,
  4645. DWORD *_pdwStubPhase);
  4646. HRESULT STDMETHODCALLTYPE ITfRange_AdjustForInsert_Proxy(
  4647. ITfRange * This,
  4648. /* [in] */ TfEditCookie ec,
  4649. /* [in] */ ULONG cchInsert,
  4650. /* [out] */ BOOL *pfInsertOk);
  4651. void __RPC_STUB ITfRange_AdjustForInsert_Stub(
  4652. IRpcStubBuffer *This,
  4653. IRpcChannelBuffer *_pRpcChannelBuffer,
  4654. PRPC_MESSAGE _pRpcMessage,
  4655. DWORD *_pdwStubPhase);
  4656. HRESULT STDMETHODCALLTYPE ITfRange_GetGravity_Proxy(
  4657. ITfRange * This,
  4658. /* [out] */ TfGravity *pgStart,
  4659. /* [out] */ TfGravity *pgEnd);
  4660. void __RPC_STUB ITfRange_GetGravity_Stub(
  4661. IRpcStubBuffer *This,
  4662. IRpcChannelBuffer *_pRpcChannelBuffer,
  4663. PRPC_MESSAGE _pRpcMessage,
  4664. DWORD *_pdwStubPhase);
  4665. HRESULT STDMETHODCALLTYPE ITfRange_SetGravity_Proxy(
  4666. ITfRange * This,
  4667. /* [in] */ TfEditCookie ec,
  4668. /* [in] */ TfGravity gStart,
  4669. /* [in] */ TfGravity gEnd);
  4670. void __RPC_STUB ITfRange_SetGravity_Stub(
  4671. IRpcStubBuffer *This,
  4672. IRpcChannelBuffer *_pRpcChannelBuffer,
  4673. PRPC_MESSAGE _pRpcMessage,
  4674. DWORD *_pdwStubPhase);
  4675. HRESULT STDMETHODCALLTYPE ITfRange_Clone_Proxy(
  4676. ITfRange * This,
  4677. /* [out] */ ITfRange **ppClone);
  4678. void __RPC_STUB ITfRange_Clone_Stub(
  4679. IRpcStubBuffer *This,
  4680. IRpcChannelBuffer *_pRpcChannelBuffer,
  4681. PRPC_MESSAGE _pRpcMessage,
  4682. DWORD *_pdwStubPhase);
  4683. HRESULT STDMETHODCALLTYPE ITfRange_GetContext_Proxy(
  4684. ITfRange * This,
  4685. /* [out] */ ITfContext **ppContext);
  4686. void __RPC_STUB ITfRange_GetContext_Stub(
  4687. IRpcStubBuffer *This,
  4688. IRpcChannelBuffer *_pRpcChannelBuffer,
  4689. PRPC_MESSAGE _pRpcMessage,
  4690. DWORD *_pdwStubPhase);
  4691. #endif /* __ITfRange_INTERFACE_DEFINED__ */
  4692. #ifndef __ITfRangeACP_INTERFACE_DEFINED__
  4693. #define __ITfRangeACP_INTERFACE_DEFINED__
  4694. /* interface ITfRangeACP */
  4695. /* [unique][uuid][object] */
  4696. EXTERN_C const IID IID_ITfRangeACP;
  4697. #if defined(__cplusplus) && !defined(CINTERFACE)
  4698. MIDL_INTERFACE("057a6296-029b-4154-b79a-0d461d4ea94c")
  4699. ITfRangeACP : public ITfRange
  4700. {
  4701. public:
  4702. virtual HRESULT STDMETHODCALLTYPE GetExtent(
  4703. /* [out] */ LONG *pacpAnchor,
  4704. /* [out] */ LONG *pcch) = 0;
  4705. virtual HRESULT STDMETHODCALLTYPE SetExtent(
  4706. /* [in] */ LONG acpAnchor,
  4707. /* [in] */ LONG cch) = 0;
  4708. };
  4709. #else /* C style interface */
  4710. typedef struct ITfRangeACPVtbl
  4711. {
  4712. BEGIN_INTERFACE
  4713. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4714. ITfRangeACP * This,
  4715. /* [in] */ REFIID riid,
  4716. /* [iid_is][out] */ void **ppvObject);
  4717. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4718. ITfRangeACP * This);
  4719. ULONG ( STDMETHODCALLTYPE *Release )(
  4720. ITfRangeACP * This);
  4721. HRESULT ( STDMETHODCALLTYPE *GetText )(
  4722. ITfRangeACP * This,
  4723. /* [in] */ TfEditCookie ec,
  4724. /* [in] */ DWORD dwFlags,
  4725. /* [length_is][size_is][out] */ WCHAR *pchText,
  4726. /* [in] */ ULONG cchMax,
  4727. /* [out] */ ULONG *pcch);
  4728. HRESULT ( STDMETHODCALLTYPE *SetText )(
  4729. ITfRangeACP * This,
  4730. /* [in] */ TfEditCookie ec,
  4731. /* [in] */ DWORD dwFlags,
  4732. /* [unique][size_is][in] */ const WCHAR *pchText,
  4733. /* [in] */ LONG cch);
  4734. HRESULT ( STDMETHODCALLTYPE *GetFormattedText )(
  4735. ITfRangeACP * This,
  4736. /* [in] */ TfEditCookie ec,
  4737. /* [out] */ IDataObject **ppDataObject);
  4738. HRESULT ( STDMETHODCALLTYPE *GetEmbedded )(
  4739. ITfRangeACP * This,
  4740. /* [in] */ TfEditCookie ec,
  4741. /* [in] */ REFGUID rguidService,
  4742. /* [in] */ REFIID riid,
  4743. /* [iid_is][out] */ IUnknown **ppunk);
  4744. HRESULT ( STDMETHODCALLTYPE *InsertEmbedded )(
  4745. ITfRangeACP * This,
  4746. /* [in] */ TfEditCookie ec,
  4747. /* [in] */ DWORD dwFlags,
  4748. /* [in] */ IDataObject *pDataObject);
  4749. HRESULT ( STDMETHODCALLTYPE *ShiftStart )(
  4750. ITfRangeACP * This,
  4751. /* [in] */ TfEditCookie ec,
  4752. /* [in] */ LONG cchReq,
  4753. /* [out] */ LONG *pcch,
  4754. /* [unique][in] */ const TF_HALTCOND *pHalt);
  4755. HRESULT ( STDMETHODCALLTYPE *ShiftEnd )(
  4756. ITfRangeACP * This,
  4757. /* [in] */ TfEditCookie ec,
  4758. /* [in] */ LONG cchReq,
  4759. /* [out] */ LONG *pcch,
  4760. /* [unique][in] */ const TF_HALTCOND *pHalt);
  4761. HRESULT ( STDMETHODCALLTYPE *ShiftStartToRange )(
  4762. ITfRangeACP * This,
  4763. /* [in] */ TfEditCookie ec,
  4764. /* [in] */ ITfRange *pRange,
  4765. /* [in] */ TfAnchor aPos);
  4766. HRESULT ( STDMETHODCALLTYPE *ShiftEndToRange )(
  4767. ITfRangeACP * This,
  4768. /* [in] */ TfEditCookie ec,
  4769. /* [in] */ ITfRange *pRange,
  4770. /* [in] */ TfAnchor aPos);
  4771. HRESULT ( STDMETHODCALLTYPE *ShiftStartRegion )(
  4772. ITfRangeACP * This,
  4773. /* [in] */ TfEditCookie ec,
  4774. /* [in] */ TfShiftDir dir,
  4775. /* [out] */ BOOL *pfNoRegion);
  4776. HRESULT ( STDMETHODCALLTYPE *ShiftEndRegion )(
  4777. ITfRangeACP * This,
  4778. /* [in] */ TfEditCookie ec,
  4779. /* [in] */ TfShiftDir dir,
  4780. /* [out] */ BOOL *pfNoRegion);
  4781. HRESULT ( STDMETHODCALLTYPE *IsEmpty )(
  4782. ITfRangeACP * This,
  4783. /* [in] */ TfEditCookie ec,
  4784. /* [out] */ BOOL *pfEmpty);
  4785. HRESULT ( STDMETHODCALLTYPE *Collapse )(
  4786. ITfRangeACP * This,
  4787. /* [in] */ TfEditCookie ec,
  4788. /* [in] */ TfAnchor aPos);
  4789. HRESULT ( STDMETHODCALLTYPE *IsEqualStart )(
  4790. ITfRangeACP * This,
  4791. /* [in] */ TfEditCookie ec,
  4792. /* [in] */ ITfRange *pWith,
  4793. /* [in] */ TfAnchor aPos,
  4794. /* [out] */ BOOL *pfEqual);
  4795. HRESULT ( STDMETHODCALLTYPE *IsEqualEnd )(
  4796. ITfRangeACP * This,
  4797. /* [in] */ TfEditCookie ec,
  4798. /* [in] */ ITfRange *pWith,
  4799. /* [in] */ TfAnchor aPos,
  4800. /* [out] */ BOOL *pfEqual);
  4801. HRESULT ( STDMETHODCALLTYPE *CompareStart )(
  4802. ITfRangeACP * This,
  4803. /* [in] */ TfEditCookie ec,
  4804. /* [in] */ ITfRange *pWith,
  4805. /* [in] */ TfAnchor aPos,
  4806. /* [out] */ LONG *plResult);
  4807. HRESULT ( STDMETHODCALLTYPE *CompareEnd )(
  4808. ITfRangeACP * This,
  4809. /* [in] */ TfEditCookie ec,
  4810. /* [in] */ ITfRange *pWith,
  4811. /* [in] */ TfAnchor aPos,
  4812. /* [out] */ LONG *plResult);
  4813. HRESULT ( STDMETHODCALLTYPE *AdjustForInsert )(
  4814. ITfRangeACP * This,
  4815. /* [in] */ TfEditCookie ec,
  4816. /* [in] */ ULONG cchInsert,
  4817. /* [out] */ BOOL *pfInsertOk);
  4818. HRESULT ( STDMETHODCALLTYPE *GetGravity )(
  4819. ITfRangeACP * This,
  4820. /* [out] */ TfGravity *pgStart,
  4821. /* [out] */ TfGravity *pgEnd);
  4822. HRESULT ( STDMETHODCALLTYPE *SetGravity )(
  4823. ITfRangeACP * This,
  4824. /* [in] */ TfEditCookie ec,
  4825. /* [in] */ TfGravity gStart,
  4826. /* [in] */ TfGravity gEnd);
  4827. HRESULT ( STDMETHODCALLTYPE *Clone )(
  4828. ITfRangeACP * This,
  4829. /* [out] */ ITfRange **ppClone);
  4830. HRESULT ( STDMETHODCALLTYPE *GetContext )(
  4831. ITfRangeACP * This,
  4832. /* [out] */ ITfContext **ppContext);
  4833. HRESULT ( STDMETHODCALLTYPE *GetExtent )(
  4834. ITfRangeACP * This,
  4835. /* [out] */ LONG *pacpAnchor,
  4836. /* [out] */ LONG *pcch);
  4837. HRESULT ( STDMETHODCALLTYPE *SetExtent )(
  4838. ITfRangeACP * This,
  4839. /* [in] */ LONG acpAnchor,
  4840. /* [in] */ LONG cch);
  4841. END_INTERFACE
  4842. } ITfRangeACPVtbl;
  4843. interface ITfRangeACP
  4844. {
  4845. CONST_VTBL struct ITfRangeACPVtbl *lpVtbl;
  4846. };
  4847. #ifdef COBJMACROS
  4848. #define ITfRangeACP_QueryInterface(This,riid,ppvObject) \
  4849. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  4850. #define ITfRangeACP_AddRef(This) \
  4851. (This)->lpVtbl -> AddRef(This)
  4852. #define ITfRangeACP_Release(This) \
  4853. (This)->lpVtbl -> Release(This)
  4854. #define ITfRangeACP_GetText(This,ec,dwFlags,pchText,cchMax,pcch) \
  4855. (This)->lpVtbl -> GetText(This,ec,dwFlags,pchText,cchMax,pcch)
  4856. #define ITfRangeACP_SetText(This,ec,dwFlags,pchText,cch) \
  4857. (This)->lpVtbl -> SetText(This,ec,dwFlags,pchText,cch)
  4858. #define ITfRangeACP_GetFormattedText(This,ec,ppDataObject) \
  4859. (This)->lpVtbl -> GetFormattedText(This,ec,ppDataObject)
  4860. #define ITfRangeACP_GetEmbedded(This,ec,rguidService,riid,ppunk) \
  4861. (This)->lpVtbl -> GetEmbedded(This,ec,rguidService,riid,ppunk)
  4862. #define ITfRangeACP_InsertEmbedded(This,ec,dwFlags,pDataObject) \
  4863. (This)->lpVtbl -> InsertEmbedded(This,ec,dwFlags,pDataObject)
  4864. #define ITfRangeACP_ShiftStart(This,ec,cchReq,pcch,pHalt) \
  4865. (This)->lpVtbl -> ShiftStart(This,ec,cchReq,pcch,pHalt)
  4866. #define ITfRangeACP_ShiftEnd(This,ec,cchReq,pcch,pHalt) \
  4867. (This)->lpVtbl -> ShiftEnd(This,ec,cchReq,pcch,pHalt)
  4868. #define ITfRangeACP_ShiftStartToRange(This,ec,pRange,aPos) \
  4869. (This)->lpVtbl -> ShiftStartToRange(This,ec,pRange,aPos)
  4870. #define ITfRangeACP_ShiftEndToRange(This,ec,pRange,aPos) \
  4871. (This)->lpVtbl -> ShiftEndToRange(This,ec,pRange,aPos)
  4872. #define ITfRangeACP_ShiftStartRegion(This,ec,dir,pfNoRegion) \
  4873. (This)->lpVtbl -> ShiftStartRegion(This,ec,dir,pfNoRegion)
  4874. #define ITfRangeACP_ShiftEndRegion(This,ec,dir,pfNoRegion) \
  4875. (This)->lpVtbl -> ShiftEndRegion(This,ec,dir,pfNoRegion)
  4876. #define ITfRangeACP_IsEmpty(This,ec,pfEmpty) \
  4877. (This)->lpVtbl -> IsEmpty(This,ec,pfEmpty)
  4878. #define ITfRangeACP_Collapse(This,ec,aPos) \
  4879. (This)->lpVtbl -> Collapse(This,ec,aPos)
  4880. #define ITfRangeACP_IsEqualStart(This,ec,pWith,aPos,pfEqual) \
  4881. (This)->lpVtbl -> IsEqualStart(This,ec,pWith,aPos,pfEqual)
  4882. #define ITfRangeACP_IsEqualEnd(This,ec,pWith,aPos,pfEqual) \
  4883. (This)->lpVtbl -> IsEqualEnd(This,ec,pWith,aPos,pfEqual)
  4884. #define ITfRangeACP_CompareStart(This,ec,pWith,aPos,plResult) \
  4885. (This)->lpVtbl -> CompareStart(This,ec,pWith,aPos,plResult)
  4886. #define ITfRangeACP_CompareEnd(This,ec,pWith,aPos,plResult) \
  4887. (This)->lpVtbl -> CompareEnd(This,ec,pWith,aPos,plResult)
  4888. #define ITfRangeACP_AdjustForInsert(This,ec,cchInsert,pfInsertOk) \
  4889. (This)->lpVtbl -> AdjustForInsert(This,ec,cchInsert,pfInsertOk)
  4890. #define ITfRangeACP_GetGravity(This,pgStart,pgEnd) \
  4891. (This)->lpVtbl -> GetGravity(This,pgStart,pgEnd)
  4892. #define ITfRangeACP_SetGravity(This,ec,gStart,gEnd) \
  4893. (This)->lpVtbl -> SetGravity(This,ec,gStart,gEnd)
  4894. #define ITfRangeACP_Clone(This,ppClone) \
  4895. (This)->lpVtbl -> Clone(This,ppClone)
  4896. #define ITfRangeACP_GetContext(This,ppContext) \
  4897. (This)->lpVtbl -> GetContext(This,ppContext)
  4898. #define ITfRangeACP_GetExtent(This,pacpAnchor,pcch) \
  4899. (This)->lpVtbl -> GetExtent(This,pacpAnchor,pcch)
  4900. #define ITfRangeACP_SetExtent(This,acpAnchor,cch) \
  4901. (This)->lpVtbl -> SetExtent(This,acpAnchor,cch)
  4902. #endif /* COBJMACROS */
  4903. #endif /* C style interface */
  4904. HRESULT STDMETHODCALLTYPE ITfRangeACP_GetExtent_Proxy(
  4905. ITfRangeACP * This,
  4906. /* [out] */ LONG *pacpAnchor,
  4907. /* [out] */ LONG *pcch);
  4908. void __RPC_STUB ITfRangeACP_GetExtent_Stub(
  4909. IRpcStubBuffer *This,
  4910. IRpcChannelBuffer *_pRpcChannelBuffer,
  4911. PRPC_MESSAGE _pRpcMessage,
  4912. DWORD *_pdwStubPhase);
  4913. HRESULT STDMETHODCALLTYPE ITfRangeACP_SetExtent_Proxy(
  4914. ITfRangeACP * This,
  4915. /* [in] */ LONG acpAnchor,
  4916. /* [in] */ LONG cch);
  4917. void __RPC_STUB ITfRangeACP_SetExtent_Stub(
  4918. IRpcStubBuffer *This,
  4919. IRpcChannelBuffer *_pRpcChannelBuffer,
  4920. PRPC_MESSAGE _pRpcMessage,
  4921. DWORD *_pdwStubPhase);
  4922. #endif /* __ITfRangeACP_INTERFACE_DEFINED__ */
  4923. #ifndef __ITfRangeAnchor_INTERFACE_DEFINED__
  4924. #define __ITfRangeAnchor_INTERFACE_DEFINED__
  4925. /* interface ITfRangeAnchor */
  4926. /* [unique][uuid][object] */
  4927. EXTERN_C const IID IID_ITfRangeAnchor;
  4928. #if defined(__cplusplus) && !defined(CINTERFACE)
  4929. MIDL_INTERFACE("8b99712b-5815-4bcc-b9a9-53db1c8d6755")
  4930. ITfRangeAnchor : public ITfRange
  4931. {
  4932. public:
  4933. virtual HRESULT STDMETHODCALLTYPE GetExtent(
  4934. /* [out] */ IAnchor **ppaStart,
  4935. /* [out] */ IAnchor **ppaEnd) = 0;
  4936. virtual HRESULT STDMETHODCALLTYPE SetExtent(
  4937. /* [in] */ IAnchor *paStart,
  4938. /* [in] */ IAnchor *paEnd) = 0;
  4939. };
  4940. #else /* C style interface */
  4941. typedef struct ITfRangeAnchorVtbl
  4942. {
  4943. BEGIN_INTERFACE
  4944. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4945. ITfRangeAnchor * This,
  4946. /* [in] */ REFIID riid,
  4947. /* [iid_is][out] */ void **ppvObject);
  4948. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4949. ITfRangeAnchor * This);
  4950. ULONG ( STDMETHODCALLTYPE *Release )(
  4951. ITfRangeAnchor * This);
  4952. HRESULT ( STDMETHODCALLTYPE *GetText )(
  4953. ITfRangeAnchor * This,
  4954. /* [in] */ TfEditCookie ec,
  4955. /* [in] */ DWORD dwFlags,
  4956. /* [length_is][size_is][out] */ WCHAR *pchText,
  4957. /* [in] */ ULONG cchMax,
  4958. /* [out] */ ULONG *pcch);
  4959. HRESULT ( STDMETHODCALLTYPE *SetText )(
  4960. ITfRangeAnchor * This,
  4961. /* [in] */ TfEditCookie ec,
  4962. /* [in] */ DWORD dwFlags,
  4963. /* [unique][size_is][in] */ const WCHAR *pchText,
  4964. /* [in] */ LONG cch);
  4965. HRESULT ( STDMETHODCALLTYPE *GetFormattedText )(
  4966. ITfRangeAnchor * This,
  4967. /* [in] */ TfEditCookie ec,
  4968. /* [out] */ IDataObject **ppDataObject);
  4969. HRESULT ( STDMETHODCALLTYPE *GetEmbedded )(
  4970. ITfRangeAnchor * This,
  4971. /* [in] */ TfEditCookie ec,
  4972. /* [in] */ REFGUID rguidService,
  4973. /* [in] */ REFIID riid,
  4974. /* [iid_is][out] */ IUnknown **ppunk);
  4975. HRESULT ( STDMETHODCALLTYPE *InsertEmbedded )(
  4976. ITfRangeAnchor * This,
  4977. /* [in] */ TfEditCookie ec,
  4978. /* [in] */ DWORD dwFlags,
  4979. /* [in] */ IDataObject *pDataObject);
  4980. HRESULT ( STDMETHODCALLTYPE *ShiftStart )(
  4981. ITfRangeAnchor * This,
  4982. /* [in] */ TfEditCookie ec,
  4983. /* [in] */ LONG cchReq,
  4984. /* [out] */ LONG *pcch,
  4985. /* [unique][in] */ const TF_HALTCOND *pHalt);
  4986. HRESULT ( STDMETHODCALLTYPE *ShiftEnd )(
  4987. ITfRangeAnchor * This,
  4988. /* [in] */ TfEditCookie ec,
  4989. /* [in] */ LONG cchReq,
  4990. /* [out] */ LONG *pcch,
  4991. /* [unique][in] */ const TF_HALTCOND *pHalt);
  4992. HRESULT ( STDMETHODCALLTYPE *ShiftStartToRange )(
  4993. ITfRangeAnchor * This,
  4994. /* [in] */ TfEditCookie ec,
  4995. /* [in] */ ITfRange *pRange,
  4996. /* [in] */ TfAnchor aPos);
  4997. HRESULT ( STDMETHODCALLTYPE *ShiftEndToRange )(
  4998. ITfRangeAnchor * This,
  4999. /* [in] */ TfEditCookie ec,
  5000. /* [in] */ ITfRange *pRange,
  5001. /* [in] */ TfAnchor aPos);
  5002. HRESULT ( STDMETHODCALLTYPE *ShiftStartRegion )(
  5003. ITfRangeAnchor * This,
  5004. /* [in] */ TfEditCookie ec,
  5005. /* [in] */ TfShiftDir dir,
  5006. /* [out] */ BOOL *pfNoRegion);
  5007. HRESULT ( STDMETHODCALLTYPE *ShiftEndRegion )(
  5008. ITfRangeAnchor * This,
  5009. /* [in] */ TfEditCookie ec,
  5010. /* [in] */ TfShiftDir dir,
  5011. /* [out] */ BOOL *pfNoRegion);
  5012. HRESULT ( STDMETHODCALLTYPE *IsEmpty )(
  5013. ITfRangeAnchor * This,
  5014. /* [in] */ TfEditCookie ec,
  5015. /* [out] */ BOOL *pfEmpty);
  5016. HRESULT ( STDMETHODCALLTYPE *Collapse )(
  5017. ITfRangeAnchor * This,
  5018. /* [in] */ TfEditCookie ec,
  5019. /* [in] */ TfAnchor aPos);
  5020. HRESULT ( STDMETHODCALLTYPE *IsEqualStart )(
  5021. ITfRangeAnchor * This,
  5022. /* [in] */ TfEditCookie ec,
  5023. /* [in] */ ITfRange *pWith,
  5024. /* [in] */ TfAnchor aPos,
  5025. /* [out] */ BOOL *pfEqual);
  5026. HRESULT ( STDMETHODCALLTYPE *IsEqualEnd )(
  5027. ITfRangeAnchor * This,
  5028. /* [in] */ TfEditCookie ec,
  5029. /* [in] */ ITfRange *pWith,
  5030. /* [in] */ TfAnchor aPos,
  5031. /* [out] */ BOOL *pfEqual);
  5032. HRESULT ( STDMETHODCALLTYPE *CompareStart )(
  5033. ITfRangeAnchor * This,
  5034. /* [in] */ TfEditCookie ec,
  5035. /* [in] */ ITfRange *pWith,
  5036. /* [in] */ TfAnchor aPos,
  5037. /* [out] */ LONG *plResult);
  5038. HRESULT ( STDMETHODCALLTYPE *CompareEnd )(
  5039. ITfRangeAnchor * This,
  5040. /* [in] */ TfEditCookie ec,
  5041. /* [in] */ ITfRange *pWith,
  5042. /* [in] */ TfAnchor aPos,
  5043. /* [out] */ LONG *plResult);
  5044. HRESULT ( STDMETHODCALLTYPE *AdjustForInsert )(
  5045. ITfRangeAnchor * This,
  5046. /* [in] */ TfEditCookie ec,
  5047. /* [in] */ ULONG cchInsert,
  5048. /* [out] */ BOOL *pfInsertOk);
  5049. HRESULT ( STDMETHODCALLTYPE *GetGravity )(
  5050. ITfRangeAnchor * This,
  5051. /* [out] */ TfGravity *pgStart,
  5052. /* [out] */ TfGravity *pgEnd);
  5053. HRESULT ( STDMETHODCALLTYPE *SetGravity )(
  5054. ITfRangeAnchor * This,
  5055. /* [in] */ TfEditCookie ec,
  5056. /* [in] */ TfGravity gStart,
  5057. /* [in] */ TfGravity gEnd);
  5058. HRESULT ( STDMETHODCALLTYPE *Clone )(
  5059. ITfRangeAnchor * This,
  5060. /* [out] */ ITfRange **ppClone);
  5061. HRESULT ( STDMETHODCALLTYPE *GetContext )(
  5062. ITfRangeAnchor * This,
  5063. /* [out] */ ITfContext **ppContext);
  5064. HRESULT ( STDMETHODCALLTYPE *GetExtent )(
  5065. ITfRangeAnchor * This,
  5066. /* [out] */ IAnchor **ppaStart,
  5067. /* [out] */ IAnchor **ppaEnd);
  5068. HRESULT ( STDMETHODCALLTYPE *SetExtent )(
  5069. ITfRangeAnchor * This,
  5070. /* [in] */ IAnchor *paStart,
  5071. /* [in] */ IAnchor *paEnd);
  5072. END_INTERFACE
  5073. } ITfRangeAnchorVtbl;
  5074. interface ITfRangeAnchor
  5075. {
  5076. CONST_VTBL struct ITfRangeAnchorVtbl *lpVtbl;
  5077. };
  5078. #ifdef COBJMACROS
  5079. #define ITfRangeAnchor_QueryInterface(This,riid,ppvObject) \
  5080. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  5081. #define ITfRangeAnchor_AddRef(This) \
  5082. (This)->lpVtbl -> AddRef(This)
  5083. #define ITfRangeAnchor_Release(This) \
  5084. (This)->lpVtbl -> Release(This)
  5085. #define ITfRangeAnchor_GetText(This,ec,dwFlags,pchText,cchMax,pcch) \
  5086. (This)->lpVtbl -> GetText(This,ec,dwFlags,pchText,cchMax,pcch)
  5087. #define ITfRangeAnchor_SetText(This,ec,dwFlags,pchText,cch) \
  5088. (This)->lpVtbl -> SetText(This,ec,dwFlags,pchText,cch)
  5089. #define ITfRangeAnchor_GetFormattedText(This,ec,ppDataObject) \
  5090. (This)->lpVtbl -> GetFormattedText(This,ec,ppDataObject)
  5091. #define ITfRangeAnchor_GetEmbedded(This,ec,rguidService,riid,ppunk) \
  5092. (This)->lpVtbl -> GetEmbedded(This,ec,rguidService,riid,ppunk)
  5093. #define ITfRangeAnchor_InsertEmbedded(This,ec,dwFlags,pDataObject) \
  5094. (This)->lpVtbl -> InsertEmbedded(This,ec,dwFlags,pDataObject)
  5095. #define ITfRangeAnchor_ShiftStart(This,ec,cchReq,pcch,pHalt) \
  5096. (This)->lpVtbl -> ShiftStart(This,ec,cchReq,pcch,pHalt)
  5097. #define ITfRangeAnchor_ShiftEnd(This,ec,cchReq,pcch,pHalt) \
  5098. (This)->lpVtbl -> ShiftEnd(This,ec,cchReq,pcch,pHalt)
  5099. #define ITfRangeAnchor_ShiftStartToRange(This,ec,pRange,aPos) \
  5100. (This)->lpVtbl -> ShiftStartToRange(This,ec,pRange,aPos)
  5101. #define ITfRangeAnchor_ShiftEndToRange(This,ec,pRange,aPos) \
  5102. (This)->lpVtbl -> ShiftEndToRange(This,ec,pRange,aPos)
  5103. #define ITfRangeAnchor_ShiftStartRegion(This,ec,dir,pfNoRegion) \
  5104. (This)->lpVtbl -> ShiftStartRegion(This,ec,dir,pfNoRegion)
  5105. #define ITfRangeAnchor_ShiftEndRegion(This,ec,dir,pfNoRegion) \
  5106. (This)->lpVtbl -> ShiftEndRegion(This,ec,dir,pfNoRegion)
  5107. #define ITfRangeAnchor_IsEmpty(This,ec,pfEmpty) \
  5108. (This)->lpVtbl -> IsEmpty(This,ec,pfEmpty)
  5109. #define ITfRangeAnchor_Collapse(This,ec,aPos) \
  5110. (This)->lpVtbl -> Collapse(This,ec,aPos)
  5111. #define ITfRangeAnchor_IsEqualStart(This,ec,pWith,aPos,pfEqual) \
  5112. (This)->lpVtbl -> IsEqualStart(This,ec,pWith,aPos,pfEqual)
  5113. #define ITfRangeAnchor_IsEqualEnd(This,ec,pWith,aPos,pfEqual) \
  5114. (This)->lpVtbl -> IsEqualEnd(This,ec,pWith,aPos,pfEqual)
  5115. #define ITfRangeAnchor_CompareStart(This,ec,pWith,aPos,plResult) \
  5116. (This)->lpVtbl -> CompareStart(This,ec,pWith,aPos,plResult)
  5117. #define ITfRangeAnchor_CompareEnd(This,ec,pWith,aPos,plResult) \
  5118. (This)->lpVtbl -> CompareEnd(This,ec,pWith,aPos,plResult)
  5119. #define ITfRangeAnchor_AdjustForInsert(This,ec,cchInsert,pfInsertOk) \
  5120. (This)->lpVtbl -> AdjustForInsert(This,ec,cchInsert,pfInsertOk)
  5121. #define ITfRangeAnchor_GetGravity(This,pgStart,pgEnd) \
  5122. (This)->lpVtbl -> GetGravity(This,pgStart,pgEnd)
  5123. #define ITfRangeAnchor_SetGravity(This,ec,gStart,gEnd) \
  5124. (This)->lpVtbl -> SetGravity(This,ec,gStart,gEnd)
  5125. #define ITfRangeAnchor_Clone(This,ppClone) \
  5126. (This)->lpVtbl -> Clone(This,ppClone)
  5127. #define ITfRangeAnchor_GetContext(This,ppContext) \
  5128. (This)->lpVtbl -> GetContext(This,ppContext)
  5129. #define ITfRangeAnchor_GetExtent(This,ppaStart,ppaEnd) \
  5130. (This)->lpVtbl -> GetExtent(This,ppaStart,ppaEnd)
  5131. #define ITfRangeAnchor_SetExtent(This,paStart,paEnd) \
  5132. (This)->lpVtbl -> SetExtent(This,paStart,paEnd)
  5133. #endif /* COBJMACROS */
  5134. #endif /* C style interface */
  5135. HRESULT STDMETHODCALLTYPE ITfRangeAnchor_GetExtent_Proxy(
  5136. ITfRangeAnchor * This,
  5137. /* [out] */ IAnchor **ppaStart,
  5138. /* [out] */ IAnchor **ppaEnd);
  5139. void __RPC_STUB ITfRangeAnchor_GetExtent_Stub(
  5140. IRpcStubBuffer *This,
  5141. IRpcChannelBuffer *_pRpcChannelBuffer,
  5142. PRPC_MESSAGE _pRpcMessage,
  5143. DWORD *_pdwStubPhase);
  5144. HRESULT STDMETHODCALLTYPE ITfRangeAnchor_SetExtent_Proxy(
  5145. ITfRangeAnchor * This,
  5146. /* [in] */ IAnchor *paStart,
  5147. /* [in] */ IAnchor *paEnd);
  5148. void __RPC_STUB ITfRangeAnchor_SetExtent_Stub(
  5149. IRpcStubBuffer *This,
  5150. IRpcChannelBuffer *_pRpcChannelBuffer,
  5151. PRPC_MESSAGE _pRpcMessage,
  5152. DWORD *_pdwStubPhase);
  5153. #endif /* __ITfRangeAnchor_INTERFACE_DEFINED__ */
  5154. #ifndef __ITextStoreACPServices_INTERFACE_DEFINED__
  5155. #define __ITextStoreACPServices_INTERFACE_DEFINED__
  5156. /* interface ITextStoreACPServices */
  5157. /* [unique][uuid][object] */
  5158. EXTERN_C const IID IID_ITextStoreACPServices;
  5159. #if defined(__cplusplus) && !defined(CINTERFACE)
  5160. MIDL_INTERFACE("aa80e901-2021-11d2-93e0-0060b067b86e")
  5161. ITextStoreACPServices : public IUnknown
  5162. {
  5163. public:
  5164. virtual HRESULT STDMETHODCALLTYPE Serialize(
  5165. /* [in] */ ITfProperty *pProp,
  5166. /* [in] */ ITfRange *pRange,
  5167. /* [out] */ TF_PERSISTENT_PROPERTY_HEADER_ACP *pHdr,
  5168. /* [in] */ IStream *pStream) = 0;
  5169. virtual HRESULT STDMETHODCALLTYPE Unserialize(
  5170. /* [in] */ ITfProperty *pProp,
  5171. /* [in] */ const TF_PERSISTENT_PROPERTY_HEADER_ACP *pHdr,
  5172. /* [in] */ IStream *pStream,
  5173. /* [in] */ ITfPersistentPropertyLoaderACP *pLoader) = 0;
  5174. virtual HRESULT STDMETHODCALLTYPE ForceLoadProperty(
  5175. /* [in] */ ITfProperty *pProp) = 0;
  5176. virtual HRESULT STDMETHODCALLTYPE CreateRange(
  5177. /* [in] */ LONG acpStart,
  5178. /* [in] */ LONG acpEnd,
  5179. /* [out] */ ITfRangeACP **ppRange) = 0;
  5180. };
  5181. #else /* C style interface */
  5182. typedef struct ITextStoreACPServicesVtbl
  5183. {
  5184. BEGIN_INTERFACE
  5185. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  5186. ITextStoreACPServices * This,
  5187. /* [in] */ REFIID riid,
  5188. /* [iid_is][out] */ void **ppvObject);
  5189. ULONG ( STDMETHODCALLTYPE *AddRef )(
  5190. ITextStoreACPServices * This);
  5191. ULONG ( STDMETHODCALLTYPE *Release )(
  5192. ITextStoreACPServices * This);
  5193. HRESULT ( STDMETHODCALLTYPE *Serialize )(
  5194. ITextStoreACPServices * This,
  5195. /* [in] */ ITfProperty *pProp,
  5196. /* [in] */ ITfRange *pRange,
  5197. /* [out] */ TF_PERSISTENT_PROPERTY_HEADER_ACP *pHdr,
  5198. /* [in] */ IStream *pStream);
  5199. HRESULT ( STDMETHODCALLTYPE *Unserialize )(
  5200. ITextStoreACPServices * This,
  5201. /* [in] */ ITfProperty *pProp,
  5202. /* [in] */ const TF_PERSISTENT_PROPERTY_HEADER_ACP *pHdr,
  5203. /* [in] */ IStream *pStream,
  5204. /* [in] */ ITfPersistentPropertyLoaderACP *pLoader);
  5205. HRESULT ( STDMETHODCALLTYPE *ForceLoadProperty )(
  5206. ITextStoreACPServices * This,
  5207. /* [in] */ ITfProperty *pProp);
  5208. HRESULT ( STDMETHODCALLTYPE *CreateRange )(
  5209. ITextStoreACPServices * This,
  5210. /* [in] */ LONG acpStart,
  5211. /* [in] */ LONG acpEnd,
  5212. /* [out] */ ITfRangeACP **ppRange);
  5213. END_INTERFACE
  5214. } ITextStoreACPServicesVtbl;
  5215. interface ITextStoreACPServices
  5216. {
  5217. CONST_VTBL struct ITextStoreACPServicesVtbl *lpVtbl;
  5218. };
  5219. #ifdef COBJMACROS
  5220. #define ITextStoreACPServices_QueryInterface(This,riid,ppvObject) \
  5221. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  5222. #define ITextStoreACPServices_AddRef(This) \
  5223. (This)->lpVtbl -> AddRef(This)
  5224. #define ITextStoreACPServices_Release(This) \
  5225. (This)->lpVtbl -> Release(This)
  5226. #define ITextStoreACPServices_Serialize(This,pProp,pRange,pHdr,pStream) \
  5227. (This)->lpVtbl -> Serialize(This,pProp,pRange,pHdr,pStream)
  5228. #define ITextStoreACPServices_Unserialize(This,pProp,pHdr,pStream,pLoader) \
  5229. (This)->lpVtbl -> Unserialize(This,pProp,pHdr,pStream,pLoader)
  5230. #define ITextStoreACPServices_ForceLoadProperty(This,pProp) \
  5231. (This)->lpVtbl -> ForceLoadProperty(This,pProp)
  5232. #define ITextStoreACPServices_CreateRange(This,acpStart,acpEnd,ppRange) \
  5233. (This)->lpVtbl -> CreateRange(This,acpStart,acpEnd,ppRange)
  5234. #endif /* COBJMACROS */
  5235. #endif /* C style interface */
  5236. HRESULT STDMETHODCALLTYPE ITextStoreACPServices_Serialize_Proxy(
  5237. ITextStoreACPServices * This,
  5238. /* [in] */ ITfProperty *pProp,
  5239. /* [in] */ ITfRange *pRange,
  5240. /* [out] */ TF_PERSISTENT_PROPERTY_HEADER_ACP *pHdr,
  5241. /* [in] */ IStream *pStream);
  5242. void __RPC_STUB ITextStoreACPServices_Serialize_Stub(
  5243. IRpcStubBuffer *This,
  5244. IRpcChannelBuffer *_pRpcChannelBuffer,
  5245. PRPC_MESSAGE _pRpcMessage,
  5246. DWORD *_pdwStubPhase);
  5247. HRESULT STDMETHODCALLTYPE ITextStoreACPServices_Unserialize_Proxy(
  5248. ITextStoreACPServices * This,
  5249. /* [in] */ ITfProperty *pProp,
  5250. /* [in] */ const TF_PERSISTENT_PROPERTY_HEADER_ACP *pHdr,
  5251. /* [in] */ IStream *pStream,
  5252. /* [in] */ ITfPersistentPropertyLoaderACP *pLoader);
  5253. void __RPC_STUB ITextStoreACPServices_Unserialize_Stub(
  5254. IRpcStubBuffer *This,
  5255. IRpcChannelBuffer *_pRpcChannelBuffer,
  5256. PRPC_MESSAGE _pRpcMessage,
  5257. DWORD *_pdwStubPhase);
  5258. HRESULT STDMETHODCALLTYPE ITextStoreACPServices_ForceLoadProperty_Proxy(
  5259. ITextStoreACPServices * This,
  5260. /* [in] */ ITfProperty *pProp);
  5261. void __RPC_STUB ITextStoreACPServices_ForceLoadProperty_Stub(
  5262. IRpcStubBuffer *This,
  5263. IRpcChannelBuffer *_pRpcChannelBuffer,
  5264. PRPC_MESSAGE _pRpcMessage,
  5265. DWORD *_pdwStubPhase);
  5266. HRESULT STDMETHODCALLTYPE ITextStoreACPServices_CreateRange_Proxy(
  5267. ITextStoreACPServices * This,
  5268. /* [in] */ LONG acpStart,
  5269. /* [in] */ LONG acpEnd,
  5270. /* [out] */ ITfRangeACP **ppRange);
  5271. void __RPC_STUB ITextStoreACPServices_CreateRange_Stub(
  5272. IRpcStubBuffer *This,
  5273. IRpcChannelBuffer *_pRpcChannelBuffer,
  5274. PRPC_MESSAGE _pRpcMessage,
  5275. DWORD *_pdwStubPhase);
  5276. #endif /* __ITextStoreACPServices_INTERFACE_DEFINED__ */
  5277. #ifndef __ITextStoreAnchorServices_INTERFACE_DEFINED__
  5278. #define __ITextStoreAnchorServices_INTERFACE_DEFINED__
  5279. /* interface ITextStoreAnchorServices */
  5280. /* [unique][uuid][object] */
  5281. EXTERN_C const IID IID_ITextStoreAnchorServices;
  5282. #if defined(__cplusplus) && !defined(CINTERFACE)
  5283. MIDL_INTERFACE("aa80e9fe-2021-11d2-93e0-0060b067b86e")
  5284. ITextStoreAnchorServices : public IUnknown
  5285. {
  5286. public:
  5287. virtual HRESULT STDMETHODCALLTYPE Serialize(
  5288. /* [in] */ ITfProperty *pProp,
  5289. /* [in] */ ITfRange *pRange,
  5290. /* [out] */ TF_PERSISTENT_PROPERTY_HEADER_ANCHOR *pHdr,
  5291. /* [in] */ IStream *pStream) = 0;
  5292. virtual HRESULT STDMETHODCALLTYPE Unserialize(
  5293. /* [in] */ ITfProperty *pProp,
  5294. /* [in] */ const TF_PERSISTENT_PROPERTY_HEADER_ANCHOR *pHdr,
  5295. /* [in] */ IStream *pStream,
  5296. /* [in] */ ITfPersistentPropertyLoaderAnchor *pLoader) = 0;
  5297. virtual HRESULT STDMETHODCALLTYPE ForceLoadProperty(
  5298. /* [in] */ ITfProperty *pProp) = 0;
  5299. virtual HRESULT STDMETHODCALLTYPE CreateRange(
  5300. /* [in] */ IAnchor *paStart,
  5301. /* [in] */ IAnchor *paEnd,
  5302. /* [out] */ ITfRangeAnchor **ppRange) = 0;
  5303. };
  5304. #else /* C style interface */
  5305. typedef struct ITextStoreAnchorServicesVtbl
  5306. {
  5307. BEGIN_INTERFACE
  5308. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  5309. ITextStoreAnchorServices * This,
  5310. /* [in] */ REFIID riid,
  5311. /* [iid_is][out] */ void **ppvObject);
  5312. ULONG ( STDMETHODCALLTYPE *AddRef )(
  5313. ITextStoreAnchorServices * This);
  5314. ULONG ( STDMETHODCALLTYPE *Release )(
  5315. ITextStoreAnchorServices * This);
  5316. HRESULT ( STDMETHODCALLTYPE *Serialize )(
  5317. ITextStoreAnchorServices * This,
  5318. /* [in] */ ITfProperty *pProp,
  5319. /* [in] */ ITfRange *pRange,
  5320. /* [out] */ TF_PERSISTENT_PROPERTY_HEADER_ANCHOR *pHdr,
  5321. /* [in] */ IStream *pStream);
  5322. HRESULT ( STDMETHODCALLTYPE *Unserialize )(
  5323. ITextStoreAnchorServices * This,
  5324. /* [in] */ ITfProperty *pProp,
  5325. /* [in] */ const TF_PERSISTENT_PROPERTY_HEADER_ANCHOR *pHdr,
  5326. /* [in] */ IStream *pStream,
  5327. /* [in] */ ITfPersistentPropertyLoaderAnchor *pLoader);
  5328. HRESULT ( STDMETHODCALLTYPE *ForceLoadProperty )(
  5329. ITextStoreAnchorServices * This,
  5330. /* [in] */ ITfProperty *pProp);
  5331. HRESULT ( STDMETHODCALLTYPE *CreateRange )(
  5332. ITextStoreAnchorServices * This,
  5333. /* [in] */ IAnchor *paStart,
  5334. /* [in] */ IAnchor *paEnd,
  5335. /* [out] */ ITfRangeAnchor **ppRange);
  5336. END_INTERFACE
  5337. } ITextStoreAnchorServicesVtbl;
  5338. interface ITextStoreAnchorServices
  5339. {
  5340. CONST_VTBL struct ITextStoreAnchorServicesVtbl *lpVtbl;
  5341. };
  5342. #ifdef COBJMACROS
  5343. #define ITextStoreAnchorServices_QueryInterface(This,riid,ppvObject) \
  5344. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  5345. #define ITextStoreAnchorServices_AddRef(This) \
  5346. (This)->lpVtbl -> AddRef(This)
  5347. #define ITextStoreAnchorServices_Release(This) \
  5348. (This)->lpVtbl -> Release(This)
  5349. #define ITextStoreAnchorServices_Serialize(This,pProp,pRange,pHdr,pStream) \
  5350. (This)->lpVtbl -> Serialize(This,pProp,pRange,pHdr,pStream)
  5351. #define ITextStoreAnchorServices_Unserialize(This,pProp,pHdr,pStream,pLoader) \
  5352. (This)->lpVtbl -> Unserialize(This,pProp,pHdr,pStream,pLoader)
  5353. #define ITextStoreAnchorServices_ForceLoadProperty(This,pProp) \
  5354. (This)->lpVtbl -> ForceLoadProperty(This,pProp)
  5355. #define ITextStoreAnchorServices_CreateRange(This,paStart,paEnd,ppRange) \
  5356. (This)->lpVtbl -> CreateRange(This,paStart,paEnd,ppRange)
  5357. #endif /* COBJMACROS */
  5358. #endif /* C style interface */
  5359. HRESULT STDMETHODCALLTYPE ITextStoreAnchorServices_Serialize_Proxy(
  5360. ITextStoreAnchorServices * This,
  5361. /* [in] */ ITfProperty *pProp,
  5362. /* [in] */ ITfRange *pRange,
  5363. /* [out] */ TF_PERSISTENT_PROPERTY_HEADER_ANCHOR *pHdr,
  5364. /* [in] */ IStream *pStream);
  5365. void __RPC_STUB ITextStoreAnchorServices_Serialize_Stub(
  5366. IRpcStubBuffer *This,
  5367. IRpcChannelBuffer *_pRpcChannelBuffer,
  5368. PRPC_MESSAGE _pRpcMessage,
  5369. DWORD *_pdwStubPhase);
  5370. HRESULT STDMETHODCALLTYPE ITextStoreAnchorServices_Unserialize_Proxy(
  5371. ITextStoreAnchorServices * This,
  5372. /* [in] */ ITfProperty *pProp,
  5373. /* [in] */ const TF_PERSISTENT_PROPERTY_HEADER_ANCHOR *pHdr,
  5374. /* [in] */ IStream *pStream,
  5375. /* [in] */ ITfPersistentPropertyLoaderAnchor *pLoader);
  5376. void __RPC_STUB ITextStoreAnchorServices_Unserialize_Stub(
  5377. IRpcStubBuffer *This,
  5378. IRpcChannelBuffer *_pRpcChannelBuffer,
  5379. PRPC_MESSAGE _pRpcMessage,
  5380. DWORD *_pdwStubPhase);
  5381. HRESULT STDMETHODCALLTYPE ITextStoreAnchorServices_ForceLoadProperty_Proxy(
  5382. ITextStoreAnchorServices * This,
  5383. /* [in] */ ITfProperty *pProp);
  5384. void __RPC_STUB ITextStoreAnchorServices_ForceLoadProperty_Stub(
  5385. IRpcStubBuffer *This,
  5386. IRpcChannelBuffer *_pRpcChannelBuffer,
  5387. PRPC_MESSAGE _pRpcMessage,
  5388. DWORD *_pdwStubPhase);
  5389. HRESULT STDMETHODCALLTYPE ITextStoreAnchorServices_CreateRange_Proxy(
  5390. ITextStoreAnchorServices * This,
  5391. /* [in] */ IAnchor *paStart,
  5392. /* [in] */ IAnchor *paEnd,
  5393. /* [out] */ ITfRangeAnchor **ppRange);
  5394. void __RPC_STUB ITextStoreAnchorServices_CreateRange_Stub(
  5395. IRpcStubBuffer *This,
  5396. IRpcChannelBuffer *_pRpcChannelBuffer,
  5397. PRPC_MESSAGE _pRpcMessage,
  5398. DWORD *_pdwStubPhase);
  5399. #endif /* __ITextStoreAnchorServices_INTERFACE_DEFINED__ */
  5400. #ifndef __ITfRangeBackup_INTERFACE_DEFINED__
  5401. #define __ITfRangeBackup_INTERFACE_DEFINED__
  5402. /* interface ITfRangeBackup */
  5403. /* [unique][uuid][object] */
  5404. EXTERN_C const IID IID_ITfRangeBackup;
  5405. #if defined(__cplusplus) && !defined(CINTERFACE)
  5406. MIDL_INTERFACE("463a506d-6992-49d2-9b88-93d55e70bb16")
  5407. ITfRangeBackup : public IUnknown
  5408. {
  5409. public:
  5410. virtual HRESULT STDMETHODCALLTYPE Restore(
  5411. /* [in] */ TfEditCookie ec,
  5412. /* [in] */ ITfRange *pRange) = 0;
  5413. };
  5414. #else /* C style interface */
  5415. typedef struct ITfRangeBackupVtbl
  5416. {
  5417. BEGIN_INTERFACE
  5418. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  5419. ITfRangeBackup * This,
  5420. /* [in] */ REFIID riid,
  5421. /* [iid_is][out] */ void **ppvObject);
  5422. ULONG ( STDMETHODCALLTYPE *AddRef )(
  5423. ITfRangeBackup * This);
  5424. ULONG ( STDMETHODCALLTYPE *Release )(
  5425. ITfRangeBackup * This);
  5426. HRESULT ( STDMETHODCALLTYPE *Restore )(
  5427. ITfRangeBackup * This,
  5428. /* [in] */ TfEditCookie ec,
  5429. /* [in] */ ITfRange *pRange);
  5430. END_INTERFACE
  5431. } ITfRangeBackupVtbl;
  5432. interface ITfRangeBackup
  5433. {
  5434. CONST_VTBL struct ITfRangeBackupVtbl *lpVtbl;
  5435. };
  5436. #ifdef COBJMACROS
  5437. #define ITfRangeBackup_QueryInterface(This,riid,ppvObject) \
  5438. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  5439. #define ITfRangeBackup_AddRef(This) \
  5440. (This)->lpVtbl -> AddRef(This)
  5441. #define ITfRangeBackup_Release(This) \
  5442. (This)->lpVtbl -> Release(This)
  5443. #define ITfRangeBackup_Restore(This,ec,pRange) \
  5444. (This)->lpVtbl -> Restore(This,ec,pRange)
  5445. #endif /* COBJMACROS */
  5446. #endif /* C style interface */
  5447. HRESULT STDMETHODCALLTYPE ITfRangeBackup_Restore_Proxy(
  5448. ITfRangeBackup * This,
  5449. /* [in] */ TfEditCookie ec,
  5450. /* [in] */ ITfRange *pRange);
  5451. void __RPC_STUB ITfRangeBackup_Restore_Stub(
  5452. IRpcStubBuffer *This,
  5453. IRpcChannelBuffer *_pRpcChannelBuffer,
  5454. PRPC_MESSAGE _pRpcMessage,
  5455. DWORD *_pdwStubPhase);
  5456. #endif /* __ITfRangeBackup_INTERFACE_DEFINED__ */
  5457. #ifndef __ITfPropertyStore_INTERFACE_DEFINED__
  5458. #define __ITfPropertyStore_INTERFACE_DEFINED__
  5459. /* interface ITfPropertyStore */
  5460. /* [unique][uuid][object] */
  5461. #define TF_TU_CORRECTION ( 0x1 )
  5462. EXTERN_C const IID IID_ITfPropertyStore;
  5463. #if defined(__cplusplus) && !defined(CINTERFACE)
  5464. MIDL_INTERFACE("6834b120-88cb-11d2-bf45-00105a2799b5")
  5465. ITfPropertyStore : public IUnknown
  5466. {
  5467. public:
  5468. virtual HRESULT STDMETHODCALLTYPE GetType(
  5469. /* [out] */ GUID *pguid) = 0;
  5470. virtual HRESULT STDMETHODCALLTYPE GetDataType(
  5471. /* [out] */ TfPropertyType *ptype) = 0;
  5472. virtual HRESULT STDMETHODCALLTYPE GetData(
  5473. /* [out] */ VARIANT *pvarValue) = 0;
  5474. virtual HRESULT STDMETHODCALLTYPE OnTextUpdated(
  5475. /* [in] */ DWORD dwFlags,
  5476. /* [in] */ ITfRange *pRangeNew,
  5477. /* [out] */ BOOL *pfAccept) = 0;
  5478. virtual HRESULT STDMETHODCALLTYPE Shrink(
  5479. /* [in] */ ITfRange *pRangeNew,
  5480. /* [out] */ BOOL *pfFree) = 0;
  5481. virtual HRESULT STDMETHODCALLTYPE Divide(
  5482. /* [in] */ ITfRange *pRangeThis,
  5483. /* [in] */ ITfRange *pRangeNew,
  5484. /* [out] */ ITfPropertyStore **ppPropStore) = 0;
  5485. virtual HRESULT STDMETHODCALLTYPE Clone(
  5486. /* [out] */ ITfPropertyStore **pPropStore) = 0;
  5487. virtual HRESULT STDMETHODCALLTYPE GetPropertyRangeCreator(
  5488. /* [out] */ CLSID *pclsid) = 0;
  5489. virtual HRESULT STDMETHODCALLTYPE Serialize(
  5490. /* [in] */ IStream *pStream,
  5491. /* [out] */ ULONG *pcb) = 0;
  5492. };
  5493. #else /* C style interface */
  5494. typedef struct ITfPropertyStoreVtbl
  5495. {
  5496. BEGIN_INTERFACE
  5497. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  5498. ITfPropertyStore * This,
  5499. /* [in] */ REFIID riid,
  5500. /* [iid_is][out] */ void **ppvObject);
  5501. ULONG ( STDMETHODCALLTYPE *AddRef )(
  5502. ITfPropertyStore * This);
  5503. ULONG ( STDMETHODCALLTYPE *Release )(
  5504. ITfPropertyStore * This);
  5505. HRESULT ( STDMETHODCALLTYPE *GetType )(
  5506. ITfPropertyStore * This,
  5507. /* [out] */ GUID *pguid);
  5508. HRESULT ( STDMETHODCALLTYPE *GetDataType )(
  5509. ITfPropertyStore * This,
  5510. /* [out] */ TfPropertyType *ptype);
  5511. HRESULT ( STDMETHODCALLTYPE *GetData )(
  5512. ITfPropertyStore * This,
  5513. /* [out] */ VARIANT *pvarValue);
  5514. HRESULT ( STDMETHODCALLTYPE *OnTextUpdated )(
  5515. ITfPropertyStore * This,
  5516. /* [in] */ DWORD dwFlags,
  5517. /* [in] */ ITfRange *pRangeNew,
  5518. /* [out] */ BOOL *pfAccept);
  5519. HRESULT ( STDMETHODCALLTYPE *Shrink )(
  5520. ITfPropertyStore * This,
  5521. /* [in] */ ITfRange *pRangeNew,
  5522. /* [out] */ BOOL *pfFree);
  5523. HRESULT ( STDMETHODCALLTYPE *Divide )(
  5524. ITfPropertyStore * This,
  5525. /* [in] */ ITfRange *pRangeThis,
  5526. /* [in] */ ITfRange *pRangeNew,
  5527. /* [out] */ ITfPropertyStore **ppPropStore);
  5528. HRESULT ( STDMETHODCALLTYPE *Clone )(
  5529. ITfPropertyStore * This,
  5530. /* [out] */ ITfPropertyStore **pPropStore);
  5531. HRESULT ( STDMETHODCALLTYPE *GetPropertyRangeCreator )(
  5532. ITfPropertyStore * This,
  5533. /* [out] */ CLSID *pclsid);
  5534. HRESULT ( STDMETHODCALLTYPE *Serialize )(
  5535. ITfPropertyStore * This,
  5536. /* [in] */ IStream *pStream,
  5537. /* [out] */ ULONG *pcb);
  5538. END_INTERFACE
  5539. } ITfPropertyStoreVtbl;
  5540. interface ITfPropertyStore
  5541. {
  5542. CONST_VTBL struct ITfPropertyStoreVtbl *lpVtbl;
  5543. };
  5544. #ifdef COBJMACROS
  5545. #define ITfPropertyStore_QueryInterface(This,riid,ppvObject) \
  5546. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  5547. #define ITfPropertyStore_AddRef(This) \
  5548. (This)->lpVtbl -> AddRef(This)
  5549. #define ITfPropertyStore_Release(This) \
  5550. (This)->lpVtbl -> Release(This)
  5551. #define ITfPropertyStore_GetType(This,pguid) \
  5552. (This)->lpVtbl -> GetType(This,pguid)
  5553. #define ITfPropertyStore_GetDataType(This,ptype) \
  5554. (This)->lpVtbl -> GetDataType(This,ptype)
  5555. #define ITfPropertyStore_GetData(This,pvarValue) \
  5556. (This)->lpVtbl -> GetData(This,pvarValue)
  5557. #define ITfPropertyStore_OnTextUpdated(This,dwFlags,pRangeNew,pfAccept) \
  5558. (This)->lpVtbl -> OnTextUpdated(This,dwFlags,pRangeNew,pfAccept)
  5559. #define ITfPropertyStore_Shrink(This,pRangeNew,pfFree) \
  5560. (This)->lpVtbl -> Shrink(This,pRangeNew,pfFree)
  5561. #define ITfPropertyStore_Divide(This,pRangeThis,pRangeNew,ppPropStore) \
  5562. (This)->lpVtbl -> Divide(This,pRangeThis,pRangeNew,ppPropStore)
  5563. #define ITfPropertyStore_Clone(This,pPropStore) \
  5564. (This)->lpVtbl -> Clone(This,pPropStore)
  5565. #define ITfPropertyStore_GetPropertyRangeCreator(This,pclsid) \
  5566. (This)->lpVtbl -> GetPropertyRangeCreator(This,pclsid)
  5567. #define ITfPropertyStore_Serialize(This,pStream,pcb) \
  5568. (This)->lpVtbl -> Serialize(This,pStream,pcb)
  5569. #endif /* COBJMACROS */
  5570. #endif /* C style interface */
  5571. HRESULT STDMETHODCALLTYPE ITfPropertyStore_GetType_Proxy(
  5572. ITfPropertyStore * This,
  5573. /* [out] */ GUID *pguid);
  5574. void __RPC_STUB ITfPropertyStore_GetType_Stub(
  5575. IRpcStubBuffer *This,
  5576. IRpcChannelBuffer *_pRpcChannelBuffer,
  5577. PRPC_MESSAGE _pRpcMessage,
  5578. DWORD *_pdwStubPhase);
  5579. HRESULT STDMETHODCALLTYPE ITfPropertyStore_GetDataType_Proxy(
  5580. ITfPropertyStore * This,
  5581. /* [out] */ TfPropertyType *ptype);
  5582. void __RPC_STUB ITfPropertyStore_GetDataType_Stub(
  5583. IRpcStubBuffer *This,
  5584. IRpcChannelBuffer *_pRpcChannelBuffer,
  5585. PRPC_MESSAGE _pRpcMessage,
  5586. DWORD *_pdwStubPhase);
  5587. HRESULT STDMETHODCALLTYPE ITfPropertyStore_GetData_Proxy(
  5588. ITfPropertyStore * This,
  5589. /* [out] */ VARIANT *pvarValue);
  5590. void __RPC_STUB ITfPropertyStore_GetData_Stub(
  5591. IRpcStubBuffer *This,
  5592. IRpcChannelBuffer *_pRpcChannelBuffer,
  5593. PRPC_MESSAGE _pRpcMessage,
  5594. DWORD *_pdwStubPhase);
  5595. HRESULT STDMETHODCALLTYPE ITfPropertyStore_OnTextUpdated_Proxy(
  5596. ITfPropertyStore * This,
  5597. /* [in] */ DWORD dwFlags,
  5598. /* [in] */ ITfRange *pRangeNew,
  5599. /* [out] */ BOOL *pfAccept);
  5600. void __RPC_STUB ITfPropertyStore_OnTextUpdated_Stub(
  5601. IRpcStubBuffer *This,
  5602. IRpcChannelBuffer *_pRpcChannelBuffer,
  5603. PRPC_MESSAGE _pRpcMessage,
  5604. DWORD *_pdwStubPhase);
  5605. HRESULT STDMETHODCALLTYPE ITfPropertyStore_Shrink_Proxy(
  5606. ITfPropertyStore * This,
  5607. /* [in] */ ITfRange *pRangeNew,
  5608. /* [out] */ BOOL *pfFree);
  5609. void __RPC_STUB ITfPropertyStore_Shrink_Stub(
  5610. IRpcStubBuffer *This,
  5611. IRpcChannelBuffer *_pRpcChannelBuffer,
  5612. PRPC_MESSAGE _pRpcMessage,
  5613. DWORD *_pdwStubPhase);
  5614. HRESULT STDMETHODCALLTYPE ITfPropertyStore_Divide_Proxy(
  5615. ITfPropertyStore * This,
  5616. /* [in] */ ITfRange *pRangeThis,
  5617. /* [in] */ ITfRange *pRangeNew,
  5618. /* [out] */ ITfPropertyStore **ppPropStore);
  5619. void __RPC_STUB ITfPropertyStore_Divide_Stub(
  5620. IRpcStubBuffer *This,
  5621. IRpcChannelBuffer *_pRpcChannelBuffer,
  5622. PRPC_MESSAGE _pRpcMessage,
  5623. DWORD *_pdwStubPhase);
  5624. HRESULT STDMETHODCALLTYPE ITfPropertyStore_Clone_Proxy(
  5625. ITfPropertyStore * This,
  5626. /* [out] */ ITfPropertyStore **pPropStore);
  5627. void __RPC_STUB ITfPropertyStore_Clone_Stub(
  5628. IRpcStubBuffer *This,
  5629. IRpcChannelBuffer *_pRpcChannelBuffer,
  5630. PRPC_MESSAGE _pRpcMessage,
  5631. DWORD *_pdwStubPhase);
  5632. HRESULT STDMETHODCALLTYPE ITfPropertyStore_GetPropertyRangeCreator_Proxy(
  5633. ITfPropertyStore * This,
  5634. /* [out] */ CLSID *pclsid);
  5635. void __RPC_STUB ITfPropertyStore_GetPropertyRangeCreator_Stub(
  5636. IRpcStubBuffer *This,
  5637. IRpcChannelBuffer *_pRpcChannelBuffer,
  5638. PRPC_MESSAGE _pRpcMessage,
  5639. DWORD *_pdwStubPhase);
  5640. HRESULT STDMETHODCALLTYPE ITfPropertyStore_Serialize_Proxy(
  5641. ITfPropertyStore * This,
  5642. /* [in] */ IStream *pStream,
  5643. /* [out] */ ULONG *pcb);
  5644. void __RPC_STUB ITfPropertyStore_Serialize_Stub(
  5645. IRpcStubBuffer *This,
  5646. IRpcChannelBuffer *_pRpcChannelBuffer,
  5647. PRPC_MESSAGE _pRpcMessage,
  5648. DWORD *_pdwStubPhase);
  5649. #endif /* __ITfPropertyStore_INTERFACE_DEFINED__ */
  5650. #ifndef __IEnumTfRanges_INTERFACE_DEFINED__
  5651. #define __IEnumTfRanges_INTERFACE_DEFINED__
  5652. /* interface IEnumTfRanges */
  5653. /* [unique][uuid][object] */
  5654. EXTERN_C const IID IID_IEnumTfRanges;
  5655. #if defined(__cplusplus) && !defined(CINTERFACE)
  5656. MIDL_INTERFACE("f99d3f40-8e32-11d2-bf46-00105a2799b5")
  5657. IEnumTfRanges : public IUnknown
  5658. {
  5659. public:
  5660. virtual HRESULT STDMETHODCALLTYPE Clone(
  5661. /* [out] */ IEnumTfRanges **ppEnum) = 0;
  5662. virtual HRESULT STDMETHODCALLTYPE Next(
  5663. /* [in] */ ULONG ulCount,
  5664. /* [length_is][size_is][out] */ ITfRange **ppRange,
  5665. /* [out] */ ULONG *pcFetched) = 0;
  5666. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  5667. virtual HRESULT STDMETHODCALLTYPE Skip(
  5668. ULONG ulCount) = 0;
  5669. };
  5670. #else /* C style interface */
  5671. typedef struct IEnumTfRangesVtbl
  5672. {
  5673. BEGIN_INTERFACE
  5674. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  5675. IEnumTfRanges * This,
  5676. /* [in] */ REFIID riid,
  5677. /* [iid_is][out] */ void **ppvObject);
  5678. ULONG ( STDMETHODCALLTYPE *AddRef )(
  5679. IEnumTfRanges * This);
  5680. ULONG ( STDMETHODCALLTYPE *Release )(
  5681. IEnumTfRanges * This);
  5682. HRESULT ( STDMETHODCALLTYPE *Clone )(
  5683. IEnumTfRanges * This,
  5684. /* [out] */ IEnumTfRanges **ppEnum);
  5685. HRESULT ( STDMETHODCALLTYPE *Next )(
  5686. IEnumTfRanges * This,
  5687. /* [in] */ ULONG ulCount,
  5688. /* [length_is][size_is][out] */ ITfRange **ppRange,
  5689. /* [out] */ ULONG *pcFetched);
  5690. HRESULT ( STDMETHODCALLTYPE *Reset )(
  5691. IEnumTfRanges * This);
  5692. HRESULT ( STDMETHODCALLTYPE *Skip )(
  5693. IEnumTfRanges * This,
  5694. ULONG ulCount);
  5695. END_INTERFACE
  5696. } IEnumTfRangesVtbl;
  5697. interface IEnumTfRanges
  5698. {
  5699. CONST_VTBL struct IEnumTfRangesVtbl *lpVtbl;
  5700. };
  5701. #ifdef COBJMACROS
  5702. #define IEnumTfRanges_QueryInterface(This,riid,ppvObject) \
  5703. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  5704. #define IEnumTfRanges_AddRef(This) \
  5705. (This)->lpVtbl -> AddRef(This)
  5706. #define IEnumTfRanges_Release(This) \
  5707. (This)->lpVtbl -> Release(This)
  5708. #define IEnumTfRanges_Clone(This,ppEnum) \
  5709. (This)->lpVtbl -> Clone(This,ppEnum)
  5710. #define IEnumTfRanges_Next(This,ulCount,ppRange,pcFetched) \
  5711. (This)->lpVtbl -> Next(This,ulCount,ppRange,pcFetched)
  5712. #define IEnumTfRanges_Reset(This) \
  5713. (This)->lpVtbl -> Reset(This)
  5714. #define IEnumTfRanges_Skip(This,ulCount) \
  5715. (This)->lpVtbl -> Skip(This,ulCount)
  5716. #endif /* COBJMACROS */
  5717. #endif /* C style interface */
  5718. HRESULT STDMETHODCALLTYPE IEnumTfRanges_Clone_Proxy(
  5719. IEnumTfRanges * This,
  5720. /* [out] */ IEnumTfRanges **ppEnum);
  5721. void __RPC_STUB IEnumTfRanges_Clone_Stub(
  5722. IRpcStubBuffer *This,
  5723. IRpcChannelBuffer *_pRpcChannelBuffer,
  5724. PRPC_MESSAGE _pRpcMessage,
  5725. DWORD *_pdwStubPhase);
  5726. HRESULT STDMETHODCALLTYPE IEnumTfRanges_Next_Proxy(
  5727. IEnumTfRanges * This,
  5728. /* [in] */ ULONG ulCount,
  5729. /* [length_is][size_is][out] */ ITfRange **ppRange,
  5730. /* [out] */ ULONG *pcFetched);
  5731. void __RPC_STUB IEnumTfRanges_Next_Stub(
  5732. IRpcStubBuffer *This,
  5733. IRpcChannelBuffer *_pRpcChannelBuffer,
  5734. PRPC_MESSAGE _pRpcMessage,
  5735. DWORD *_pdwStubPhase);
  5736. HRESULT STDMETHODCALLTYPE IEnumTfRanges_Reset_Proxy(
  5737. IEnumTfRanges * This);
  5738. void __RPC_STUB IEnumTfRanges_Reset_Stub(
  5739. IRpcStubBuffer *This,
  5740. IRpcChannelBuffer *_pRpcChannelBuffer,
  5741. PRPC_MESSAGE _pRpcMessage,
  5742. DWORD *_pdwStubPhase);
  5743. HRESULT STDMETHODCALLTYPE IEnumTfRanges_Skip_Proxy(
  5744. IEnumTfRanges * This,
  5745. ULONG ulCount);
  5746. void __RPC_STUB IEnumTfRanges_Skip_Stub(
  5747. IRpcStubBuffer *This,
  5748. IRpcChannelBuffer *_pRpcChannelBuffer,
  5749. PRPC_MESSAGE _pRpcMessage,
  5750. DWORD *_pdwStubPhase);
  5751. #endif /* __IEnumTfRanges_INTERFACE_DEFINED__ */
  5752. #ifndef __ITfCreatePropertyStore_INTERFACE_DEFINED__
  5753. #define __ITfCreatePropertyStore_INTERFACE_DEFINED__
  5754. /* interface ITfCreatePropertyStore */
  5755. /* [unique][uuid][object] */
  5756. EXTERN_C const IID IID_ITfCreatePropertyStore;
  5757. #if defined(__cplusplus) && !defined(CINTERFACE)
  5758. MIDL_INTERFACE("2463fbf0-b0af-11d2-afc5-00105a2799b5")
  5759. ITfCreatePropertyStore : public IUnknown
  5760. {
  5761. public:
  5762. virtual HRESULT STDMETHODCALLTYPE IsStoreSerializable(
  5763. /* [in] */ REFGUID guidProp,
  5764. /* [in] */ ITfRange *pRange,
  5765. /* [in] */ ITfPropertyStore *pPropStore,
  5766. /* [out] */ BOOL *pfSerializable) = 0;
  5767. virtual HRESULT STDMETHODCALLTYPE CreatePropertyStore(
  5768. /* [in] */ REFGUID guidProp,
  5769. /* [in] */ ITfRange *pRange,
  5770. /* [in] */ ULONG cb,
  5771. /* [in] */ IStream *pStream,
  5772. /* [out] */ ITfPropertyStore **ppStore) = 0;
  5773. };
  5774. #else /* C style interface */
  5775. typedef struct ITfCreatePropertyStoreVtbl
  5776. {
  5777. BEGIN_INTERFACE
  5778. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  5779. ITfCreatePropertyStore * This,
  5780. /* [in] */ REFIID riid,
  5781. /* [iid_is][out] */ void **ppvObject);
  5782. ULONG ( STDMETHODCALLTYPE *AddRef )(
  5783. ITfCreatePropertyStore * This);
  5784. ULONG ( STDMETHODCALLTYPE *Release )(
  5785. ITfCreatePropertyStore * This);
  5786. HRESULT ( STDMETHODCALLTYPE *IsStoreSerializable )(
  5787. ITfCreatePropertyStore * This,
  5788. /* [in] */ REFGUID guidProp,
  5789. /* [in] */ ITfRange *pRange,
  5790. /* [in] */ ITfPropertyStore *pPropStore,
  5791. /* [out] */ BOOL *pfSerializable);
  5792. HRESULT ( STDMETHODCALLTYPE *CreatePropertyStore )(
  5793. ITfCreatePropertyStore * This,
  5794. /* [in] */ REFGUID guidProp,
  5795. /* [in] */ ITfRange *pRange,
  5796. /* [in] */ ULONG cb,
  5797. /* [in] */ IStream *pStream,
  5798. /* [out] */ ITfPropertyStore **ppStore);
  5799. END_INTERFACE
  5800. } ITfCreatePropertyStoreVtbl;
  5801. interface ITfCreatePropertyStore
  5802. {
  5803. CONST_VTBL struct ITfCreatePropertyStoreVtbl *lpVtbl;
  5804. };
  5805. #ifdef COBJMACROS
  5806. #define ITfCreatePropertyStore_QueryInterface(This,riid,ppvObject) \
  5807. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  5808. #define ITfCreatePropertyStore_AddRef(This) \
  5809. (This)->lpVtbl -> AddRef(This)
  5810. #define ITfCreatePropertyStore_Release(This) \
  5811. (This)->lpVtbl -> Release(This)
  5812. #define ITfCreatePropertyStore_IsStoreSerializable(This,guidProp,pRange,pPropStore,pfSerializable) \
  5813. (This)->lpVtbl -> IsStoreSerializable(This,guidProp,pRange,pPropStore,pfSerializable)
  5814. #define ITfCreatePropertyStore_CreatePropertyStore(This,guidProp,pRange,cb,pStream,ppStore) \
  5815. (This)->lpVtbl -> CreatePropertyStore(This,guidProp,pRange,cb,pStream,ppStore)
  5816. #endif /* COBJMACROS */
  5817. #endif /* C style interface */
  5818. HRESULT STDMETHODCALLTYPE ITfCreatePropertyStore_IsStoreSerializable_Proxy(
  5819. ITfCreatePropertyStore * This,
  5820. /* [in] */ REFGUID guidProp,
  5821. /* [in] */ ITfRange *pRange,
  5822. /* [in] */ ITfPropertyStore *pPropStore,
  5823. /* [out] */ BOOL *pfSerializable);
  5824. void __RPC_STUB ITfCreatePropertyStore_IsStoreSerializable_Stub(
  5825. IRpcStubBuffer *This,
  5826. IRpcChannelBuffer *_pRpcChannelBuffer,
  5827. PRPC_MESSAGE _pRpcMessage,
  5828. DWORD *_pdwStubPhase);
  5829. HRESULT STDMETHODCALLTYPE ITfCreatePropertyStore_CreatePropertyStore_Proxy(
  5830. ITfCreatePropertyStore * This,
  5831. /* [in] */ REFGUID guidProp,
  5832. /* [in] */ ITfRange *pRange,
  5833. /* [in] */ ULONG cb,
  5834. /* [in] */ IStream *pStream,
  5835. /* [out] */ ITfPropertyStore **ppStore);
  5836. void __RPC_STUB ITfCreatePropertyStore_CreatePropertyStore_Stub(
  5837. IRpcStubBuffer *This,
  5838. IRpcChannelBuffer *_pRpcChannelBuffer,
  5839. PRPC_MESSAGE _pRpcMessage,
  5840. DWORD *_pdwStubPhase);
  5841. #endif /* __ITfCreatePropertyStore_INTERFACE_DEFINED__ */
  5842. #ifndef __ITfPersistentPropertyLoaderACP_INTERFACE_DEFINED__
  5843. #define __ITfPersistentPropertyLoaderACP_INTERFACE_DEFINED__
  5844. /* interface ITfPersistentPropertyLoaderACP */
  5845. /* [unique][uuid][object] */
  5846. EXTERN_C const IID IID_ITfPersistentPropertyLoaderACP;
  5847. #if defined(__cplusplus) && !defined(CINTERFACE)
  5848. MIDL_INTERFACE("4ef89150-0807-11d3-8df0-00105a2799b5")
  5849. ITfPersistentPropertyLoaderACP : public IUnknown
  5850. {
  5851. public:
  5852. virtual HRESULT STDMETHODCALLTYPE LoadProperty(
  5853. /* [in] */ const TF_PERSISTENT_PROPERTY_HEADER_ACP *pHdr,
  5854. /* [out] */ IStream **ppStream) = 0;
  5855. };
  5856. #else /* C style interface */
  5857. typedef struct ITfPersistentPropertyLoaderACPVtbl
  5858. {
  5859. BEGIN_INTERFACE
  5860. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  5861. ITfPersistentPropertyLoaderACP * This,
  5862. /* [in] */ REFIID riid,
  5863. /* [iid_is][out] */ void **ppvObject);
  5864. ULONG ( STDMETHODCALLTYPE *AddRef )(
  5865. ITfPersistentPropertyLoaderACP * This);
  5866. ULONG ( STDMETHODCALLTYPE *Release )(
  5867. ITfPersistentPropertyLoaderACP * This);
  5868. HRESULT ( STDMETHODCALLTYPE *LoadProperty )(
  5869. ITfPersistentPropertyLoaderACP * This,
  5870. /* [in] */ const TF_PERSISTENT_PROPERTY_HEADER_ACP *pHdr,
  5871. /* [out] */ IStream **ppStream);
  5872. END_INTERFACE
  5873. } ITfPersistentPropertyLoaderACPVtbl;
  5874. interface ITfPersistentPropertyLoaderACP
  5875. {
  5876. CONST_VTBL struct ITfPersistentPropertyLoaderACPVtbl *lpVtbl;
  5877. };
  5878. #ifdef COBJMACROS
  5879. #define ITfPersistentPropertyLoaderACP_QueryInterface(This,riid,ppvObject) \
  5880. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  5881. #define ITfPersistentPropertyLoaderACP_AddRef(This) \
  5882. (This)->lpVtbl -> AddRef(This)
  5883. #define ITfPersistentPropertyLoaderACP_Release(This) \
  5884. (This)->lpVtbl -> Release(This)
  5885. #define ITfPersistentPropertyLoaderACP_LoadProperty(This,pHdr,ppStream) \
  5886. (This)->lpVtbl -> LoadProperty(This,pHdr,ppStream)
  5887. #endif /* COBJMACROS */
  5888. #endif /* C style interface */
  5889. HRESULT STDMETHODCALLTYPE ITfPersistentPropertyLoaderACP_LoadProperty_Proxy(
  5890. ITfPersistentPropertyLoaderACP * This,
  5891. /* [in] */ const TF_PERSISTENT_PROPERTY_HEADER_ACP *pHdr,
  5892. /* [out] */ IStream **ppStream);
  5893. void __RPC_STUB ITfPersistentPropertyLoaderACP_LoadProperty_Stub(
  5894. IRpcStubBuffer *This,
  5895. IRpcChannelBuffer *_pRpcChannelBuffer,
  5896. PRPC_MESSAGE _pRpcMessage,
  5897. DWORD *_pdwStubPhase);
  5898. #endif /* __ITfPersistentPropertyLoaderACP_INTERFACE_DEFINED__ */
  5899. #ifndef __ITfPersistentPropertyLoaderAnchor_INTERFACE_DEFINED__
  5900. #define __ITfPersistentPropertyLoaderAnchor_INTERFACE_DEFINED__
  5901. /* interface ITfPersistentPropertyLoaderAnchor */
  5902. /* [unique][uuid][object] */
  5903. EXTERN_C const IID IID_ITfPersistentPropertyLoaderAnchor;
  5904. #if defined(__cplusplus) && !defined(CINTERFACE)
  5905. MIDL_INTERFACE("2133f790-34c2-11d3-a745-0050040ab407")
  5906. ITfPersistentPropertyLoaderAnchor : public IUnknown
  5907. {
  5908. public:
  5909. virtual HRESULT STDMETHODCALLTYPE LoadProperty(
  5910. /* [in] */ const TF_PERSISTENT_PROPERTY_HEADER_ANCHOR *pHdr,
  5911. /* [out] */ IStream **ppStream) = 0;
  5912. };
  5913. #else /* C style interface */
  5914. typedef struct ITfPersistentPropertyLoaderAnchorVtbl
  5915. {
  5916. BEGIN_INTERFACE
  5917. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  5918. ITfPersistentPropertyLoaderAnchor * This,
  5919. /* [in] */ REFIID riid,
  5920. /* [iid_is][out] */ void **ppvObject);
  5921. ULONG ( STDMETHODCALLTYPE *AddRef )(
  5922. ITfPersistentPropertyLoaderAnchor * This);
  5923. ULONG ( STDMETHODCALLTYPE *Release )(
  5924. ITfPersistentPropertyLoaderAnchor * This);
  5925. HRESULT ( STDMETHODCALLTYPE *LoadProperty )(
  5926. ITfPersistentPropertyLoaderAnchor * This,
  5927. /* [in] */ const TF_PERSISTENT_PROPERTY_HEADER_ANCHOR *pHdr,
  5928. /* [out] */ IStream **ppStream);
  5929. END_INTERFACE
  5930. } ITfPersistentPropertyLoaderAnchorVtbl;
  5931. interface ITfPersistentPropertyLoaderAnchor
  5932. {
  5933. CONST_VTBL struct ITfPersistentPropertyLoaderAnchorVtbl *lpVtbl;
  5934. };
  5935. #ifdef COBJMACROS
  5936. #define ITfPersistentPropertyLoaderAnchor_QueryInterface(This,riid,ppvObject) \
  5937. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  5938. #define ITfPersistentPropertyLoaderAnchor_AddRef(This) \
  5939. (This)->lpVtbl -> AddRef(This)
  5940. #define ITfPersistentPropertyLoaderAnchor_Release(This) \
  5941. (This)->lpVtbl -> Release(This)
  5942. #define ITfPersistentPropertyLoaderAnchor_LoadProperty(This,pHdr,ppStream) \
  5943. (This)->lpVtbl -> LoadProperty(This,pHdr,ppStream)
  5944. #endif /* COBJMACROS */
  5945. #endif /* C style interface */
  5946. HRESULT STDMETHODCALLTYPE ITfPersistentPropertyLoaderAnchor_LoadProperty_Proxy(
  5947. ITfPersistentPropertyLoaderAnchor * This,
  5948. /* [in] */ const TF_PERSISTENT_PROPERTY_HEADER_ANCHOR *pHdr,
  5949. /* [out] */ IStream **ppStream);
  5950. void __RPC_STUB ITfPersistentPropertyLoaderAnchor_LoadProperty_Stub(
  5951. IRpcStubBuffer *This,
  5952. IRpcChannelBuffer *_pRpcChannelBuffer,
  5953. PRPC_MESSAGE _pRpcMessage,
  5954. DWORD *_pdwStubPhase);
  5955. #endif /* __ITfPersistentPropertyLoaderAnchor_INTERFACE_DEFINED__ */
  5956. #ifndef __ITfProperty_INTERFACE_DEFINED__
  5957. #define __ITfProperty_INTERFACE_DEFINED__
  5958. /* interface ITfProperty */
  5959. /* [unique][uuid][object] */
  5960. EXTERN_C const IID IID_ITfProperty;
  5961. #if defined(__cplusplus) && !defined(CINTERFACE)
  5962. MIDL_INTERFACE("e2449660-9542-11d2-bf46-00105a2799b5")
  5963. ITfProperty : public ITfReadOnlyProperty
  5964. {
  5965. public:
  5966. virtual HRESULT STDMETHODCALLTYPE FindRange(
  5967. /* [in] */ TfEditCookie ec,
  5968. /* [in] */ ITfRange *pRange,
  5969. /* [out] */ ITfRange **ppRange,
  5970. /* [in] */ TfAnchor aPos) = 0;
  5971. virtual HRESULT STDMETHODCALLTYPE SetValueStore(
  5972. /* [in] */ TfEditCookie ec,
  5973. /* [in] */ ITfRange *pRange,
  5974. /* [in] */ ITfPropertyStore *pPropStore) = 0;
  5975. virtual HRESULT STDMETHODCALLTYPE SetValue(
  5976. /* [in] */ TfEditCookie ec,
  5977. /* [in] */ ITfRange *pRange,
  5978. /* [in] */ VARIANT *pvarValue) = 0;
  5979. virtual HRESULT STDMETHODCALLTYPE Clear(
  5980. /* [in] */ TfEditCookie ec,
  5981. /* [in] */ ITfRange *pRange) = 0;
  5982. };
  5983. #else /* C style interface */
  5984. typedef struct ITfPropertyVtbl
  5985. {
  5986. BEGIN_INTERFACE
  5987. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  5988. ITfProperty * This,
  5989. /* [in] */ REFIID riid,
  5990. /* [iid_is][out] */ void **ppvObject);
  5991. ULONG ( STDMETHODCALLTYPE *AddRef )(
  5992. ITfProperty * This);
  5993. ULONG ( STDMETHODCALLTYPE *Release )(
  5994. ITfProperty * This);
  5995. HRESULT ( STDMETHODCALLTYPE *GetType )(
  5996. ITfProperty * This,
  5997. /* [out] */ GUID *pguid);
  5998. HRESULT ( STDMETHODCALLTYPE *EnumRanges )(
  5999. ITfProperty * This,
  6000. /* [in] */ TfEditCookie ec,
  6001. /* [out] */ IEnumTfRanges **ppEnum,
  6002. /* [in] */ ITfRange *pTargetRange);
  6003. HRESULT ( STDMETHODCALLTYPE *GetValue )(
  6004. ITfProperty * This,
  6005. /* [in] */ TfEditCookie ec,
  6006. /* [in] */ ITfRange *pRange,
  6007. /* [out] */ VARIANT *pvarValue);
  6008. HRESULT ( STDMETHODCALLTYPE *GetContext )(
  6009. ITfProperty * This,
  6010. /* [out] */ ITfContext **ppContext);
  6011. HRESULT ( STDMETHODCALLTYPE *FindRange )(
  6012. ITfProperty * This,
  6013. /* [in] */ TfEditCookie ec,
  6014. /* [in] */ ITfRange *pRange,
  6015. /* [out] */ ITfRange **ppRange,
  6016. /* [in] */ TfAnchor aPos);
  6017. HRESULT ( STDMETHODCALLTYPE *SetValueStore )(
  6018. ITfProperty * This,
  6019. /* [in] */ TfEditCookie ec,
  6020. /* [in] */ ITfRange *pRange,
  6021. /* [in] */ ITfPropertyStore *pPropStore);
  6022. HRESULT ( STDMETHODCALLTYPE *SetValue )(
  6023. ITfProperty * This,
  6024. /* [in] */ TfEditCookie ec,
  6025. /* [in] */ ITfRange *pRange,
  6026. /* [in] */ VARIANT *pvarValue);
  6027. HRESULT ( STDMETHODCALLTYPE *Clear )(
  6028. ITfProperty * This,
  6029. /* [in] */ TfEditCookie ec,
  6030. /* [in] */ ITfRange *pRange);
  6031. END_INTERFACE
  6032. } ITfPropertyVtbl;
  6033. interface ITfProperty
  6034. {
  6035. CONST_VTBL struct ITfPropertyVtbl *lpVtbl;
  6036. };
  6037. #ifdef COBJMACROS
  6038. #define ITfProperty_QueryInterface(This,riid,ppvObject) \
  6039. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  6040. #define ITfProperty_AddRef(This) \
  6041. (This)->lpVtbl -> AddRef(This)
  6042. #define ITfProperty_Release(This) \
  6043. (This)->lpVtbl -> Release(This)
  6044. #define ITfProperty_GetType(This,pguid) \
  6045. (This)->lpVtbl -> GetType(This,pguid)
  6046. #define ITfProperty_EnumRanges(This,ec,ppEnum,pTargetRange) \
  6047. (This)->lpVtbl -> EnumRanges(This,ec,ppEnum,pTargetRange)
  6048. #define ITfProperty_GetValue(This,ec,pRange,pvarValue) \
  6049. (This)->lpVtbl -> GetValue(This,ec,pRange,pvarValue)
  6050. #define ITfProperty_GetContext(This,ppContext) \
  6051. (This)->lpVtbl -> GetContext(This,ppContext)
  6052. #define ITfProperty_FindRange(This,ec,pRange,ppRange,aPos) \
  6053. (This)->lpVtbl -> FindRange(This,ec,pRange,ppRange,aPos)
  6054. #define ITfProperty_SetValueStore(This,ec,pRange,pPropStore) \
  6055. (This)->lpVtbl -> SetValueStore(This,ec,pRange,pPropStore)
  6056. #define ITfProperty_SetValue(This,ec,pRange,pvarValue) \
  6057. (This)->lpVtbl -> SetValue(This,ec,pRange,pvarValue)
  6058. #define ITfProperty_Clear(This,ec,pRange) \
  6059. (This)->lpVtbl -> Clear(This,ec,pRange)
  6060. #endif /* COBJMACROS */
  6061. #endif /* C style interface */
  6062. HRESULT STDMETHODCALLTYPE ITfProperty_FindRange_Proxy(
  6063. ITfProperty * This,
  6064. /* [in] */ TfEditCookie ec,
  6065. /* [in] */ ITfRange *pRange,
  6066. /* [out] */ ITfRange **ppRange,
  6067. /* [in] */ TfAnchor aPos);
  6068. void __RPC_STUB ITfProperty_FindRange_Stub(
  6069. IRpcStubBuffer *This,
  6070. IRpcChannelBuffer *_pRpcChannelBuffer,
  6071. PRPC_MESSAGE _pRpcMessage,
  6072. DWORD *_pdwStubPhase);
  6073. HRESULT STDMETHODCALLTYPE ITfProperty_SetValueStore_Proxy(
  6074. ITfProperty * This,
  6075. /* [in] */ TfEditCookie ec,
  6076. /* [in] */ ITfRange *pRange,
  6077. /* [in] */ ITfPropertyStore *pPropStore);
  6078. void __RPC_STUB ITfProperty_SetValueStore_Stub(
  6079. IRpcStubBuffer *This,
  6080. IRpcChannelBuffer *_pRpcChannelBuffer,
  6081. PRPC_MESSAGE _pRpcMessage,
  6082. DWORD *_pdwStubPhase);
  6083. HRESULT STDMETHODCALLTYPE ITfProperty_SetValue_Proxy(
  6084. ITfProperty * This,
  6085. /* [in] */ TfEditCookie ec,
  6086. /* [in] */ ITfRange *pRange,
  6087. /* [in] */ VARIANT *pvarValue);
  6088. void __RPC_STUB ITfProperty_SetValue_Stub(
  6089. IRpcStubBuffer *This,
  6090. IRpcChannelBuffer *_pRpcChannelBuffer,
  6091. PRPC_MESSAGE _pRpcMessage,
  6092. DWORD *_pdwStubPhase);
  6093. HRESULT STDMETHODCALLTYPE ITfProperty_Clear_Proxy(
  6094. ITfProperty * This,
  6095. /* [in] */ TfEditCookie ec,
  6096. /* [in] */ ITfRange *pRange);
  6097. void __RPC_STUB ITfProperty_Clear_Stub(
  6098. IRpcStubBuffer *This,
  6099. IRpcChannelBuffer *_pRpcChannelBuffer,
  6100. PRPC_MESSAGE _pRpcMessage,
  6101. DWORD *_pdwStubPhase);
  6102. #endif /* __ITfProperty_INTERFACE_DEFINED__ */
  6103. #ifndef __IEnumTfProperties_INTERFACE_DEFINED__
  6104. #define __IEnumTfProperties_INTERFACE_DEFINED__
  6105. /* interface IEnumTfProperties */
  6106. /* [unique][uuid][object] */
  6107. EXTERN_C const IID IID_IEnumTfProperties;
  6108. #if defined(__cplusplus) && !defined(CINTERFACE)
  6109. MIDL_INTERFACE("19188cb0-aca9-11d2-afc5-00105a2799b5")
  6110. IEnumTfProperties : public IUnknown
  6111. {
  6112. public:
  6113. virtual HRESULT STDMETHODCALLTYPE Clone(
  6114. /* [out] */ IEnumTfProperties **ppEnum) = 0;
  6115. virtual HRESULT STDMETHODCALLTYPE Next(
  6116. /* [in] */ ULONG ulCount,
  6117. /* [length_is][size_is][out] */ ITfProperty **ppProp,
  6118. /* [out] */ ULONG *pcFetched) = 0;
  6119. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  6120. virtual HRESULT STDMETHODCALLTYPE Skip(
  6121. /* [in] */ ULONG ulCount) = 0;
  6122. };
  6123. #else /* C style interface */
  6124. typedef struct IEnumTfPropertiesVtbl
  6125. {
  6126. BEGIN_INTERFACE
  6127. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  6128. IEnumTfProperties * This,
  6129. /* [in] */ REFIID riid,
  6130. /* [iid_is][out] */ void **ppvObject);
  6131. ULONG ( STDMETHODCALLTYPE *AddRef )(
  6132. IEnumTfProperties * This);
  6133. ULONG ( STDMETHODCALLTYPE *Release )(
  6134. IEnumTfProperties * This);
  6135. HRESULT ( STDMETHODCALLTYPE *Clone )(
  6136. IEnumTfProperties * This,
  6137. /* [out] */ IEnumTfProperties **ppEnum);
  6138. HRESULT ( STDMETHODCALLTYPE *Next )(
  6139. IEnumTfProperties * This,
  6140. /* [in] */ ULONG ulCount,
  6141. /* [length_is][size_is][out] */ ITfProperty **ppProp,
  6142. /* [out] */ ULONG *pcFetched);
  6143. HRESULT ( STDMETHODCALLTYPE *Reset )(
  6144. IEnumTfProperties * This);
  6145. HRESULT ( STDMETHODCALLTYPE *Skip )(
  6146. IEnumTfProperties * This,
  6147. /* [in] */ ULONG ulCount);
  6148. END_INTERFACE
  6149. } IEnumTfPropertiesVtbl;
  6150. interface IEnumTfProperties
  6151. {
  6152. CONST_VTBL struct IEnumTfPropertiesVtbl *lpVtbl;
  6153. };
  6154. #ifdef COBJMACROS
  6155. #define IEnumTfProperties_QueryInterface(This,riid,ppvObject) \
  6156. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  6157. #define IEnumTfProperties_AddRef(This) \
  6158. (This)->lpVtbl -> AddRef(This)
  6159. #define IEnumTfProperties_Release(This) \
  6160. (This)->lpVtbl -> Release(This)
  6161. #define IEnumTfProperties_Clone(This,ppEnum) \
  6162. (This)->lpVtbl -> Clone(This,ppEnum)
  6163. #define IEnumTfProperties_Next(This,ulCount,ppProp,pcFetched) \
  6164. (This)->lpVtbl -> Next(This,ulCount,ppProp,pcFetched)
  6165. #define IEnumTfProperties_Reset(This) \
  6166. (This)->lpVtbl -> Reset(This)
  6167. #define IEnumTfProperties_Skip(This,ulCount) \
  6168. (This)->lpVtbl -> Skip(This,ulCount)
  6169. #endif /* COBJMACROS */
  6170. #endif /* C style interface */
  6171. HRESULT STDMETHODCALLTYPE IEnumTfProperties_Clone_Proxy(
  6172. IEnumTfProperties * This,
  6173. /* [out] */ IEnumTfProperties **ppEnum);
  6174. void __RPC_STUB IEnumTfProperties_Clone_Stub(
  6175. IRpcStubBuffer *This,
  6176. IRpcChannelBuffer *_pRpcChannelBuffer,
  6177. PRPC_MESSAGE _pRpcMessage,
  6178. DWORD *_pdwStubPhase);
  6179. HRESULT STDMETHODCALLTYPE IEnumTfProperties_Next_Proxy(
  6180. IEnumTfProperties * This,
  6181. /* [in] */ ULONG ulCount,
  6182. /* [length_is][size_is][out] */ ITfProperty **ppProp,
  6183. /* [out] */ ULONG *pcFetched);
  6184. void __RPC_STUB IEnumTfProperties_Next_Stub(
  6185. IRpcStubBuffer *This,
  6186. IRpcChannelBuffer *_pRpcChannelBuffer,
  6187. PRPC_MESSAGE _pRpcMessage,
  6188. DWORD *_pdwStubPhase);
  6189. HRESULT STDMETHODCALLTYPE IEnumTfProperties_Reset_Proxy(
  6190. IEnumTfProperties * This);
  6191. void __RPC_STUB IEnumTfProperties_Reset_Stub(
  6192. IRpcStubBuffer *This,
  6193. IRpcChannelBuffer *_pRpcChannelBuffer,
  6194. PRPC_MESSAGE _pRpcMessage,
  6195. DWORD *_pdwStubPhase);
  6196. HRESULT STDMETHODCALLTYPE IEnumTfProperties_Skip_Proxy(
  6197. IEnumTfProperties * This,
  6198. /* [in] */ ULONG ulCount);
  6199. void __RPC_STUB IEnumTfProperties_Skip_Stub(
  6200. IRpcStubBuffer *This,
  6201. IRpcChannelBuffer *_pRpcChannelBuffer,
  6202. PRPC_MESSAGE _pRpcMessage,
  6203. DWORD *_pdwStubPhase);
  6204. #endif /* __IEnumTfProperties_INTERFACE_DEFINED__ */
  6205. #ifndef __ITfCompartment_INTERFACE_DEFINED__
  6206. #define __ITfCompartment_INTERFACE_DEFINED__
  6207. /* interface ITfCompartment */
  6208. /* [unique][uuid][object] */
  6209. EXTERN_C const IID IID_ITfCompartment;
  6210. #if defined(__cplusplus) && !defined(CINTERFACE)
  6211. MIDL_INTERFACE("bb08f7a9-607a-4384-8623-056892b64371")
  6212. ITfCompartment : public IUnknown
  6213. {
  6214. public:
  6215. virtual HRESULT STDMETHODCALLTYPE SetValue(
  6216. /* [in] */ TfClientId tid,
  6217. /* [in] */ VARIANT *pvarValue) = 0;
  6218. virtual HRESULT STDMETHODCALLTYPE GetValue(
  6219. /* [out] */ VARIANT *pvarValue) = 0;
  6220. };
  6221. #else /* C style interface */
  6222. typedef struct ITfCompartmentVtbl
  6223. {
  6224. BEGIN_INTERFACE
  6225. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  6226. ITfCompartment * This,
  6227. /* [in] */ REFIID riid,
  6228. /* [iid_is][out] */ void **ppvObject);
  6229. ULONG ( STDMETHODCALLTYPE *AddRef )(
  6230. ITfCompartment * This);
  6231. ULONG ( STDMETHODCALLTYPE *Release )(
  6232. ITfCompartment * This);
  6233. HRESULT ( STDMETHODCALLTYPE *SetValue )(
  6234. ITfCompartment * This,
  6235. /* [in] */ TfClientId tid,
  6236. /* [in] */ VARIANT *pvarValue);
  6237. HRESULT ( STDMETHODCALLTYPE *GetValue )(
  6238. ITfCompartment * This,
  6239. /* [out] */ VARIANT *pvarValue);
  6240. END_INTERFACE
  6241. } ITfCompartmentVtbl;
  6242. interface ITfCompartment
  6243. {
  6244. CONST_VTBL struct ITfCompartmentVtbl *lpVtbl;
  6245. };
  6246. #ifdef COBJMACROS
  6247. #define ITfCompartment_QueryInterface(This,riid,ppvObject) \
  6248. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  6249. #define ITfCompartment_AddRef(This) \
  6250. (This)->lpVtbl -> AddRef(This)
  6251. #define ITfCompartment_Release(This) \
  6252. (This)->lpVtbl -> Release(This)
  6253. #define ITfCompartment_SetValue(This,tid,pvarValue) \
  6254. (This)->lpVtbl -> SetValue(This,tid,pvarValue)
  6255. #define ITfCompartment_GetValue(This,pvarValue) \
  6256. (This)->lpVtbl -> GetValue(This,pvarValue)
  6257. #endif /* COBJMACROS */
  6258. #endif /* C style interface */
  6259. HRESULT STDMETHODCALLTYPE ITfCompartment_SetValue_Proxy(
  6260. ITfCompartment * This,
  6261. /* [in] */ TfClientId tid,
  6262. /* [in] */ VARIANT *pvarValue);
  6263. void __RPC_STUB ITfCompartment_SetValue_Stub(
  6264. IRpcStubBuffer *This,
  6265. IRpcChannelBuffer *_pRpcChannelBuffer,
  6266. PRPC_MESSAGE _pRpcMessage,
  6267. DWORD *_pdwStubPhase);
  6268. HRESULT STDMETHODCALLTYPE ITfCompartment_GetValue_Proxy(
  6269. ITfCompartment * This,
  6270. /* [out] */ VARIANT *pvarValue);
  6271. void __RPC_STUB ITfCompartment_GetValue_Stub(
  6272. IRpcStubBuffer *This,
  6273. IRpcChannelBuffer *_pRpcChannelBuffer,
  6274. PRPC_MESSAGE _pRpcMessage,
  6275. DWORD *_pdwStubPhase);
  6276. #endif /* __ITfCompartment_INTERFACE_DEFINED__ */
  6277. #ifndef __ITfCompartmentEventSink_INTERFACE_DEFINED__
  6278. #define __ITfCompartmentEventSink_INTERFACE_DEFINED__
  6279. /* interface ITfCompartmentEventSink */
  6280. /* [unique][uuid][object] */
  6281. EXTERN_C const IID IID_ITfCompartmentEventSink;
  6282. #if defined(__cplusplus) && !defined(CINTERFACE)
  6283. MIDL_INTERFACE("743abd5f-f26d-48df-8cc5-238492419b64")
  6284. ITfCompartmentEventSink : public IUnknown
  6285. {
  6286. public:
  6287. virtual HRESULT STDMETHODCALLTYPE OnChange(
  6288. /* [in] */ REFGUID rguid) = 0;
  6289. };
  6290. #else /* C style interface */
  6291. typedef struct ITfCompartmentEventSinkVtbl
  6292. {
  6293. BEGIN_INTERFACE
  6294. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  6295. ITfCompartmentEventSink * This,
  6296. /* [in] */ REFIID riid,
  6297. /* [iid_is][out] */ void **ppvObject);
  6298. ULONG ( STDMETHODCALLTYPE *AddRef )(
  6299. ITfCompartmentEventSink * This);
  6300. ULONG ( STDMETHODCALLTYPE *Release )(
  6301. ITfCompartmentEventSink * This);
  6302. HRESULT ( STDMETHODCALLTYPE *OnChange )(
  6303. ITfCompartmentEventSink * This,
  6304. /* [in] */ REFGUID rguid);
  6305. END_INTERFACE
  6306. } ITfCompartmentEventSinkVtbl;
  6307. interface ITfCompartmentEventSink
  6308. {
  6309. CONST_VTBL struct ITfCompartmentEventSinkVtbl *lpVtbl;
  6310. };
  6311. #ifdef COBJMACROS
  6312. #define ITfCompartmentEventSink_QueryInterface(This,riid,ppvObject) \
  6313. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  6314. #define ITfCompartmentEventSink_AddRef(This) \
  6315. (This)->lpVtbl -> AddRef(This)
  6316. #define ITfCompartmentEventSink_Release(This) \
  6317. (This)->lpVtbl -> Release(This)
  6318. #define ITfCompartmentEventSink_OnChange(This,rguid) \
  6319. (This)->lpVtbl -> OnChange(This,rguid)
  6320. #endif /* COBJMACROS */
  6321. #endif /* C style interface */
  6322. HRESULT STDMETHODCALLTYPE ITfCompartmentEventSink_OnChange_Proxy(
  6323. ITfCompartmentEventSink * This,
  6324. /* [in] */ REFGUID rguid);
  6325. void __RPC_STUB ITfCompartmentEventSink_OnChange_Stub(
  6326. IRpcStubBuffer *This,
  6327. IRpcChannelBuffer *_pRpcChannelBuffer,
  6328. PRPC_MESSAGE _pRpcMessage,
  6329. DWORD *_pdwStubPhase);
  6330. #endif /* __ITfCompartmentEventSink_INTERFACE_DEFINED__ */
  6331. #ifndef __ITfCompartmentMgr_INTERFACE_DEFINED__
  6332. #define __ITfCompartmentMgr_INTERFACE_DEFINED__
  6333. /* interface ITfCompartmentMgr */
  6334. /* [unique][uuid][object] */
  6335. EXTERN_C const IID IID_ITfCompartmentMgr;
  6336. #if defined(__cplusplus) && !defined(CINTERFACE)
  6337. MIDL_INTERFACE("7dcf57ac-18ad-438b-824d-979bffb74b7c")
  6338. ITfCompartmentMgr : public IUnknown
  6339. {
  6340. public:
  6341. virtual HRESULT STDMETHODCALLTYPE GetCompartment(
  6342. /* [in] */ REFGUID rguid,
  6343. /* [out] */ ITfCompartment **ppcomp) = 0;
  6344. virtual HRESULT STDMETHODCALLTYPE ClearCompartment(
  6345. /* [in] */ TfClientId tid,
  6346. /* [in] */ REFGUID rguid) = 0;
  6347. virtual HRESULT STDMETHODCALLTYPE EnumCompartments(
  6348. /* [out] */ IEnumGUID **ppEnum) = 0;
  6349. };
  6350. #else /* C style interface */
  6351. typedef struct ITfCompartmentMgrVtbl
  6352. {
  6353. BEGIN_INTERFACE
  6354. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  6355. ITfCompartmentMgr * This,
  6356. /* [in] */ REFIID riid,
  6357. /* [iid_is][out] */ void **ppvObject);
  6358. ULONG ( STDMETHODCALLTYPE *AddRef )(
  6359. ITfCompartmentMgr * This);
  6360. ULONG ( STDMETHODCALLTYPE *Release )(
  6361. ITfCompartmentMgr * This);
  6362. HRESULT ( STDMETHODCALLTYPE *GetCompartment )(
  6363. ITfCompartmentMgr * This,
  6364. /* [in] */ REFGUID rguid,
  6365. /* [out] */ ITfCompartment **ppcomp);
  6366. HRESULT ( STDMETHODCALLTYPE *ClearCompartment )(
  6367. ITfCompartmentMgr * This,
  6368. /* [in] */ TfClientId tid,
  6369. /* [in] */ REFGUID rguid);
  6370. HRESULT ( STDMETHODCALLTYPE *EnumCompartments )(
  6371. ITfCompartmentMgr * This,
  6372. /* [out] */ IEnumGUID **ppEnum);
  6373. END_INTERFACE
  6374. } ITfCompartmentMgrVtbl;
  6375. interface ITfCompartmentMgr
  6376. {
  6377. CONST_VTBL struct ITfCompartmentMgrVtbl *lpVtbl;
  6378. };
  6379. #ifdef COBJMACROS
  6380. #define ITfCompartmentMgr_QueryInterface(This,riid,ppvObject) \
  6381. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  6382. #define ITfCompartmentMgr_AddRef(This) \
  6383. (This)->lpVtbl -> AddRef(This)
  6384. #define ITfCompartmentMgr_Release(This) \
  6385. (This)->lpVtbl -> Release(This)
  6386. #define ITfCompartmentMgr_GetCompartment(This,rguid,ppcomp) \
  6387. (This)->lpVtbl -> GetCompartment(This,rguid,ppcomp)
  6388. #define ITfCompartmentMgr_ClearCompartment(This,tid,rguid) \
  6389. (This)->lpVtbl -> ClearCompartment(This,tid,rguid)
  6390. #define ITfCompartmentMgr_EnumCompartments(This,ppEnum) \
  6391. (This)->lpVtbl -> EnumCompartments(This,ppEnum)
  6392. #endif /* COBJMACROS */
  6393. #endif /* C style interface */
  6394. HRESULT STDMETHODCALLTYPE ITfCompartmentMgr_GetCompartment_Proxy(
  6395. ITfCompartmentMgr * This,
  6396. /* [in] */ REFGUID rguid,
  6397. /* [out] */ ITfCompartment **ppcomp);
  6398. void __RPC_STUB ITfCompartmentMgr_GetCompartment_Stub(
  6399. IRpcStubBuffer *This,
  6400. IRpcChannelBuffer *_pRpcChannelBuffer,
  6401. PRPC_MESSAGE _pRpcMessage,
  6402. DWORD *_pdwStubPhase);
  6403. HRESULT STDMETHODCALLTYPE ITfCompartmentMgr_ClearCompartment_Proxy(
  6404. ITfCompartmentMgr * This,
  6405. /* [in] */ TfClientId tid,
  6406. /* [in] */ REFGUID rguid);
  6407. void __RPC_STUB ITfCompartmentMgr_ClearCompartment_Stub(
  6408. IRpcStubBuffer *This,
  6409. IRpcChannelBuffer *_pRpcChannelBuffer,
  6410. PRPC_MESSAGE _pRpcMessage,
  6411. DWORD *_pdwStubPhase);
  6412. HRESULT STDMETHODCALLTYPE ITfCompartmentMgr_EnumCompartments_Proxy(
  6413. ITfCompartmentMgr * This,
  6414. /* [out] */ IEnumGUID **ppEnum);
  6415. void __RPC_STUB ITfCompartmentMgr_EnumCompartments_Stub(
  6416. IRpcStubBuffer *This,
  6417. IRpcChannelBuffer *_pRpcChannelBuffer,
  6418. PRPC_MESSAGE _pRpcMessage,
  6419. DWORD *_pdwStubPhase);
  6420. #endif /* __ITfCompartmentMgr_INTERFACE_DEFINED__ */
  6421. #ifndef __ITfFunction_INTERFACE_DEFINED__
  6422. #define __ITfFunction_INTERFACE_DEFINED__
  6423. /* interface ITfFunction */
  6424. /* [unique][uuid][object] */
  6425. EXTERN_C const IID IID_ITfFunction;
  6426. #if defined(__cplusplus) && !defined(CINTERFACE)
  6427. MIDL_INTERFACE("db593490-098f-11d3-8df0-00105a2799b5")
  6428. ITfFunction : public IUnknown
  6429. {
  6430. public:
  6431. virtual HRESULT STDMETHODCALLTYPE GetDisplayName(
  6432. /* [out] */ BSTR *pbstrName) = 0;
  6433. };
  6434. #else /* C style interface */
  6435. typedef struct ITfFunctionVtbl
  6436. {
  6437. BEGIN_INTERFACE
  6438. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  6439. ITfFunction * This,
  6440. /* [in] */ REFIID riid,
  6441. /* [iid_is][out] */ void **ppvObject);
  6442. ULONG ( STDMETHODCALLTYPE *AddRef )(
  6443. ITfFunction * This);
  6444. ULONG ( STDMETHODCALLTYPE *Release )(
  6445. ITfFunction * This);
  6446. HRESULT ( STDMETHODCALLTYPE *GetDisplayName )(
  6447. ITfFunction * This,
  6448. /* [out] */ BSTR *pbstrName);
  6449. END_INTERFACE
  6450. } ITfFunctionVtbl;
  6451. interface ITfFunction
  6452. {
  6453. CONST_VTBL struct ITfFunctionVtbl *lpVtbl;
  6454. };
  6455. #ifdef COBJMACROS
  6456. #define ITfFunction_QueryInterface(This,riid,ppvObject) \
  6457. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  6458. #define ITfFunction_AddRef(This) \
  6459. (This)->lpVtbl -> AddRef(This)
  6460. #define ITfFunction_Release(This) \
  6461. (This)->lpVtbl -> Release(This)
  6462. #define ITfFunction_GetDisplayName(This,pbstrName) \
  6463. (This)->lpVtbl -> GetDisplayName(This,pbstrName)
  6464. #endif /* COBJMACROS */
  6465. #endif /* C style interface */
  6466. HRESULT STDMETHODCALLTYPE ITfFunction_GetDisplayName_Proxy(
  6467. ITfFunction * This,
  6468. /* [out] */ BSTR *pbstrName);
  6469. void __RPC_STUB ITfFunction_GetDisplayName_Stub(
  6470. IRpcStubBuffer *This,
  6471. IRpcChannelBuffer *_pRpcChannelBuffer,
  6472. PRPC_MESSAGE _pRpcMessage,
  6473. DWORD *_pdwStubPhase);
  6474. #endif /* __ITfFunction_INTERFACE_DEFINED__ */
  6475. #ifndef __ITfFunctionProvider_INTERFACE_DEFINED__
  6476. #define __ITfFunctionProvider_INTERFACE_DEFINED__
  6477. /* interface ITfFunctionProvider */
  6478. /* [unique][uuid][object] */
  6479. EXTERN_C const IID IID_ITfFunctionProvider;
  6480. #if defined(__cplusplus) && !defined(CINTERFACE)
  6481. MIDL_INTERFACE("101d6610-0990-11d3-8df0-00105a2799b5")
  6482. ITfFunctionProvider : public IUnknown
  6483. {
  6484. public:
  6485. virtual HRESULT STDMETHODCALLTYPE GetType(
  6486. /* [out] */ GUID *pguid) = 0;
  6487. virtual HRESULT STDMETHODCALLTYPE GetDescription(
  6488. /* [out] */ BSTR *pbstrDesc) = 0;
  6489. virtual HRESULT STDMETHODCALLTYPE GetFunction(
  6490. /* [in] */ REFGUID rguid,
  6491. /* [in] */ REFIID riid,
  6492. /* [iid_is][out] */ IUnknown **ppunk) = 0;
  6493. };
  6494. #else /* C style interface */
  6495. typedef struct ITfFunctionProviderVtbl
  6496. {
  6497. BEGIN_INTERFACE
  6498. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  6499. ITfFunctionProvider * This,
  6500. /* [in] */ REFIID riid,
  6501. /* [iid_is][out] */ void **ppvObject);
  6502. ULONG ( STDMETHODCALLTYPE *AddRef )(
  6503. ITfFunctionProvider * This);
  6504. ULONG ( STDMETHODCALLTYPE *Release )(
  6505. ITfFunctionProvider * This);
  6506. HRESULT ( STDMETHODCALLTYPE *GetType )(
  6507. ITfFunctionProvider * This,
  6508. /* [out] */ GUID *pguid);
  6509. HRESULT ( STDMETHODCALLTYPE *GetDescription )(
  6510. ITfFunctionProvider * This,
  6511. /* [out] */ BSTR *pbstrDesc);
  6512. HRESULT ( STDMETHODCALLTYPE *GetFunction )(
  6513. ITfFunctionProvider * This,
  6514. /* [in] */ REFGUID rguid,
  6515. /* [in] */ REFIID riid,
  6516. /* [iid_is][out] */ IUnknown **ppunk);
  6517. END_INTERFACE
  6518. } ITfFunctionProviderVtbl;
  6519. interface ITfFunctionProvider
  6520. {
  6521. CONST_VTBL struct ITfFunctionProviderVtbl *lpVtbl;
  6522. };
  6523. #ifdef COBJMACROS
  6524. #define ITfFunctionProvider_QueryInterface(This,riid,ppvObject) \
  6525. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  6526. #define ITfFunctionProvider_AddRef(This) \
  6527. (This)->lpVtbl -> AddRef(This)
  6528. #define ITfFunctionProvider_Release(This) \
  6529. (This)->lpVtbl -> Release(This)
  6530. #define ITfFunctionProvider_GetType(This,pguid) \
  6531. (This)->lpVtbl -> GetType(This,pguid)
  6532. #define ITfFunctionProvider_GetDescription(This,pbstrDesc) \
  6533. (This)->lpVtbl -> GetDescription(This,pbstrDesc)
  6534. #define ITfFunctionProvider_GetFunction(This,rguid,riid,ppunk) \
  6535. (This)->lpVtbl -> GetFunction(This,rguid,riid,ppunk)
  6536. #endif /* COBJMACROS */
  6537. #endif /* C style interface */
  6538. HRESULT STDMETHODCALLTYPE ITfFunctionProvider_GetType_Proxy(
  6539. ITfFunctionProvider * This,
  6540. /* [out] */ GUID *pguid);
  6541. void __RPC_STUB ITfFunctionProvider_GetType_Stub(
  6542. IRpcStubBuffer *This,
  6543. IRpcChannelBuffer *_pRpcChannelBuffer,
  6544. PRPC_MESSAGE _pRpcMessage,
  6545. DWORD *_pdwStubPhase);
  6546. HRESULT STDMETHODCALLTYPE ITfFunctionProvider_GetDescription_Proxy(
  6547. ITfFunctionProvider * This,
  6548. /* [out] */ BSTR *pbstrDesc);
  6549. void __RPC_STUB ITfFunctionProvider_GetDescription_Stub(
  6550. IRpcStubBuffer *This,
  6551. IRpcChannelBuffer *_pRpcChannelBuffer,
  6552. PRPC_MESSAGE _pRpcMessage,
  6553. DWORD *_pdwStubPhase);
  6554. HRESULT STDMETHODCALLTYPE ITfFunctionProvider_GetFunction_Proxy(
  6555. ITfFunctionProvider * This,
  6556. /* [in] */ REFGUID rguid,
  6557. /* [in] */ REFIID riid,
  6558. /* [iid_is][out] */ IUnknown **ppunk);
  6559. void __RPC_STUB ITfFunctionProvider_GetFunction_Stub(
  6560. IRpcStubBuffer *This,
  6561. IRpcChannelBuffer *_pRpcChannelBuffer,
  6562. PRPC_MESSAGE _pRpcMessage,
  6563. DWORD *_pdwStubPhase);
  6564. #endif /* __ITfFunctionProvider_INTERFACE_DEFINED__ */
  6565. #ifndef __IEnumTfFunctionProviders_INTERFACE_DEFINED__
  6566. #define __IEnumTfFunctionProviders_INTERFACE_DEFINED__
  6567. /* interface IEnumTfFunctionProviders */
  6568. /* [unique][uuid][object] */
  6569. EXTERN_C const IID IID_IEnumTfFunctionProviders;
  6570. #if defined(__cplusplus) && !defined(CINTERFACE)
  6571. MIDL_INTERFACE("e4b24db0-0990-11d3-8df0-00105a2799b5")
  6572. IEnumTfFunctionProviders : public IUnknown
  6573. {
  6574. public:
  6575. virtual HRESULT STDMETHODCALLTYPE Clone(
  6576. /* [out] */ IEnumTfFunctionProviders **ppEnum) = 0;
  6577. virtual HRESULT STDMETHODCALLTYPE Next(
  6578. /* [in] */ ULONG ulCount,
  6579. /* [length_is][size_is][out] */ ITfFunctionProvider **ppCmdobj,
  6580. /* [out] */ ULONG *pcFetch) = 0;
  6581. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  6582. virtual HRESULT STDMETHODCALLTYPE Skip(
  6583. /* [in] */ ULONG ulCount) = 0;
  6584. };
  6585. #else /* C style interface */
  6586. typedef struct IEnumTfFunctionProvidersVtbl
  6587. {
  6588. BEGIN_INTERFACE
  6589. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  6590. IEnumTfFunctionProviders * This,
  6591. /* [in] */ REFIID riid,
  6592. /* [iid_is][out] */ void **ppvObject);
  6593. ULONG ( STDMETHODCALLTYPE *AddRef )(
  6594. IEnumTfFunctionProviders * This);
  6595. ULONG ( STDMETHODCALLTYPE *Release )(
  6596. IEnumTfFunctionProviders * This);
  6597. HRESULT ( STDMETHODCALLTYPE *Clone )(
  6598. IEnumTfFunctionProviders * This,
  6599. /* [out] */ IEnumTfFunctionProviders **ppEnum);
  6600. HRESULT ( STDMETHODCALLTYPE *Next )(
  6601. IEnumTfFunctionProviders * This,
  6602. /* [in] */ ULONG ulCount,
  6603. /* [length_is][size_is][out] */ ITfFunctionProvider **ppCmdobj,
  6604. /* [out] */ ULONG *pcFetch);
  6605. HRESULT ( STDMETHODCALLTYPE *Reset )(
  6606. IEnumTfFunctionProviders * This);
  6607. HRESULT ( STDMETHODCALLTYPE *Skip )(
  6608. IEnumTfFunctionProviders * This,
  6609. /* [in] */ ULONG ulCount);
  6610. END_INTERFACE
  6611. } IEnumTfFunctionProvidersVtbl;
  6612. interface IEnumTfFunctionProviders
  6613. {
  6614. CONST_VTBL struct IEnumTfFunctionProvidersVtbl *lpVtbl;
  6615. };
  6616. #ifdef COBJMACROS
  6617. #define IEnumTfFunctionProviders_QueryInterface(This,riid,ppvObject) \
  6618. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  6619. #define IEnumTfFunctionProviders_AddRef(This) \
  6620. (This)->lpVtbl -> AddRef(This)
  6621. #define IEnumTfFunctionProviders_Release(This) \
  6622. (This)->lpVtbl -> Release(This)
  6623. #define IEnumTfFunctionProviders_Clone(This,ppEnum) \
  6624. (This)->lpVtbl -> Clone(This,ppEnum)
  6625. #define IEnumTfFunctionProviders_Next(This,ulCount,ppCmdobj,pcFetch) \
  6626. (This)->lpVtbl -> Next(This,ulCount,ppCmdobj,pcFetch)
  6627. #define IEnumTfFunctionProviders_Reset(This) \
  6628. (This)->lpVtbl -> Reset(This)
  6629. #define IEnumTfFunctionProviders_Skip(This,ulCount) \
  6630. (This)->lpVtbl -> Skip(This,ulCount)
  6631. #endif /* COBJMACROS */
  6632. #endif /* C style interface */
  6633. HRESULT STDMETHODCALLTYPE IEnumTfFunctionProviders_Clone_Proxy(
  6634. IEnumTfFunctionProviders * This,
  6635. /* [out] */ IEnumTfFunctionProviders **ppEnum);
  6636. void __RPC_STUB IEnumTfFunctionProviders_Clone_Stub(
  6637. IRpcStubBuffer *This,
  6638. IRpcChannelBuffer *_pRpcChannelBuffer,
  6639. PRPC_MESSAGE _pRpcMessage,
  6640. DWORD *_pdwStubPhase);
  6641. HRESULT STDMETHODCALLTYPE IEnumTfFunctionProviders_Next_Proxy(
  6642. IEnumTfFunctionProviders * This,
  6643. /* [in] */ ULONG ulCount,
  6644. /* [length_is][size_is][out] */ ITfFunctionProvider **ppCmdobj,
  6645. /* [out] */ ULONG *pcFetch);
  6646. void __RPC_STUB IEnumTfFunctionProviders_Next_Stub(
  6647. IRpcStubBuffer *This,
  6648. IRpcChannelBuffer *_pRpcChannelBuffer,
  6649. PRPC_MESSAGE _pRpcMessage,
  6650. DWORD *_pdwStubPhase);
  6651. HRESULT STDMETHODCALLTYPE IEnumTfFunctionProviders_Reset_Proxy(
  6652. IEnumTfFunctionProviders * This);
  6653. void __RPC_STUB IEnumTfFunctionProviders_Reset_Stub(
  6654. IRpcStubBuffer *This,
  6655. IRpcChannelBuffer *_pRpcChannelBuffer,
  6656. PRPC_MESSAGE _pRpcMessage,
  6657. DWORD *_pdwStubPhase);
  6658. HRESULT STDMETHODCALLTYPE IEnumTfFunctionProviders_Skip_Proxy(
  6659. IEnumTfFunctionProviders * This,
  6660. /* [in] */ ULONG ulCount);
  6661. void __RPC_STUB IEnumTfFunctionProviders_Skip_Stub(
  6662. IRpcStubBuffer *This,
  6663. IRpcChannelBuffer *_pRpcChannelBuffer,
  6664. PRPC_MESSAGE _pRpcMessage,
  6665. DWORD *_pdwStubPhase);
  6666. #endif /* __IEnumTfFunctionProviders_INTERFACE_DEFINED__ */
  6667. #ifndef __ITfInputProcessorProfiles_INTERFACE_DEFINED__
  6668. #define __ITfInputProcessorProfiles_INTERFACE_DEFINED__
  6669. /* interface ITfInputProcessorProfiles */
  6670. /* [unique][uuid][local][object] */
  6671. EXTERN_C const IID IID_ITfInputProcessorProfiles;
  6672. #if defined(__cplusplus) && !defined(CINTERFACE)
  6673. MIDL_INTERFACE("1F02B6C5-7842-4EE6-8A0B-9A24183A95CA")
  6674. ITfInputProcessorProfiles : public IUnknown
  6675. {
  6676. public:
  6677. virtual HRESULT STDMETHODCALLTYPE Register(
  6678. /* [in] */ REFCLSID rclsid) = 0;
  6679. virtual HRESULT STDMETHODCALLTYPE Unregister(
  6680. /* [in] */ REFCLSID rclsid) = 0;
  6681. virtual HRESULT STDMETHODCALLTYPE AddLanguageProfile(
  6682. /* [in] */ REFCLSID rclsid,
  6683. /* [in] */ LANGID langid,
  6684. /* [in] */ REFGUID guidProfile,
  6685. /* [size_is][in] */ const WCHAR *pchDesc,
  6686. /* [in] */ ULONG cchDesc,
  6687. /* [size_is][in] */ const WCHAR *pchIconFile,
  6688. /* [in] */ ULONG cchFile,
  6689. /* [in] */ ULONG uIconIndex) = 0;
  6690. virtual HRESULT STDMETHODCALLTYPE RemoveLanguageProfile(
  6691. /* [in] */ REFCLSID rclsid,
  6692. /* [in] */ LANGID langid,
  6693. /* [in] */ REFGUID guidProfile) = 0;
  6694. virtual HRESULT STDMETHODCALLTYPE EnumInputProcessorInfo(
  6695. /* [out] */ IEnumGUID **ppEnum) = 0;
  6696. virtual HRESULT STDMETHODCALLTYPE GetDefaultLanguageProfile(
  6697. /* [in] */ LANGID langid,
  6698. /* [in] */ REFGUID catid,
  6699. /* [out] */ CLSID *pclsid,
  6700. /* [out] */ GUID *pguidProfile) = 0;
  6701. virtual HRESULT STDMETHODCALLTYPE SetDefaultLanguageProfile(
  6702. /* [in] */ LANGID langid,
  6703. /* [in] */ REFCLSID rclsid,
  6704. /* [in] */ REFGUID guidProfiles) = 0;
  6705. virtual HRESULT STDMETHODCALLTYPE ActivateLanguageProfile(
  6706. /* [in] */ REFCLSID rclsid,
  6707. /* [in] */ LANGID langid,
  6708. /* [in] */ REFGUID guidProfiles) = 0;
  6709. virtual HRESULT STDMETHODCALLTYPE GetActiveLanguageProfile(
  6710. /* [in] */ REFCLSID rclsid,
  6711. /* [out] */ LANGID *plangid,
  6712. /* [out] */ GUID *pguidProfile) = 0;
  6713. virtual HRESULT STDMETHODCALLTYPE GetLanguageProfileDescription(
  6714. /* [in] */ REFCLSID rclsid,
  6715. /* [in] */ LANGID langid,
  6716. /* [in] */ REFGUID guidProfile,
  6717. /* [out] */ BSTR *pbstrProfile) = 0;
  6718. virtual HRESULT STDMETHODCALLTYPE GetCurrentLanguage(
  6719. /* [out] */ LANGID *plangid) = 0;
  6720. virtual HRESULT STDMETHODCALLTYPE ChangeCurrentLanguage(
  6721. /* [in] */ LANGID langid) = 0;
  6722. virtual HRESULT STDMETHODCALLTYPE GetLanguageList(
  6723. /* [out] */ LANGID **ppLangId,
  6724. /* [out] */ ULONG *pulCount) = 0;
  6725. virtual HRESULT STDMETHODCALLTYPE EnumLanguageProfiles(
  6726. /* [in] */ LANGID langid,
  6727. /* [out] */ IEnumTfLanguageProfiles **ppEnum) = 0;
  6728. virtual HRESULT STDMETHODCALLTYPE EnableLanguageProfile(
  6729. /* [in] */ REFCLSID rclsid,
  6730. /* [in] */ LANGID langid,
  6731. /* [in] */ REFGUID guidProfile,
  6732. /* [in] */ BOOL fEnable) = 0;
  6733. virtual HRESULT STDMETHODCALLTYPE IsEnabledLanguageProfile(
  6734. /* [in] */ REFCLSID rclsid,
  6735. /* [in] */ LANGID langid,
  6736. /* [in] */ REFGUID guidProfile,
  6737. /* [out] */ BOOL *pfEnable) = 0;
  6738. virtual HRESULT STDMETHODCALLTYPE EnableLanguageProfileByDefault(
  6739. /* [in] */ REFCLSID rclsid,
  6740. /* [in] */ LANGID langid,
  6741. /* [in] */ REFGUID guidProfile,
  6742. /* [in] */ BOOL fEnable) = 0;
  6743. virtual HRESULT STDMETHODCALLTYPE SubstituteKeyboardLayout(
  6744. /* [in] */ REFCLSID rclsid,
  6745. /* [in] */ LANGID langid,
  6746. /* [in] */ REFGUID guidProfile,
  6747. /* [in] */ HKL hKL) = 0;
  6748. };
  6749. #else /* C style interface */
  6750. typedef struct ITfInputProcessorProfilesVtbl
  6751. {
  6752. BEGIN_INTERFACE
  6753. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  6754. ITfInputProcessorProfiles * This,
  6755. /* [in] */ REFIID riid,
  6756. /* [iid_is][out] */ void **ppvObject);
  6757. ULONG ( STDMETHODCALLTYPE *AddRef )(
  6758. ITfInputProcessorProfiles * This);
  6759. ULONG ( STDMETHODCALLTYPE *Release )(
  6760. ITfInputProcessorProfiles * This);
  6761. HRESULT ( STDMETHODCALLTYPE *Register )(
  6762. ITfInputProcessorProfiles * This,
  6763. /* [in] */ REFCLSID rclsid);
  6764. HRESULT ( STDMETHODCALLTYPE *Unregister )(
  6765. ITfInputProcessorProfiles * This,
  6766. /* [in] */ REFCLSID rclsid);
  6767. HRESULT ( STDMETHODCALLTYPE *AddLanguageProfile )(
  6768. ITfInputProcessorProfiles * This,
  6769. /* [in] */ REFCLSID rclsid,
  6770. /* [in] */ LANGID langid,
  6771. /* [in] */ REFGUID guidProfile,
  6772. /* [size_is][in] */ const WCHAR *pchDesc,
  6773. /* [in] */ ULONG cchDesc,
  6774. /* [size_is][in] */ const WCHAR *pchIconFile,
  6775. /* [in] */ ULONG cchFile,
  6776. /* [in] */ ULONG uIconIndex);
  6777. HRESULT ( STDMETHODCALLTYPE *RemoveLanguageProfile )(
  6778. ITfInputProcessorProfiles * This,
  6779. /* [in] */ REFCLSID rclsid,
  6780. /* [in] */ LANGID langid,
  6781. /* [in] */ REFGUID guidProfile);
  6782. HRESULT ( STDMETHODCALLTYPE *EnumInputProcessorInfo )(
  6783. ITfInputProcessorProfiles * This,
  6784. /* [out] */ IEnumGUID **ppEnum);
  6785. HRESULT ( STDMETHODCALLTYPE *GetDefaultLanguageProfile )(
  6786. ITfInputProcessorProfiles * This,
  6787. /* [in] */ LANGID langid,
  6788. /* [in] */ REFGUID catid,
  6789. /* [out] */ CLSID *pclsid,
  6790. /* [out] */ GUID *pguidProfile);
  6791. HRESULT ( STDMETHODCALLTYPE *SetDefaultLanguageProfile )(
  6792. ITfInputProcessorProfiles * This,
  6793. /* [in] */ LANGID langid,
  6794. /* [in] */ REFCLSID rclsid,
  6795. /* [in] */ REFGUID guidProfiles);
  6796. HRESULT ( STDMETHODCALLTYPE *ActivateLanguageProfile )(
  6797. ITfInputProcessorProfiles * This,
  6798. /* [in] */ REFCLSID rclsid,
  6799. /* [in] */ LANGID langid,
  6800. /* [in] */ REFGUID guidProfiles);
  6801. HRESULT ( STDMETHODCALLTYPE *GetActiveLanguageProfile )(
  6802. ITfInputProcessorProfiles * This,
  6803. /* [in] */ REFCLSID rclsid,
  6804. /* [out] */ LANGID *plangid,
  6805. /* [out] */ GUID *pguidProfile);
  6806. HRESULT ( STDMETHODCALLTYPE *GetLanguageProfileDescription )(
  6807. ITfInputProcessorProfiles * This,
  6808. /* [in] */ REFCLSID rclsid,
  6809. /* [in] */ LANGID langid,
  6810. /* [in] */ REFGUID guidProfile,
  6811. /* [out] */ BSTR *pbstrProfile);
  6812. HRESULT ( STDMETHODCALLTYPE *GetCurrentLanguage )(
  6813. ITfInputProcessorProfiles * This,
  6814. /* [out] */ LANGID *plangid);
  6815. HRESULT ( STDMETHODCALLTYPE *ChangeCurrentLanguage )(
  6816. ITfInputProcessorProfiles * This,
  6817. /* [in] */ LANGID langid);
  6818. HRESULT ( STDMETHODCALLTYPE *GetLanguageList )(
  6819. ITfInputProcessorProfiles * This,
  6820. /* [out] */ LANGID **ppLangId,
  6821. /* [out] */ ULONG *pulCount);
  6822. HRESULT ( STDMETHODCALLTYPE *EnumLanguageProfiles )(
  6823. ITfInputProcessorProfiles * This,
  6824. /* [in] */ LANGID langid,
  6825. /* [out] */ IEnumTfLanguageProfiles **ppEnum);
  6826. HRESULT ( STDMETHODCALLTYPE *EnableLanguageProfile )(
  6827. ITfInputProcessorProfiles * This,
  6828. /* [in] */ REFCLSID rclsid,
  6829. /* [in] */ LANGID langid,
  6830. /* [in] */ REFGUID guidProfile,
  6831. /* [in] */ BOOL fEnable);
  6832. HRESULT ( STDMETHODCALLTYPE *IsEnabledLanguageProfile )(
  6833. ITfInputProcessorProfiles * This,
  6834. /* [in] */ REFCLSID rclsid,
  6835. /* [in] */ LANGID langid,
  6836. /* [in] */ REFGUID guidProfile,
  6837. /* [out] */ BOOL *pfEnable);
  6838. HRESULT ( STDMETHODCALLTYPE *EnableLanguageProfileByDefault )(
  6839. ITfInputProcessorProfiles * This,
  6840. /* [in] */ REFCLSID rclsid,
  6841. /* [in] */ LANGID langid,
  6842. /* [in] */ REFGUID guidProfile,
  6843. /* [in] */ BOOL fEnable);
  6844. HRESULT ( STDMETHODCALLTYPE *SubstituteKeyboardLayout )(
  6845. ITfInputProcessorProfiles * This,
  6846. /* [in] */ REFCLSID rclsid,
  6847. /* [in] */ LANGID langid,
  6848. /* [in] */ REFGUID guidProfile,
  6849. /* [in] */ HKL hKL);
  6850. END_INTERFACE
  6851. } ITfInputProcessorProfilesVtbl;
  6852. interface ITfInputProcessorProfiles
  6853. {
  6854. CONST_VTBL struct ITfInputProcessorProfilesVtbl *lpVtbl;
  6855. };
  6856. #ifdef COBJMACROS
  6857. #define ITfInputProcessorProfiles_QueryInterface(This,riid,ppvObject) \
  6858. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  6859. #define ITfInputProcessorProfiles_AddRef(This) \
  6860. (This)->lpVtbl -> AddRef(This)
  6861. #define ITfInputProcessorProfiles_Release(This) \
  6862. (This)->lpVtbl -> Release(This)
  6863. #define ITfInputProcessorProfiles_Register(This,rclsid) \
  6864. (This)->lpVtbl -> Register(This,rclsid)
  6865. #define ITfInputProcessorProfiles_Unregister(This,rclsid) \
  6866. (This)->lpVtbl -> Unregister(This,rclsid)
  6867. #define ITfInputProcessorProfiles_AddLanguageProfile(This,rclsid,langid,guidProfile,pchDesc,cchDesc,pchIconFile,cchFile,uIconIndex) \
  6868. (This)->lpVtbl -> AddLanguageProfile(This,rclsid,langid,guidProfile,pchDesc,cchDesc,pchIconFile,cchFile,uIconIndex)
  6869. #define ITfInputProcessorProfiles_RemoveLanguageProfile(This,rclsid,langid,guidProfile) \
  6870. (This)->lpVtbl -> RemoveLanguageProfile(This,rclsid,langid,guidProfile)
  6871. #define ITfInputProcessorProfiles_EnumInputProcessorInfo(This,ppEnum) \
  6872. (This)->lpVtbl -> EnumInputProcessorInfo(This,ppEnum)
  6873. #define ITfInputProcessorProfiles_GetDefaultLanguageProfile(This,langid,catid,pclsid,pguidProfile) \
  6874. (This)->lpVtbl -> GetDefaultLanguageProfile(This,langid,catid,pclsid,pguidProfile)
  6875. #define ITfInputProcessorProfiles_SetDefaultLanguageProfile(This,langid,rclsid,guidProfiles) \
  6876. (This)->lpVtbl -> SetDefaultLanguageProfile(This,langid,rclsid,guidProfiles)
  6877. #define ITfInputProcessorProfiles_ActivateLanguageProfile(This,rclsid,langid,guidProfiles) \
  6878. (This)->lpVtbl -> ActivateLanguageProfile(This,rclsid,langid,guidProfiles)
  6879. #define ITfInputProcessorProfiles_GetActiveLanguageProfile(This,rclsid,plangid,pguidProfile) \
  6880. (This)->lpVtbl -> GetActiveLanguageProfile(This,rclsid,plangid,pguidProfile)
  6881. #define ITfInputProcessorProfiles_GetLanguageProfileDescription(This,rclsid,langid,guidProfile,pbstrProfile) \
  6882. (This)->lpVtbl -> GetLanguageProfileDescription(This,rclsid,langid,guidProfile,pbstrProfile)
  6883. #define ITfInputProcessorProfiles_GetCurrentLanguage(This,plangid) \
  6884. (This)->lpVtbl -> GetCurrentLanguage(This,plangid)
  6885. #define ITfInputProcessorProfiles_ChangeCurrentLanguage(This,langid) \
  6886. (This)->lpVtbl -> ChangeCurrentLanguage(This,langid)
  6887. #define ITfInputProcessorProfiles_GetLanguageList(This,ppLangId,pulCount) \
  6888. (This)->lpVtbl -> GetLanguageList(This,ppLangId,pulCount)
  6889. #define ITfInputProcessorProfiles_EnumLanguageProfiles(This,langid,ppEnum) \
  6890. (This)->lpVtbl -> EnumLanguageProfiles(This,langid,ppEnum)
  6891. #define ITfInputProcessorProfiles_EnableLanguageProfile(This,rclsid,langid,guidProfile,fEnable) \
  6892. (This)->lpVtbl -> EnableLanguageProfile(This,rclsid,langid,guidProfile,fEnable)
  6893. #define ITfInputProcessorProfiles_IsEnabledLanguageProfile(This,rclsid,langid,guidProfile,pfEnable) \
  6894. (This)->lpVtbl -> IsEnabledLanguageProfile(This,rclsid,langid,guidProfile,pfEnable)
  6895. #define ITfInputProcessorProfiles_EnableLanguageProfileByDefault(This,rclsid,langid,guidProfile,fEnable) \
  6896. (This)->lpVtbl -> EnableLanguageProfileByDefault(This,rclsid,langid,guidProfile,fEnable)
  6897. #define ITfInputProcessorProfiles_SubstituteKeyboardLayout(This,rclsid,langid,guidProfile,hKL) \
  6898. (This)->lpVtbl -> SubstituteKeyboardLayout(This,rclsid,langid,guidProfile,hKL)
  6899. #endif /* COBJMACROS */
  6900. #endif /* C style interface */
  6901. HRESULT STDMETHODCALLTYPE ITfInputProcessorProfiles_Register_Proxy(
  6902. ITfInputProcessorProfiles * This,
  6903. /* [in] */ REFCLSID rclsid);
  6904. void __RPC_STUB ITfInputProcessorProfiles_Register_Stub(
  6905. IRpcStubBuffer *This,
  6906. IRpcChannelBuffer *_pRpcChannelBuffer,
  6907. PRPC_MESSAGE _pRpcMessage,
  6908. DWORD *_pdwStubPhase);
  6909. HRESULT STDMETHODCALLTYPE ITfInputProcessorProfiles_Unregister_Proxy(
  6910. ITfInputProcessorProfiles * This,
  6911. /* [in] */ REFCLSID rclsid);
  6912. void __RPC_STUB ITfInputProcessorProfiles_Unregister_Stub(
  6913. IRpcStubBuffer *This,
  6914. IRpcChannelBuffer *_pRpcChannelBuffer,
  6915. PRPC_MESSAGE _pRpcMessage,
  6916. DWORD *_pdwStubPhase);
  6917. HRESULT STDMETHODCALLTYPE ITfInputProcessorProfiles_AddLanguageProfile_Proxy(
  6918. ITfInputProcessorProfiles * This,
  6919. /* [in] */ REFCLSID rclsid,
  6920. /* [in] */ LANGID langid,
  6921. /* [in] */ REFGUID guidProfile,
  6922. /* [size_is][in] */ const WCHAR *pchDesc,
  6923. /* [in] */ ULONG cchDesc,
  6924. /* [size_is][in] */ const WCHAR *pchIconFile,
  6925. /* [in] */ ULONG cchFile,
  6926. /* [in] */ ULONG uIconIndex);
  6927. void __RPC_STUB ITfInputProcessorProfiles_AddLanguageProfile_Stub(
  6928. IRpcStubBuffer *This,
  6929. IRpcChannelBuffer *_pRpcChannelBuffer,
  6930. PRPC_MESSAGE _pRpcMessage,
  6931. DWORD *_pdwStubPhase);
  6932. HRESULT STDMETHODCALLTYPE ITfInputProcessorProfiles_RemoveLanguageProfile_Proxy(
  6933. ITfInputProcessorProfiles * This,
  6934. /* [in] */ REFCLSID rclsid,
  6935. /* [in] */ LANGID langid,
  6936. /* [in] */ REFGUID guidProfile);
  6937. void __RPC_STUB ITfInputProcessorProfiles_RemoveLanguageProfile_Stub(
  6938. IRpcStubBuffer *This,
  6939. IRpcChannelBuffer *_pRpcChannelBuffer,
  6940. PRPC_MESSAGE _pRpcMessage,
  6941. DWORD *_pdwStubPhase);
  6942. HRESULT STDMETHODCALLTYPE ITfInputProcessorProfiles_EnumInputProcessorInfo_Proxy(
  6943. ITfInputProcessorProfiles * This,
  6944. /* [out] */ IEnumGUID **ppEnum);
  6945. void __RPC_STUB ITfInputProcessorProfiles_EnumInputProcessorInfo_Stub(
  6946. IRpcStubBuffer *This,
  6947. IRpcChannelBuffer *_pRpcChannelBuffer,
  6948. PRPC_MESSAGE _pRpcMessage,
  6949. DWORD *_pdwStubPhase);
  6950. HRESULT STDMETHODCALLTYPE ITfInputProcessorProfiles_GetDefaultLanguageProfile_Proxy(
  6951. ITfInputProcessorProfiles * This,
  6952. /* [in] */ LANGID langid,
  6953. /* [in] */ REFGUID catid,
  6954. /* [out] */ CLSID *pclsid,
  6955. /* [out] */ GUID *pguidProfile);
  6956. void __RPC_STUB ITfInputProcessorProfiles_GetDefaultLanguageProfile_Stub(
  6957. IRpcStubBuffer *This,
  6958. IRpcChannelBuffer *_pRpcChannelBuffer,
  6959. PRPC_MESSAGE _pRpcMessage,
  6960. DWORD *_pdwStubPhase);
  6961. HRESULT STDMETHODCALLTYPE ITfInputProcessorProfiles_SetDefaultLanguageProfile_Proxy(
  6962. ITfInputProcessorProfiles * This,
  6963. /* [in] */ LANGID langid,
  6964. /* [in] */ REFCLSID rclsid,
  6965. /* [in] */ REFGUID guidProfiles);
  6966. void __RPC_STUB ITfInputProcessorProfiles_SetDefaultLanguageProfile_Stub(
  6967. IRpcStubBuffer *This,
  6968. IRpcChannelBuffer *_pRpcChannelBuffer,
  6969. PRPC_MESSAGE _pRpcMessage,
  6970. DWORD *_pdwStubPhase);
  6971. HRESULT STDMETHODCALLTYPE ITfInputProcessorProfiles_ActivateLanguageProfile_Proxy(
  6972. ITfInputProcessorProfiles * This,
  6973. /* [in] */ REFCLSID rclsid,
  6974. /* [in] */ LANGID langid,
  6975. /* [in] */ REFGUID guidProfiles);
  6976. void __RPC_STUB ITfInputProcessorProfiles_ActivateLanguageProfile_Stub(
  6977. IRpcStubBuffer *This,
  6978. IRpcChannelBuffer *_pRpcChannelBuffer,
  6979. PRPC_MESSAGE _pRpcMessage,
  6980. DWORD *_pdwStubPhase);
  6981. HRESULT STDMETHODCALLTYPE ITfInputProcessorProfiles_GetActiveLanguageProfile_Proxy(
  6982. ITfInputProcessorProfiles * This,
  6983. /* [in] */ REFCLSID rclsid,
  6984. /* [out] */ LANGID *plangid,
  6985. /* [out] */ GUID *pguidProfile);
  6986. void __RPC_STUB ITfInputProcessorProfiles_GetActiveLanguageProfile_Stub(
  6987. IRpcStubBuffer *This,
  6988. IRpcChannelBuffer *_pRpcChannelBuffer,
  6989. PRPC_MESSAGE _pRpcMessage,
  6990. DWORD *_pdwStubPhase);
  6991. HRESULT STDMETHODCALLTYPE ITfInputProcessorProfiles_GetLanguageProfileDescription_Proxy(
  6992. ITfInputProcessorProfiles * This,
  6993. /* [in] */ REFCLSID rclsid,
  6994. /* [in] */ LANGID langid,
  6995. /* [in] */ REFGUID guidProfile,
  6996. /* [out] */ BSTR *pbstrProfile);
  6997. void __RPC_STUB ITfInputProcessorProfiles_GetLanguageProfileDescription_Stub(
  6998. IRpcStubBuffer *This,
  6999. IRpcChannelBuffer *_pRpcChannelBuffer,
  7000. PRPC_MESSAGE _pRpcMessage,
  7001. DWORD *_pdwStubPhase);
  7002. HRESULT STDMETHODCALLTYPE ITfInputProcessorProfiles_GetCurrentLanguage_Proxy(
  7003. ITfInputProcessorProfiles * This,
  7004. /* [out] */ LANGID *plangid);
  7005. void __RPC_STUB ITfInputProcessorProfiles_GetCurrentLanguage_Stub(
  7006. IRpcStubBuffer *This,
  7007. IRpcChannelBuffer *_pRpcChannelBuffer,
  7008. PRPC_MESSAGE _pRpcMessage,
  7009. DWORD *_pdwStubPhase);
  7010. HRESULT STDMETHODCALLTYPE ITfInputProcessorProfiles_ChangeCurrentLanguage_Proxy(
  7011. ITfInputProcessorProfiles * This,
  7012. /* [in] */ LANGID langid);
  7013. void __RPC_STUB ITfInputProcessorProfiles_ChangeCurrentLanguage_Stub(
  7014. IRpcStubBuffer *This,
  7015. IRpcChannelBuffer *_pRpcChannelBuffer,
  7016. PRPC_MESSAGE _pRpcMessage,
  7017. DWORD *_pdwStubPhase);
  7018. HRESULT STDMETHODCALLTYPE ITfInputProcessorProfiles_GetLanguageList_Proxy(
  7019. ITfInputProcessorProfiles * This,
  7020. /* [out] */ LANGID **ppLangId,
  7021. /* [out] */ ULONG *pulCount);
  7022. void __RPC_STUB ITfInputProcessorProfiles_GetLanguageList_Stub(
  7023. IRpcStubBuffer *This,
  7024. IRpcChannelBuffer *_pRpcChannelBuffer,
  7025. PRPC_MESSAGE _pRpcMessage,
  7026. DWORD *_pdwStubPhase);
  7027. HRESULT STDMETHODCALLTYPE ITfInputProcessorProfiles_EnumLanguageProfiles_Proxy(
  7028. ITfInputProcessorProfiles * This,
  7029. /* [in] */ LANGID langid,
  7030. /* [out] */ IEnumTfLanguageProfiles **ppEnum);
  7031. void __RPC_STUB ITfInputProcessorProfiles_EnumLanguageProfiles_Stub(
  7032. IRpcStubBuffer *This,
  7033. IRpcChannelBuffer *_pRpcChannelBuffer,
  7034. PRPC_MESSAGE _pRpcMessage,
  7035. DWORD *_pdwStubPhase);
  7036. HRESULT STDMETHODCALLTYPE ITfInputProcessorProfiles_EnableLanguageProfile_Proxy(
  7037. ITfInputProcessorProfiles * This,
  7038. /* [in] */ REFCLSID rclsid,
  7039. /* [in] */ LANGID langid,
  7040. /* [in] */ REFGUID guidProfile,
  7041. /* [in] */ BOOL fEnable);
  7042. void __RPC_STUB ITfInputProcessorProfiles_EnableLanguageProfile_Stub(
  7043. IRpcStubBuffer *This,
  7044. IRpcChannelBuffer *_pRpcChannelBuffer,
  7045. PRPC_MESSAGE _pRpcMessage,
  7046. DWORD *_pdwStubPhase);
  7047. HRESULT STDMETHODCALLTYPE ITfInputProcessorProfiles_IsEnabledLanguageProfile_Proxy(
  7048. ITfInputProcessorProfiles * This,
  7049. /* [in] */ REFCLSID rclsid,
  7050. /* [in] */ LANGID langid,
  7051. /* [in] */ REFGUID guidProfile,
  7052. /* [out] */ BOOL *pfEnable);
  7053. void __RPC_STUB ITfInputProcessorProfiles_IsEnabledLanguageProfile_Stub(
  7054. IRpcStubBuffer *This,
  7055. IRpcChannelBuffer *_pRpcChannelBuffer,
  7056. PRPC_MESSAGE _pRpcMessage,
  7057. DWORD *_pdwStubPhase);
  7058. HRESULT STDMETHODCALLTYPE ITfInputProcessorProfiles_EnableLanguageProfileByDefault_Proxy(
  7059. ITfInputProcessorProfiles * This,
  7060. /* [in] */ REFCLSID rclsid,
  7061. /* [in] */ LANGID langid,
  7062. /* [in] */ REFGUID guidProfile,
  7063. /* [in] */ BOOL fEnable);
  7064. void __RPC_STUB ITfInputProcessorProfiles_EnableLanguageProfileByDefault_Stub(
  7065. IRpcStubBuffer *This,
  7066. IRpcChannelBuffer *_pRpcChannelBuffer,
  7067. PRPC_MESSAGE _pRpcMessage,
  7068. DWORD *_pdwStubPhase);
  7069. HRESULT STDMETHODCALLTYPE ITfInputProcessorProfiles_SubstituteKeyboardLayout_Proxy(
  7070. ITfInputProcessorProfiles * This,
  7071. /* [in] */ REFCLSID rclsid,
  7072. /* [in] */ LANGID langid,
  7073. /* [in] */ REFGUID guidProfile,
  7074. /* [in] */ HKL hKL);
  7075. void __RPC_STUB ITfInputProcessorProfiles_SubstituteKeyboardLayout_Stub(
  7076. IRpcStubBuffer *This,
  7077. IRpcChannelBuffer *_pRpcChannelBuffer,
  7078. PRPC_MESSAGE _pRpcMessage,
  7079. DWORD *_pdwStubPhase);
  7080. #endif /* __ITfInputProcessorProfiles_INTERFACE_DEFINED__ */
  7081. #ifndef __ITfActiveLanguageProfileNotifySink_INTERFACE_DEFINED__
  7082. #define __ITfActiveLanguageProfileNotifySink_INTERFACE_DEFINED__
  7083. /* interface ITfActiveLanguageProfileNotifySink */
  7084. /* [unique][uuid][object] */
  7085. EXTERN_C const IID IID_ITfActiveLanguageProfileNotifySink;
  7086. #if defined(__cplusplus) && !defined(CINTERFACE)
  7087. MIDL_INTERFACE("b246cb75-a93e-4652-bf8c-b3fe0cfd7e57")
  7088. ITfActiveLanguageProfileNotifySink : public IUnknown
  7089. {
  7090. public:
  7091. virtual HRESULT STDMETHODCALLTYPE OnActivated(
  7092. /* [in] */ REFCLSID clsid,
  7093. /* [in] */ REFGUID guidProfile,
  7094. /* [in] */ BOOL fActivated) = 0;
  7095. };
  7096. #else /* C style interface */
  7097. typedef struct ITfActiveLanguageProfileNotifySinkVtbl
  7098. {
  7099. BEGIN_INTERFACE
  7100. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  7101. ITfActiveLanguageProfileNotifySink * This,
  7102. /* [in] */ REFIID riid,
  7103. /* [iid_is][out] */ void **ppvObject);
  7104. ULONG ( STDMETHODCALLTYPE *AddRef )(
  7105. ITfActiveLanguageProfileNotifySink * This);
  7106. ULONG ( STDMETHODCALLTYPE *Release )(
  7107. ITfActiveLanguageProfileNotifySink * This);
  7108. HRESULT ( STDMETHODCALLTYPE *OnActivated )(
  7109. ITfActiveLanguageProfileNotifySink * This,
  7110. /* [in] */ REFCLSID clsid,
  7111. /* [in] */ REFGUID guidProfile,
  7112. /* [in] */ BOOL fActivated);
  7113. END_INTERFACE
  7114. } ITfActiveLanguageProfileNotifySinkVtbl;
  7115. interface ITfActiveLanguageProfileNotifySink
  7116. {
  7117. CONST_VTBL struct ITfActiveLanguageProfileNotifySinkVtbl *lpVtbl;
  7118. };
  7119. #ifdef COBJMACROS
  7120. #define ITfActiveLanguageProfileNotifySink_QueryInterface(This,riid,ppvObject) \
  7121. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  7122. #define ITfActiveLanguageProfileNotifySink_AddRef(This) \
  7123. (This)->lpVtbl -> AddRef(This)
  7124. #define ITfActiveLanguageProfileNotifySink_Release(This) \
  7125. (This)->lpVtbl -> Release(This)
  7126. #define ITfActiveLanguageProfileNotifySink_OnActivated(This,clsid,guidProfile,fActivated) \
  7127. (This)->lpVtbl -> OnActivated(This,clsid,guidProfile,fActivated)
  7128. #endif /* COBJMACROS */
  7129. #endif /* C style interface */
  7130. HRESULT STDMETHODCALLTYPE ITfActiveLanguageProfileNotifySink_OnActivated_Proxy(
  7131. ITfActiveLanguageProfileNotifySink * This,
  7132. /* [in] */ REFCLSID clsid,
  7133. /* [in] */ REFGUID guidProfile,
  7134. /* [in] */ BOOL fActivated);
  7135. void __RPC_STUB ITfActiveLanguageProfileNotifySink_OnActivated_Stub(
  7136. IRpcStubBuffer *This,
  7137. IRpcChannelBuffer *_pRpcChannelBuffer,
  7138. PRPC_MESSAGE _pRpcMessage,
  7139. DWORD *_pdwStubPhase);
  7140. #endif /* __ITfActiveLanguageProfileNotifySink_INTERFACE_DEFINED__ */
  7141. #ifndef __IEnumTfLanguageProfiles_INTERFACE_DEFINED__
  7142. #define __IEnumTfLanguageProfiles_INTERFACE_DEFINED__
  7143. /* interface IEnumTfLanguageProfiles */
  7144. /* [unique][uuid][object] */
  7145. EXTERN_C const IID IID_IEnumTfLanguageProfiles;
  7146. #if defined(__cplusplus) && !defined(CINTERFACE)
  7147. MIDL_INTERFACE("3d61bf11-ac5f-42c8-a4cb-931bcc28c744")
  7148. IEnumTfLanguageProfiles : public IUnknown
  7149. {
  7150. public:
  7151. virtual HRESULT STDMETHODCALLTYPE Clone(
  7152. /* [out] */ IEnumTfLanguageProfiles **ppEnum) = 0;
  7153. virtual HRESULT STDMETHODCALLTYPE Next(
  7154. /* [in] */ ULONG ulCount,
  7155. /* [length_is][size_is][out] */ TF_LANGUAGEPROFILE *pProfile,
  7156. /* [out] */ ULONG *pcFetch) = 0;
  7157. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  7158. virtual HRESULT STDMETHODCALLTYPE Skip(
  7159. /* [in] */ ULONG ulCount) = 0;
  7160. };
  7161. #else /* C style interface */
  7162. typedef struct IEnumTfLanguageProfilesVtbl
  7163. {
  7164. BEGIN_INTERFACE
  7165. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  7166. IEnumTfLanguageProfiles * This,
  7167. /* [in] */ REFIID riid,
  7168. /* [iid_is][out] */ void **ppvObject);
  7169. ULONG ( STDMETHODCALLTYPE *AddRef )(
  7170. IEnumTfLanguageProfiles * This);
  7171. ULONG ( STDMETHODCALLTYPE *Release )(
  7172. IEnumTfLanguageProfiles * This);
  7173. HRESULT ( STDMETHODCALLTYPE *Clone )(
  7174. IEnumTfLanguageProfiles * This,
  7175. /* [out] */ IEnumTfLanguageProfiles **ppEnum);
  7176. HRESULT ( STDMETHODCALLTYPE *Next )(
  7177. IEnumTfLanguageProfiles * This,
  7178. /* [in] */ ULONG ulCount,
  7179. /* [length_is][size_is][out] */ TF_LANGUAGEPROFILE *pProfile,
  7180. /* [out] */ ULONG *pcFetch);
  7181. HRESULT ( STDMETHODCALLTYPE *Reset )(
  7182. IEnumTfLanguageProfiles * This);
  7183. HRESULT ( STDMETHODCALLTYPE *Skip )(
  7184. IEnumTfLanguageProfiles * This,
  7185. /* [in] */ ULONG ulCount);
  7186. END_INTERFACE
  7187. } IEnumTfLanguageProfilesVtbl;
  7188. interface IEnumTfLanguageProfiles
  7189. {
  7190. CONST_VTBL struct IEnumTfLanguageProfilesVtbl *lpVtbl;
  7191. };
  7192. #ifdef COBJMACROS
  7193. #define IEnumTfLanguageProfiles_QueryInterface(This,riid,ppvObject) \
  7194. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  7195. #define IEnumTfLanguageProfiles_AddRef(This) \
  7196. (This)->lpVtbl -> AddRef(This)
  7197. #define IEnumTfLanguageProfiles_Release(This) \
  7198. (This)->lpVtbl -> Release(This)
  7199. #define IEnumTfLanguageProfiles_Clone(This,ppEnum) \
  7200. (This)->lpVtbl -> Clone(This,ppEnum)
  7201. #define IEnumTfLanguageProfiles_Next(This,ulCount,pProfile,pcFetch) \
  7202. (This)->lpVtbl -> Next(This,ulCount,pProfile,pcFetch)
  7203. #define IEnumTfLanguageProfiles_Reset(This) \
  7204. (This)->lpVtbl -> Reset(This)
  7205. #define IEnumTfLanguageProfiles_Skip(This,ulCount) \
  7206. (This)->lpVtbl -> Skip(This,ulCount)
  7207. #endif /* COBJMACROS */
  7208. #endif /* C style interface */
  7209. HRESULT STDMETHODCALLTYPE IEnumTfLanguageProfiles_Clone_Proxy(
  7210. IEnumTfLanguageProfiles * This,
  7211. /* [out] */ IEnumTfLanguageProfiles **ppEnum);
  7212. void __RPC_STUB IEnumTfLanguageProfiles_Clone_Stub(
  7213. IRpcStubBuffer *This,
  7214. IRpcChannelBuffer *_pRpcChannelBuffer,
  7215. PRPC_MESSAGE _pRpcMessage,
  7216. DWORD *_pdwStubPhase);
  7217. HRESULT STDMETHODCALLTYPE IEnumTfLanguageProfiles_Next_Proxy(
  7218. IEnumTfLanguageProfiles * This,
  7219. /* [in] */ ULONG ulCount,
  7220. /* [length_is][size_is][out] */ TF_LANGUAGEPROFILE *pProfile,
  7221. /* [out] */ ULONG *pcFetch);
  7222. void __RPC_STUB IEnumTfLanguageProfiles_Next_Stub(
  7223. IRpcStubBuffer *This,
  7224. IRpcChannelBuffer *_pRpcChannelBuffer,
  7225. PRPC_MESSAGE _pRpcMessage,
  7226. DWORD *_pdwStubPhase);
  7227. HRESULT STDMETHODCALLTYPE IEnumTfLanguageProfiles_Reset_Proxy(
  7228. IEnumTfLanguageProfiles * This);
  7229. void __RPC_STUB IEnumTfLanguageProfiles_Reset_Stub(
  7230. IRpcStubBuffer *This,
  7231. IRpcChannelBuffer *_pRpcChannelBuffer,
  7232. PRPC_MESSAGE _pRpcMessage,
  7233. DWORD *_pdwStubPhase);
  7234. HRESULT STDMETHODCALLTYPE IEnumTfLanguageProfiles_Skip_Proxy(
  7235. IEnumTfLanguageProfiles * This,
  7236. /* [in] */ ULONG ulCount);
  7237. void __RPC_STUB IEnumTfLanguageProfiles_Skip_Stub(
  7238. IRpcStubBuffer *This,
  7239. IRpcChannelBuffer *_pRpcChannelBuffer,
  7240. PRPC_MESSAGE _pRpcMessage,
  7241. DWORD *_pdwStubPhase);
  7242. #endif /* __IEnumTfLanguageProfiles_INTERFACE_DEFINED__ */
  7243. #ifndef __ITfLanguageProfileNotifySink_INTERFACE_DEFINED__
  7244. #define __ITfLanguageProfileNotifySink_INTERFACE_DEFINED__
  7245. /* interface ITfLanguageProfileNotifySink */
  7246. /* [unique][uuid][object] */
  7247. EXTERN_C const IID IID_ITfLanguageProfileNotifySink;
  7248. #if defined(__cplusplus) && !defined(CINTERFACE)
  7249. MIDL_INTERFACE("43c9fe15-f494-4c17-9de2-b8a4ac350aa8")
  7250. ITfLanguageProfileNotifySink : public IUnknown
  7251. {
  7252. public:
  7253. virtual HRESULT STDMETHODCALLTYPE OnLanguageChange(
  7254. /* [in] */ LANGID langid,
  7255. /* [out] */ BOOL *pfAccept) = 0;
  7256. virtual HRESULT STDMETHODCALLTYPE OnLanguageChanged( void) = 0;
  7257. };
  7258. #else /* C style interface */
  7259. typedef struct ITfLanguageProfileNotifySinkVtbl
  7260. {
  7261. BEGIN_INTERFACE
  7262. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  7263. ITfLanguageProfileNotifySink * This,
  7264. /* [in] */ REFIID riid,
  7265. /* [iid_is][out] */ void **ppvObject);
  7266. ULONG ( STDMETHODCALLTYPE *AddRef )(
  7267. ITfLanguageProfileNotifySink * This);
  7268. ULONG ( STDMETHODCALLTYPE *Release )(
  7269. ITfLanguageProfileNotifySink * This);
  7270. HRESULT ( STDMETHODCALLTYPE *OnLanguageChange )(
  7271. ITfLanguageProfileNotifySink * This,
  7272. /* [in] */ LANGID langid,
  7273. /* [out] */ BOOL *pfAccept);
  7274. HRESULT ( STDMETHODCALLTYPE *OnLanguageChanged )(
  7275. ITfLanguageProfileNotifySink * This);
  7276. END_INTERFACE
  7277. } ITfLanguageProfileNotifySinkVtbl;
  7278. interface ITfLanguageProfileNotifySink
  7279. {
  7280. CONST_VTBL struct ITfLanguageProfileNotifySinkVtbl *lpVtbl;
  7281. };
  7282. #ifdef COBJMACROS
  7283. #define ITfLanguageProfileNotifySink_QueryInterface(This,riid,ppvObject) \
  7284. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  7285. #define ITfLanguageProfileNotifySink_AddRef(This) \
  7286. (This)->lpVtbl -> AddRef(This)
  7287. #define ITfLanguageProfileNotifySink_Release(This) \
  7288. (This)->lpVtbl -> Release(This)
  7289. #define ITfLanguageProfileNotifySink_OnLanguageChange(This,langid,pfAccept) \
  7290. (This)->lpVtbl -> OnLanguageChange(This,langid,pfAccept)
  7291. #define ITfLanguageProfileNotifySink_OnLanguageChanged(This) \
  7292. (This)->lpVtbl -> OnLanguageChanged(This)
  7293. #endif /* COBJMACROS */
  7294. #endif /* C style interface */
  7295. HRESULT STDMETHODCALLTYPE ITfLanguageProfileNotifySink_OnLanguageChange_Proxy(
  7296. ITfLanguageProfileNotifySink * This,
  7297. /* [in] */ LANGID langid,
  7298. /* [out] */ BOOL *pfAccept);
  7299. void __RPC_STUB ITfLanguageProfileNotifySink_OnLanguageChange_Stub(
  7300. IRpcStubBuffer *This,
  7301. IRpcChannelBuffer *_pRpcChannelBuffer,
  7302. PRPC_MESSAGE _pRpcMessage,
  7303. DWORD *_pdwStubPhase);
  7304. HRESULT STDMETHODCALLTYPE ITfLanguageProfileNotifySink_OnLanguageChanged_Proxy(
  7305. ITfLanguageProfileNotifySink * This);
  7306. void __RPC_STUB ITfLanguageProfileNotifySink_OnLanguageChanged_Stub(
  7307. IRpcStubBuffer *This,
  7308. IRpcChannelBuffer *_pRpcChannelBuffer,
  7309. PRPC_MESSAGE _pRpcMessage,
  7310. DWORD *_pdwStubPhase);
  7311. #endif /* __ITfLanguageProfileNotifySink_INTERFACE_DEFINED__ */
  7312. /* interface __MIDL_itf_msctf_0196 */
  7313. /* [local] */
  7314. typedef /* [uuid] */ DECLSPEC_UUID("77c12f95-b783-450d-879f-1cd2362c6521") struct TF_PRESERVEDKEY
  7315. {
  7316. UINT uVKey;
  7317. UINT uModifiers;
  7318. } TF_PRESERVEDKEY;
  7319. extern RPC_IF_HANDLE __MIDL_itf_msctf_0196_v0_0_c_ifspec;
  7320. extern RPC_IF_HANDLE __MIDL_itf_msctf_0196_v0_0_s_ifspec;
  7321. #ifndef __ITfKeystrokeMgr_INTERFACE_DEFINED__
  7322. #define __ITfKeystrokeMgr_INTERFACE_DEFINED__
  7323. /* interface ITfKeystrokeMgr */
  7324. /* [unique][uuid][local][object] */
  7325. EXTERN_C const IID IID_ITfKeystrokeMgr;
  7326. #if defined(__cplusplus) && !defined(CINTERFACE)
  7327. MIDL_INTERFACE("aa80e7f0-2021-11d2-93e0-0060b067b86e")
  7328. ITfKeystrokeMgr : public IUnknown
  7329. {
  7330. public:
  7331. virtual HRESULT STDMETHODCALLTYPE AdviseKeyEventSink(
  7332. /* [in] */ TfClientId tid,
  7333. /* [in] */ ITfKeyEventSink *pSink,
  7334. /* [in] */ BOOL fForeground) = 0;
  7335. virtual HRESULT STDMETHODCALLTYPE UnadviseKeyEventSink(
  7336. /* [in] */ TfClientId tid) = 0;
  7337. virtual HRESULT STDMETHODCALLTYPE GetForeground(
  7338. /* [out] */ CLSID *pclsid) = 0;
  7339. virtual HRESULT STDMETHODCALLTYPE TestKeyDown(
  7340. /* [in] */ WPARAM wParam,
  7341. /* [in] */ LPARAM lParam,
  7342. /* [out] */ BOOL *pfEaten) = 0;
  7343. virtual HRESULT STDMETHODCALLTYPE TestKeyUp(
  7344. /* [in] */ WPARAM wParam,
  7345. /* [in] */ LPARAM lParam,
  7346. /* [out] */ BOOL *pfEaten) = 0;
  7347. virtual HRESULT STDMETHODCALLTYPE KeyDown(
  7348. /* [in] */ WPARAM wParam,
  7349. /* [in] */ LPARAM lParam,
  7350. /* [out] */ BOOL *pfEaten) = 0;
  7351. virtual HRESULT STDMETHODCALLTYPE KeyUp(
  7352. /* [in] */ WPARAM wParam,
  7353. /* [in] */ LPARAM lParam,
  7354. /* [out] */ BOOL *pfEaten) = 0;
  7355. virtual HRESULT STDMETHODCALLTYPE GetPreservedKey(
  7356. /* [in] */ ITfContext *pic,
  7357. /* [in] */ const TF_PRESERVEDKEY *pprekey,
  7358. /* [out] */ GUID *pguid) = 0;
  7359. virtual HRESULT STDMETHODCALLTYPE IsPreservedKey(
  7360. /* [in] */ REFGUID rguid,
  7361. /* [in] */ const TF_PRESERVEDKEY *pprekey,
  7362. /* [out] */ BOOL *pfRegistered) = 0;
  7363. virtual HRESULT STDMETHODCALLTYPE PreserveKey(
  7364. /* [in] */ TfClientId tid,
  7365. /* [in] */ REFGUID rguid,
  7366. /* [in] */ const TF_PRESERVEDKEY *prekey,
  7367. /* [size_is][in] */ const WCHAR *pchDesc,
  7368. /* [in] */ ULONG cchDesc) = 0;
  7369. virtual HRESULT STDMETHODCALLTYPE UnpreserveKey(
  7370. /* [in] */ REFGUID rguid,
  7371. /* [in] */ const TF_PRESERVEDKEY *pprekey) = 0;
  7372. virtual HRESULT STDMETHODCALLTYPE SetPreservedKeyDescription(
  7373. /* [in] */ REFGUID rguid,
  7374. /* [size_is][in] */ const WCHAR *pchDesc,
  7375. /* [in] */ ULONG cchDesc) = 0;
  7376. virtual HRESULT STDMETHODCALLTYPE GetPreservedKeyDescription(
  7377. /* [in] */ REFGUID rguid,
  7378. /* [out] */ BSTR *pbstrDesc) = 0;
  7379. virtual HRESULT STDMETHODCALLTYPE SimulatePreservedKey(
  7380. /* [in] */ ITfContext *pic,
  7381. /* [in] */ REFGUID rguid,
  7382. /* [out] */ BOOL *pfEaten) = 0;
  7383. };
  7384. #else /* C style interface */
  7385. typedef struct ITfKeystrokeMgrVtbl
  7386. {
  7387. BEGIN_INTERFACE
  7388. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  7389. ITfKeystrokeMgr * This,
  7390. /* [in] */ REFIID riid,
  7391. /* [iid_is][out] */ void **ppvObject);
  7392. ULONG ( STDMETHODCALLTYPE *AddRef )(
  7393. ITfKeystrokeMgr * This);
  7394. ULONG ( STDMETHODCALLTYPE *Release )(
  7395. ITfKeystrokeMgr * This);
  7396. HRESULT ( STDMETHODCALLTYPE *AdviseKeyEventSink )(
  7397. ITfKeystrokeMgr * This,
  7398. /* [in] */ TfClientId tid,
  7399. /* [in] */ ITfKeyEventSink *pSink,
  7400. /* [in] */ BOOL fForeground);
  7401. HRESULT ( STDMETHODCALLTYPE *UnadviseKeyEventSink )(
  7402. ITfKeystrokeMgr * This,
  7403. /* [in] */ TfClientId tid);
  7404. HRESULT ( STDMETHODCALLTYPE *GetForeground )(
  7405. ITfKeystrokeMgr * This,
  7406. /* [out] */ CLSID *pclsid);
  7407. HRESULT ( STDMETHODCALLTYPE *TestKeyDown )(
  7408. ITfKeystrokeMgr * This,
  7409. /* [in] */ WPARAM wParam,
  7410. /* [in] */ LPARAM lParam,
  7411. /* [out] */ BOOL *pfEaten);
  7412. HRESULT ( STDMETHODCALLTYPE *TestKeyUp )(
  7413. ITfKeystrokeMgr * This,
  7414. /* [in] */ WPARAM wParam,
  7415. /* [in] */ LPARAM lParam,
  7416. /* [out] */ BOOL *pfEaten);
  7417. HRESULT ( STDMETHODCALLTYPE *KeyDown )(
  7418. ITfKeystrokeMgr * This,
  7419. /* [in] */ WPARAM wParam,
  7420. /* [in] */ LPARAM lParam,
  7421. /* [out] */ BOOL *pfEaten);
  7422. HRESULT ( STDMETHODCALLTYPE *KeyUp )(
  7423. ITfKeystrokeMgr * This,
  7424. /* [in] */ WPARAM wParam,
  7425. /* [in] */ LPARAM lParam,
  7426. /* [out] */ BOOL *pfEaten);
  7427. HRESULT ( STDMETHODCALLTYPE *GetPreservedKey )(
  7428. ITfKeystrokeMgr * This,
  7429. /* [in] */ ITfContext *pic,
  7430. /* [in] */ const TF_PRESERVEDKEY *pprekey,
  7431. /* [out] */ GUID *pguid);
  7432. HRESULT ( STDMETHODCALLTYPE *IsPreservedKey )(
  7433. ITfKeystrokeMgr * This,
  7434. /* [in] */ REFGUID rguid,
  7435. /* [in] */ const TF_PRESERVEDKEY *pprekey,
  7436. /* [out] */ BOOL *pfRegistered);
  7437. HRESULT ( STDMETHODCALLTYPE *PreserveKey )(
  7438. ITfKeystrokeMgr * This,
  7439. /* [in] */ TfClientId tid,
  7440. /* [in] */ REFGUID rguid,
  7441. /* [in] */ const TF_PRESERVEDKEY *prekey,
  7442. /* [size_is][in] */ const WCHAR *pchDesc,
  7443. /* [in] */ ULONG cchDesc);
  7444. HRESULT ( STDMETHODCALLTYPE *UnpreserveKey )(
  7445. ITfKeystrokeMgr * This,
  7446. /* [in] */ REFGUID rguid,
  7447. /* [in] */ const TF_PRESERVEDKEY *pprekey);
  7448. HRESULT ( STDMETHODCALLTYPE *SetPreservedKeyDescription )(
  7449. ITfKeystrokeMgr * This,
  7450. /* [in] */ REFGUID rguid,
  7451. /* [size_is][in] */ const WCHAR *pchDesc,
  7452. /* [in] */ ULONG cchDesc);
  7453. HRESULT ( STDMETHODCALLTYPE *GetPreservedKeyDescription )(
  7454. ITfKeystrokeMgr * This,
  7455. /* [in] */ REFGUID rguid,
  7456. /* [out] */ BSTR *pbstrDesc);
  7457. HRESULT ( STDMETHODCALLTYPE *SimulatePreservedKey )(
  7458. ITfKeystrokeMgr * This,
  7459. /* [in] */ ITfContext *pic,
  7460. /* [in] */ REFGUID rguid,
  7461. /* [out] */ BOOL *pfEaten);
  7462. END_INTERFACE
  7463. } ITfKeystrokeMgrVtbl;
  7464. interface ITfKeystrokeMgr
  7465. {
  7466. CONST_VTBL struct ITfKeystrokeMgrVtbl *lpVtbl;
  7467. };
  7468. #ifdef COBJMACROS
  7469. #define ITfKeystrokeMgr_QueryInterface(This,riid,ppvObject) \
  7470. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  7471. #define ITfKeystrokeMgr_AddRef(This) \
  7472. (This)->lpVtbl -> AddRef(This)
  7473. #define ITfKeystrokeMgr_Release(This) \
  7474. (This)->lpVtbl -> Release(This)
  7475. #define ITfKeystrokeMgr_AdviseKeyEventSink(This,tid,pSink,fForeground) \
  7476. (This)->lpVtbl -> AdviseKeyEventSink(This,tid,pSink,fForeground)
  7477. #define ITfKeystrokeMgr_UnadviseKeyEventSink(This,tid) \
  7478. (This)->lpVtbl -> UnadviseKeyEventSink(This,tid)
  7479. #define ITfKeystrokeMgr_GetForeground(This,pclsid) \
  7480. (This)->lpVtbl -> GetForeground(This,pclsid)
  7481. #define ITfKeystrokeMgr_TestKeyDown(This,wParam,lParam,pfEaten) \
  7482. (This)->lpVtbl -> TestKeyDown(This,wParam,lParam,pfEaten)
  7483. #define ITfKeystrokeMgr_TestKeyUp(This,wParam,lParam,pfEaten) \
  7484. (This)->lpVtbl -> TestKeyUp(This,wParam,lParam,pfEaten)
  7485. #define ITfKeystrokeMgr_KeyDown(This,wParam,lParam,pfEaten) \
  7486. (This)->lpVtbl -> KeyDown(This,wParam,lParam,pfEaten)
  7487. #define ITfKeystrokeMgr_KeyUp(This,wParam,lParam,pfEaten) \
  7488. (This)->lpVtbl -> KeyUp(This,wParam,lParam,pfEaten)
  7489. #define ITfKeystrokeMgr_GetPreservedKey(This,pic,pprekey,pguid) \
  7490. (This)->lpVtbl -> GetPreservedKey(This,pic,pprekey,pguid)
  7491. #define ITfKeystrokeMgr_IsPreservedKey(This,rguid,pprekey,pfRegistered) \
  7492. (This)->lpVtbl -> IsPreservedKey(This,rguid,pprekey,pfRegistered)
  7493. #define ITfKeystrokeMgr_PreserveKey(This,tid,rguid,prekey,pchDesc,cchDesc) \
  7494. (This)->lpVtbl -> PreserveKey(This,tid,rguid,prekey,pchDesc,cchDesc)
  7495. #define ITfKeystrokeMgr_UnpreserveKey(This,rguid,pprekey) \
  7496. (This)->lpVtbl -> UnpreserveKey(This,rguid,pprekey)
  7497. #define ITfKeystrokeMgr_SetPreservedKeyDescription(This,rguid,pchDesc,cchDesc) \
  7498. (This)->lpVtbl -> SetPreservedKeyDescription(This,rguid,pchDesc,cchDesc)
  7499. #define ITfKeystrokeMgr_GetPreservedKeyDescription(This,rguid,pbstrDesc) \
  7500. (This)->lpVtbl -> GetPreservedKeyDescription(This,rguid,pbstrDesc)
  7501. #define ITfKeystrokeMgr_SimulatePreservedKey(This,pic,rguid,pfEaten) \
  7502. (This)->lpVtbl -> SimulatePreservedKey(This,pic,rguid,pfEaten)
  7503. #endif /* COBJMACROS */
  7504. #endif /* C style interface */
  7505. HRESULT STDMETHODCALLTYPE ITfKeystrokeMgr_AdviseKeyEventSink_Proxy(
  7506. ITfKeystrokeMgr * This,
  7507. /* [in] */ TfClientId tid,
  7508. /* [in] */ ITfKeyEventSink *pSink,
  7509. /* [in] */ BOOL fForeground);
  7510. void __RPC_STUB ITfKeystrokeMgr_AdviseKeyEventSink_Stub(
  7511. IRpcStubBuffer *This,
  7512. IRpcChannelBuffer *_pRpcChannelBuffer,
  7513. PRPC_MESSAGE _pRpcMessage,
  7514. DWORD *_pdwStubPhase);
  7515. HRESULT STDMETHODCALLTYPE ITfKeystrokeMgr_UnadviseKeyEventSink_Proxy(
  7516. ITfKeystrokeMgr * This,
  7517. /* [in] */ TfClientId tid);
  7518. void __RPC_STUB ITfKeystrokeMgr_UnadviseKeyEventSink_Stub(
  7519. IRpcStubBuffer *This,
  7520. IRpcChannelBuffer *_pRpcChannelBuffer,
  7521. PRPC_MESSAGE _pRpcMessage,
  7522. DWORD *_pdwStubPhase);
  7523. HRESULT STDMETHODCALLTYPE ITfKeystrokeMgr_GetForeground_Proxy(
  7524. ITfKeystrokeMgr * This,
  7525. /* [out] */ CLSID *pclsid);
  7526. void __RPC_STUB ITfKeystrokeMgr_GetForeground_Stub(
  7527. IRpcStubBuffer *This,
  7528. IRpcChannelBuffer *_pRpcChannelBuffer,
  7529. PRPC_MESSAGE _pRpcMessage,
  7530. DWORD *_pdwStubPhase);
  7531. HRESULT STDMETHODCALLTYPE ITfKeystrokeMgr_TestKeyDown_Proxy(
  7532. ITfKeystrokeMgr * This,
  7533. /* [in] */ WPARAM wParam,
  7534. /* [in] */ LPARAM lParam,
  7535. /* [out] */ BOOL *pfEaten);
  7536. void __RPC_STUB ITfKeystrokeMgr_TestKeyDown_Stub(
  7537. IRpcStubBuffer *This,
  7538. IRpcChannelBuffer *_pRpcChannelBuffer,
  7539. PRPC_MESSAGE _pRpcMessage,
  7540. DWORD *_pdwStubPhase);
  7541. HRESULT STDMETHODCALLTYPE ITfKeystrokeMgr_TestKeyUp_Proxy(
  7542. ITfKeystrokeMgr * This,
  7543. /* [in] */ WPARAM wParam,
  7544. /* [in] */ LPARAM lParam,
  7545. /* [out] */ BOOL *pfEaten);
  7546. void __RPC_STUB ITfKeystrokeMgr_TestKeyUp_Stub(
  7547. IRpcStubBuffer *This,
  7548. IRpcChannelBuffer *_pRpcChannelBuffer,
  7549. PRPC_MESSAGE _pRpcMessage,
  7550. DWORD *_pdwStubPhase);
  7551. HRESULT STDMETHODCALLTYPE ITfKeystrokeMgr_KeyDown_Proxy(
  7552. ITfKeystrokeMgr * This,
  7553. /* [in] */ WPARAM wParam,
  7554. /* [in] */ LPARAM lParam,
  7555. /* [out] */ BOOL *pfEaten);
  7556. void __RPC_STUB ITfKeystrokeMgr_KeyDown_Stub(
  7557. IRpcStubBuffer *This,
  7558. IRpcChannelBuffer *_pRpcChannelBuffer,
  7559. PRPC_MESSAGE _pRpcMessage,
  7560. DWORD *_pdwStubPhase);
  7561. HRESULT STDMETHODCALLTYPE ITfKeystrokeMgr_KeyUp_Proxy(
  7562. ITfKeystrokeMgr * This,
  7563. /* [in] */ WPARAM wParam,
  7564. /* [in] */ LPARAM lParam,
  7565. /* [out] */ BOOL *pfEaten);
  7566. void __RPC_STUB ITfKeystrokeMgr_KeyUp_Stub(
  7567. IRpcStubBuffer *This,
  7568. IRpcChannelBuffer *_pRpcChannelBuffer,
  7569. PRPC_MESSAGE _pRpcMessage,
  7570. DWORD *_pdwStubPhase);
  7571. HRESULT STDMETHODCALLTYPE ITfKeystrokeMgr_GetPreservedKey_Proxy(
  7572. ITfKeystrokeMgr * This,
  7573. /* [in] */ ITfContext *pic,
  7574. /* [in] */ const TF_PRESERVEDKEY *pprekey,
  7575. /* [out] */ GUID *pguid);
  7576. void __RPC_STUB ITfKeystrokeMgr_GetPreservedKey_Stub(
  7577. IRpcStubBuffer *This,
  7578. IRpcChannelBuffer *_pRpcChannelBuffer,
  7579. PRPC_MESSAGE _pRpcMessage,
  7580. DWORD *_pdwStubPhase);
  7581. HRESULT STDMETHODCALLTYPE ITfKeystrokeMgr_IsPreservedKey_Proxy(
  7582. ITfKeystrokeMgr * This,
  7583. /* [in] */ REFGUID rguid,
  7584. /* [in] */ const TF_PRESERVEDKEY *pprekey,
  7585. /* [out] */ BOOL *pfRegistered);
  7586. void __RPC_STUB ITfKeystrokeMgr_IsPreservedKey_Stub(
  7587. IRpcStubBuffer *This,
  7588. IRpcChannelBuffer *_pRpcChannelBuffer,
  7589. PRPC_MESSAGE _pRpcMessage,
  7590. DWORD *_pdwStubPhase);
  7591. HRESULT STDMETHODCALLTYPE ITfKeystrokeMgr_PreserveKey_Proxy(
  7592. ITfKeystrokeMgr * This,
  7593. /* [in] */ TfClientId tid,
  7594. /* [in] */ REFGUID rguid,
  7595. /* [in] */ const TF_PRESERVEDKEY *prekey,
  7596. /* [size_is][in] */ const WCHAR *pchDesc,
  7597. /* [in] */ ULONG cchDesc);
  7598. void __RPC_STUB ITfKeystrokeMgr_PreserveKey_Stub(
  7599. IRpcStubBuffer *This,
  7600. IRpcChannelBuffer *_pRpcChannelBuffer,
  7601. PRPC_MESSAGE _pRpcMessage,
  7602. DWORD *_pdwStubPhase);
  7603. HRESULT STDMETHODCALLTYPE ITfKeystrokeMgr_UnpreserveKey_Proxy(
  7604. ITfKeystrokeMgr * This,
  7605. /* [in] */ REFGUID rguid,
  7606. /* [in] */ const TF_PRESERVEDKEY *pprekey);
  7607. void __RPC_STUB ITfKeystrokeMgr_UnpreserveKey_Stub(
  7608. IRpcStubBuffer *This,
  7609. IRpcChannelBuffer *_pRpcChannelBuffer,
  7610. PRPC_MESSAGE _pRpcMessage,
  7611. DWORD *_pdwStubPhase);
  7612. HRESULT STDMETHODCALLTYPE ITfKeystrokeMgr_SetPreservedKeyDescription_Proxy(
  7613. ITfKeystrokeMgr * This,
  7614. /* [in] */ REFGUID rguid,
  7615. /* [size_is][in] */ const WCHAR *pchDesc,
  7616. /* [in] */ ULONG cchDesc);
  7617. void __RPC_STUB ITfKeystrokeMgr_SetPreservedKeyDescription_Stub(
  7618. IRpcStubBuffer *This,
  7619. IRpcChannelBuffer *_pRpcChannelBuffer,
  7620. PRPC_MESSAGE _pRpcMessage,
  7621. DWORD *_pdwStubPhase);
  7622. HRESULT STDMETHODCALLTYPE ITfKeystrokeMgr_GetPreservedKeyDescription_Proxy(
  7623. ITfKeystrokeMgr * This,
  7624. /* [in] */ REFGUID rguid,
  7625. /* [out] */ BSTR *pbstrDesc);
  7626. void __RPC_STUB ITfKeystrokeMgr_GetPreservedKeyDescription_Stub(
  7627. IRpcStubBuffer *This,
  7628. IRpcChannelBuffer *_pRpcChannelBuffer,
  7629. PRPC_MESSAGE _pRpcMessage,
  7630. DWORD *_pdwStubPhase);
  7631. HRESULT STDMETHODCALLTYPE ITfKeystrokeMgr_SimulatePreservedKey_Proxy(
  7632. ITfKeystrokeMgr * This,
  7633. /* [in] */ ITfContext *pic,
  7634. /* [in] */ REFGUID rguid,
  7635. /* [out] */ BOOL *pfEaten);
  7636. void __RPC_STUB ITfKeystrokeMgr_SimulatePreservedKey_Stub(
  7637. IRpcStubBuffer *This,
  7638. IRpcChannelBuffer *_pRpcChannelBuffer,
  7639. PRPC_MESSAGE _pRpcMessage,
  7640. DWORD *_pdwStubPhase);
  7641. #endif /* __ITfKeystrokeMgr_INTERFACE_DEFINED__ */
  7642. #ifndef __ITfKeyEventSink_INTERFACE_DEFINED__
  7643. #define __ITfKeyEventSink_INTERFACE_DEFINED__
  7644. /* interface ITfKeyEventSink */
  7645. /* [unique][uuid][local][object] */
  7646. EXTERN_C const IID IID_ITfKeyEventSink;
  7647. #if defined(__cplusplus) && !defined(CINTERFACE)
  7648. MIDL_INTERFACE("aa80e7f5-2021-11d2-93e0-0060b067b86e")
  7649. ITfKeyEventSink : public IUnknown
  7650. {
  7651. public:
  7652. virtual HRESULT STDMETHODCALLTYPE OnSetFocus(
  7653. /* [in] */ BOOL fForeground) = 0;
  7654. virtual HRESULT STDMETHODCALLTYPE OnTestKeyDown(
  7655. /* [in] */ ITfContext *pic,
  7656. /* [in] */ WPARAM wParam,
  7657. /* [in] */ LPARAM lParam,
  7658. /* [out] */ BOOL *pfEaten) = 0;
  7659. virtual HRESULT STDMETHODCALLTYPE OnTestKeyUp(
  7660. /* [in] */ ITfContext *pic,
  7661. /* [in] */ WPARAM wParam,
  7662. /* [in] */ LPARAM lParam,
  7663. /* [out] */ BOOL *pfEaten) = 0;
  7664. virtual HRESULT STDMETHODCALLTYPE OnKeyDown(
  7665. /* [in] */ ITfContext *pic,
  7666. /* [in] */ WPARAM wParam,
  7667. /* [in] */ LPARAM lParam,
  7668. /* [out] */ BOOL *pfEaten) = 0;
  7669. virtual HRESULT STDMETHODCALLTYPE OnKeyUp(
  7670. /* [in] */ ITfContext *pic,
  7671. /* [in] */ WPARAM wParam,
  7672. /* [in] */ LPARAM lParam,
  7673. /* [out] */ BOOL *pfEaten) = 0;
  7674. virtual HRESULT STDMETHODCALLTYPE OnPreservedKey(
  7675. /* [in] */ ITfContext *pic,
  7676. /* [in] */ REFGUID rguid,
  7677. /* [out] */ BOOL *pfEaten) = 0;
  7678. };
  7679. #else /* C style interface */
  7680. typedef struct ITfKeyEventSinkVtbl
  7681. {
  7682. BEGIN_INTERFACE
  7683. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  7684. ITfKeyEventSink * This,
  7685. /* [in] */ REFIID riid,
  7686. /* [iid_is][out] */ void **ppvObject);
  7687. ULONG ( STDMETHODCALLTYPE *AddRef )(
  7688. ITfKeyEventSink * This);
  7689. ULONG ( STDMETHODCALLTYPE *Release )(
  7690. ITfKeyEventSink * This);
  7691. HRESULT ( STDMETHODCALLTYPE *OnSetFocus )(
  7692. ITfKeyEventSink * This,
  7693. /* [in] */ BOOL fForeground);
  7694. HRESULT ( STDMETHODCALLTYPE *OnTestKeyDown )(
  7695. ITfKeyEventSink * This,
  7696. /* [in] */ ITfContext *pic,
  7697. /* [in] */ WPARAM wParam,
  7698. /* [in] */ LPARAM lParam,
  7699. /* [out] */ BOOL *pfEaten);
  7700. HRESULT ( STDMETHODCALLTYPE *OnTestKeyUp )(
  7701. ITfKeyEventSink * This,
  7702. /* [in] */ ITfContext *pic,
  7703. /* [in] */ WPARAM wParam,
  7704. /* [in] */ LPARAM lParam,
  7705. /* [out] */ BOOL *pfEaten);
  7706. HRESULT ( STDMETHODCALLTYPE *OnKeyDown )(
  7707. ITfKeyEventSink * This,
  7708. /* [in] */ ITfContext *pic,
  7709. /* [in] */ WPARAM wParam,
  7710. /* [in] */ LPARAM lParam,
  7711. /* [out] */ BOOL *pfEaten);
  7712. HRESULT ( STDMETHODCALLTYPE *OnKeyUp )(
  7713. ITfKeyEventSink * This,
  7714. /* [in] */ ITfContext *pic,
  7715. /* [in] */ WPARAM wParam,
  7716. /* [in] */ LPARAM lParam,
  7717. /* [out] */ BOOL *pfEaten);
  7718. HRESULT ( STDMETHODCALLTYPE *OnPreservedKey )(
  7719. ITfKeyEventSink * This,
  7720. /* [in] */ ITfContext *pic,
  7721. /* [in] */ REFGUID rguid,
  7722. /* [out] */ BOOL *pfEaten);
  7723. END_INTERFACE
  7724. } ITfKeyEventSinkVtbl;
  7725. interface ITfKeyEventSink
  7726. {
  7727. CONST_VTBL struct ITfKeyEventSinkVtbl *lpVtbl;
  7728. };
  7729. #ifdef COBJMACROS
  7730. #define ITfKeyEventSink_QueryInterface(This,riid,ppvObject) \
  7731. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  7732. #define ITfKeyEventSink_AddRef(This) \
  7733. (This)->lpVtbl -> AddRef(This)
  7734. #define ITfKeyEventSink_Release(This) \
  7735. (This)->lpVtbl -> Release(This)
  7736. #define ITfKeyEventSink_OnSetFocus(This,fForeground) \
  7737. (This)->lpVtbl -> OnSetFocus(This,fForeground)
  7738. #define ITfKeyEventSink_OnTestKeyDown(This,pic,wParam,lParam,pfEaten) \
  7739. (This)->lpVtbl -> OnTestKeyDown(This,pic,wParam,lParam,pfEaten)
  7740. #define ITfKeyEventSink_OnTestKeyUp(This,pic,wParam,lParam,pfEaten) \
  7741. (This)->lpVtbl -> OnTestKeyUp(This,pic,wParam,lParam,pfEaten)
  7742. #define ITfKeyEventSink_OnKeyDown(This,pic,wParam,lParam,pfEaten) \
  7743. (This)->lpVtbl -> OnKeyDown(This,pic,wParam,lParam,pfEaten)
  7744. #define ITfKeyEventSink_OnKeyUp(This,pic,wParam,lParam,pfEaten) \
  7745. (This)->lpVtbl -> OnKeyUp(This,pic,wParam,lParam,pfEaten)
  7746. #define ITfKeyEventSink_OnPreservedKey(This,pic,rguid,pfEaten) \
  7747. (This)->lpVtbl -> OnPreservedKey(This,pic,rguid,pfEaten)
  7748. #endif /* COBJMACROS */
  7749. #endif /* C style interface */
  7750. HRESULT STDMETHODCALLTYPE ITfKeyEventSink_OnSetFocus_Proxy(
  7751. ITfKeyEventSink * This,
  7752. /* [in] */ BOOL fForeground);
  7753. void __RPC_STUB ITfKeyEventSink_OnSetFocus_Stub(
  7754. IRpcStubBuffer *This,
  7755. IRpcChannelBuffer *_pRpcChannelBuffer,
  7756. PRPC_MESSAGE _pRpcMessage,
  7757. DWORD *_pdwStubPhase);
  7758. HRESULT STDMETHODCALLTYPE ITfKeyEventSink_OnTestKeyDown_Proxy(
  7759. ITfKeyEventSink * This,
  7760. /* [in] */ ITfContext *pic,
  7761. /* [in] */ WPARAM wParam,
  7762. /* [in] */ LPARAM lParam,
  7763. /* [out] */ BOOL *pfEaten);
  7764. void __RPC_STUB ITfKeyEventSink_OnTestKeyDown_Stub(
  7765. IRpcStubBuffer *This,
  7766. IRpcChannelBuffer *_pRpcChannelBuffer,
  7767. PRPC_MESSAGE _pRpcMessage,
  7768. DWORD *_pdwStubPhase);
  7769. HRESULT STDMETHODCALLTYPE ITfKeyEventSink_OnTestKeyUp_Proxy(
  7770. ITfKeyEventSink * This,
  7771. /* [in] */ ITfContext *pic,
  7772. /* [in] */ WPARAM wParam,
  7773. /* [in] */ LPARAM lParam,
  7774. /* [out] */ BOOL *pfEaten);
  7775. void __RPC_STUB ITfKeyEventSink_OnTestKeyUp_Stub(
  7776. IRpcStubBuffer *This,
  7777. IRpcChannelBuffer *_pRpcChannelBuffer,
  7778. PRPC_MESSAGE _pRpcMessage,
  7779. DWORD *_pdwStubPhase);
  7780. HRESULT STDMETHODCALLTYPE ITfKeyEventSink_OnKeyDown_Proxy(
  7781. ITfKeyEventSink * This,
  7782. /* [in] */ ITfContext *pic,
  7783. /* [in] */ WPARAM wParam,
  7784. /* [in] */ LPARAM lParam,
  7785. /* [out] */ BOOL *pfEaten);
  7786. void __RPC_STUB ITfKeyEventSink_OnKeyDown_Stub(
  7787. IRpcStubBuffer *This,
  7788. IRpcChannelBuffer *_pRpcChannelBuffer,
  7789. PRPC_MESSAGE _pRpcMessage,
  7790. DWORD *_pdwStubPhase);
  7791. HRESULT STDMETHODCALLTYPE ITfKeyEventSink_OnKeyUp_Proxy(
  7792. ITfKeyEventSink * This,
  7793. /* [in] */ ITfContext *pic,
  7794. /* [in] */ WPARAM wParam,
  7795. /* [in] */ LPARAM lParam,
  7796. /* [out] */ BOOL *pfEaten);
  7797. void __RPC_STUB ITfKeyEventSink_OnKeyUp_Stub(
  7798. IRpcStubBuffer *This,
  7799. IRpcChannelBuffer *_pRpcChannelBuffer,
  7800. PRPC_MESSAGE _pRpcMessage,
  7801. DWORD *_pdwStubPhase);
  7802. HRESULT STDMETHODCALLTYPE ITfKeyEventSink_OnPreservedKey_Proxy(
  7803. ITfKeyEventSink * This,
  7804. /* [in] */ ITfContext *pic,
  7805. /* [in] */ REFGUID rguid,
  7806. /* [out] */ BOOL *pfEaten);
  7807. void __RPC_STUB ITfKeyEventSink_OnPreservedKey_Stub(
  7808. IRpcStubBuffer *This,
  7809. IRpcChannelBuffer *_pRpcChannelBuffer,
  7810. PRPC_MESSAGE _pRpcMessage,
  7811. DWORD *_pdwStubPhase);
  7812. #endif /* __ITfKeyEventSink_INTERFACE_DEFINED__ */
  7813. #ifndef __ITfKeyTraceEventSink_INTERFACE_DEFINED__
  7814. #define __ITfKeyTraceEventSink_INTERFACE_DEFINED__
  7815. /* interface ITfKeyTraceEventSink */
  7816. /* [unique][uuid][local][object] */
  7817. EXTERN_C const IID IID_ITfKeyTraceEventSink;
  7818. #if defined(__cplusplus) && !defined(CINTERFACE)
  7819. MIDL_INTERFACE("1cd4c13b-1c36-4191-a70a-7f3e611f367d")
  7820. ITfKeyTraceEventSink : public IUnknown
  7821. {
  7822. public:
  7823. virtual HRESULT STDMETHODCALLTYPE OnKeyTraceDown(
  7824. /* [in] */ WPARAM wParam,
  7825. /* [in] */ LPARAM lParam) = 0;
  7826. virtual HRESULT STDMETHODCALLTYPE OnKeyTraceUp(
  7827. /* [in] */ WPARAM wParam,
  7828. /* [in] */ LPARAM lParam) = 0;
  7829. };
  7830. #else /* C style interface */
  7831. typedef struct ITfKeyTraceEventSinkVtbl
  7832. {
  7833. BEGIN_INTERFACE
  7834. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  7835. ITfKeyTraceEventSink * This,
  7836. /* [in] */ REFIID riid,
  7837. /* [iid_is][out] */ void **ppvObject);
  7838. ULONG ( STDMETHODCALLTYPE *AddRef )(
  7839. ITfKeyTraceEventSink * This);
  7840. ULONG ( STDMETHODCALLTYPE *Release )(
  7841. ITfKeyTraceEventSink * This);
  7842. HRESULT ( STDMETHODCALLTYPE *OnKeyTraceDown )(
  7843. ITfKeyTraceEventSink * This,
  7844. /* [in] */ WPARAM wParam,
  7845. /* [in] */ LPARAM lParam);
  7846. HRESULT ( STDMETHODCALLTYPE *OnKeyTraceUp )(
  7847. ITfKeyTraceEventSink * This,
  7848. /* [in] */ WPARAM wParam,
  7849. /* [in] */ LPARAM lParam);
  7850. END_INTERFACE
  7851. } ITfKeyTraceEventSinkVtbl;
  7852. interface ITfKeyTraceEventSink
  7853. {
  7854. CONST_VTBL struct ITfKeyTraceEventSinkVtbl *lpVtbl;
  7855. };
  7856. #ifdef COBJMACROS
  7857. #define ITfKeyTraceEventSink_QueryInterface(This,riid,ppvObject) \
  7858. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  7859. #define ITfKeyTraceEventSink_AddRef(This) \
  7860. (This)->lpVtbl -> AddRef(This)
  7861. #define ITfKeyTraceEventSink_Release(This) \
  7862. (This)->lpVtbl -> Release(This)
  7863. #define ITfKeyTraceEventSink_OnKeyTraceDown(This,wParam,lParam) \
  7864. (This)->lpVtbl -> OnKeyTraceDown(This,wParam,lParam)
  7865. #define ITfKeyTraceEventSink_OnKeyTraceUp(This,wParam,lParam) \
  7866. (This)->lpVtbl -> OnKeyTraceUp(This,wParam,lParam)
  7867. #endif /* COBJMACROS */
  7868. #endif /* C style interface */
  7869. HRESULT STDMETHODCALLTYPE ITfKeyTraceEventSink_OnKeyTraceDown_Proxy(
  7870. ITfKeyTraceEventSink * This,
  7871. /* [in] */ WPARAM wParam,
  7872. /* [in] */ LPARAM lParam);
  7873. void __RPC_STUB ITfKeyTraceEventSink_OnKeyTraceDown_Stub(
  7874. IRpcStubBuffer *This,
  7875. IRpcChannelBuffer *_pRpcChannelBuffer,
  7876. PRPC_MESSAGE _pRpcMessage,
  7877. DWORD *_pdwStubPhase);
  7878. HRESULT STDMETHODCALLTYPE ITfKeyTraceEventSink_OnKeyTraceUp_Proxy(
  7879. ITfKeyTraceEventSink * This,
  7880. /* [in] */ WPARAM wParam,
  7881. /* [in] */ LPARAM lParam);
  7882. void __RPC_STUB ITfKeyTraceEventSink_OnKeyTraceUp_Stub(
  7883. IRpcStubBuffer *This,
  7884. IRpcChannelBuffer *_pRpcChannelBuffer,
  7885. PRPC_MESSAGE _pRpcMessage,
  7886. DWORD *_pdwStubPhase);
  7887. #endif /* __ITfKeyTraceEventSink_INTERFACE_DEFINED__ */
  7888. #ifndef __ITfPreservedKeyNotifySink_INTERFACE_DEFINED__
  7889. #define __ITfPreservedKeyNotifySink_INTERFACE_DEFINED__
  7890. /* interface ITfPreservedKeyNotifySink */
  7891. /* [unique][uuid][object] */
  7892. EXTERN_C const IID IID_ITfPreservedKeyNotifySink;
  7893. #if defined(__cplusplus) && !defined(CINTERFACE)
  7894. MIDL_INTERFACE("6f77c993-d2b1-446e-853e-5912efc8a286")
  7895. ITfPreservedKeyNotifySink : public IUnknown
  7896. {
  7897. public:
  7898. virtual HRESULT STDMETHODCALLTYPE OnUpdated(
  7899. /* [in] */ const TF_PRESERVEDKEY *pprekey) = 0;
  7900. };
  7901. #else /* C style interface */
  7902. typedef struct ITfPreservedKeyNotifySinkVtbl
  7903. {
  7904. BEGIN_INTERFACE
  7905. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  7906. ITfPreservedKeyNotifySink * This,
  7907. /* [in] */ REFIID riid,
  7908. /* [iid_is][out] */ void **ppvObject);
  7909. ULONG ( STDMETHODCALLTYPE *AddRef )(
  7910. ITfPreservedKeyNotifySink * This);
  7911. ULONG ( STDMETHODCALLTYPE *Release )(
  7912. ITfPreservedKeyNotifySink * This);
  7913. HRESULT ( STDMETHODCALLTYPE *OnUpdated )(
  7914. ITfPreservedKeyNotifySink * This,
  7915. /* [in] */ const TF_PRESERVEDKEY *pprekey);
  7916. END_INTERFACE
  7917. } ITfPreservedKeyNotifySinkVtbl;
  7918. interface ITfPreservedKeyNotifySink
  7919. {
  7920. CONST_VTBL struct ITfPreservedKeyNotifySinkVtbl *lpVtbl;
  7921. };
  7922. #ifdef COBJMACROS
  7923. #define ITfPreservedKeyNotifySink_QueryInterface(This,riid,ppvObject) \
  7924. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  7925. #define ITfPreservedKeyNotifySink_AddRef(This) \
  7926. (This)->lpVtbl -> AddRef(This)
  7927. #define ITfPreservedKeyNotifySink_Release(This) \
  7928. (This)->lpVtbl -> Release(This)
  7929. #define ITfPreservedKeyNotifySink_OnUpdated(This,pprekey) \
  7930. (This)->lpVtbl -> OnUpdated(This,pprekey)
  7931. #endif /* COBJMACROS */
  7932. #endif /* C style interface */
  7933. HRESULT STDMETHODCALLTYPE ITfPreservedKeyNotifySink_OnUpdated_Proxy(
  7934. ITfPreservedKeyNotifySink * This,
  7935. /* [in] */ const TF_PRESERVEDKEY *pprekey);
  7936. void __RPC_STUB ITfPreservedKeyNotifySink_OnUpdated_Stub(
  7937. IRpcStubBuffer *This,
  7938. IRpcChannelBuffer *_pRpcChannelBuffer,
  7939. PRPC_MESSAGE _pRpcMessage,
  7940. DWORD *_pdwStubPhase);
  7941. #endif /* __ITfPreservedKeyNotifySink_INTERFACE_DEFINED__ */
  7942. #ifndef __ITfMessagePump_INTERFACE_DEFINED__
  7943. #define __ITfMessagePump_INTERFACE_DEFINED__
  7944. /* interface ITfMessagePump */
  7945. /* [unique][uuid][local][object] */
  7946. EXTERN_C const IID IID_ITfMessagePump;
  7947. #if defined(__cplusplus) && !defined(CINTERFACE)
  7948. MIDL_INTERFACE("8f1b8ad8-0b6b-4874-90c5-bd76011e8f7c")
  7949. ITfMessagePump : public IUnknown
  7950. {
  7951. public:
  7952. virtual HRESULT STDMETHODCALLTYPE PeekMessageA(
  7953. /* [out] */ LPMSG pMsg,
  7954. /* [in] */ HWND hwnd,
  7955. /* [in] */ UINT wMsgFilterMin,
  7956. /* [in] */ UINT wMsgFilterMax,
  7957. /* [in] */ UINT wRemoveMsg,
  7958. /* [out] */ BOOL *pfResult) = 0;
  7959. virtual HRESULT STDMETHODCALLTYPE GetMessageA(
  7960. /* [out] */ LPMSG pMsg,
  7961. /* [in] */ HWND hwnd,
  7962. /* [in] */ UINT wMsgFilterMin,
  7963. /* [in] */ UINT wMsgFilterMax,
  7964. /* [out] */ BOOL *pfResult) = 0;
  7965. virtual HRESULT STDMETHODCALLTYPE PeekMessageW(
  7966. /* [out] */ LPMSG pMsg,
  7967. /* [in] */ HWND hwnd,
  7968. /* [in] */ UINT wMsgFilterMin,
  7969. /* [in] */ UINT wMsgFilterMax,
  7970. /* [in] */ UINT wRemoveMsg,
  7971. /* [out] */ BOOL *pfResult) = 0;
  7972. virtual HRESULT STDMETHODCALLTYPE GetMessageW(
  7973. /* [out] */ LPMSG pMsg,
  7974. /* [in] */ HWND hwnd,
  7975. /* [in] */ UINT wMsgFilterMin,
  7976. /* [in] */ UINT wMsgFilterMax,
  7977. /* [out] */ BOOL *pfResult) = 0;
  7978. };
  7979. #else /* C style interface */
  7980. typedef struct ITfMessagePumpVtbl
  7981. {
  7982. BEGIN_INTERFACE
  7983. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  7984. ITfMessagePump * This,
  7985. /* [in] */ REFIID riid,
  7986. /* [iid_is][out] */ void **ppvObject);
  7987. ULONG ( STDMETHODCALLTYPE *AddRef )(
  7988. ITfMessagePump * This);
  7989. ULONG ( STDMETHODCALLTYPE *Release )(
  7990. ITfMessagePump * This);
  7991. HRESULT ( STDMETHODCALLTYPE *PeekMessageA )(
  7992. ITfMessagePump * This,
  7993. /* [out] */ LPMSG pMsg,
  7994. /* [in] */ HWND hwnd,
  7995. /* [in] */ UINT wMsgFilterMin,
  7996. /* [in] */ UINT wMsgFilterMax,
  7997. /* [in] */ UINT wRemoveMsg,
  7998. /* [out] */ BOOL *pfResult);
  7999. HRESULT ( STDMETHODCALLTYPE *GetMessageA )(
  8000. ITfMessagePump * This,
  8001. /* [out] */ LPMSG pMsg,
  8002. /* [in] */ HWND hwnd,
  8003. /* [in] */ UINT wMsgFilterMin,
  8004. /* [in] */ UINT wMsgFilterMax,
  8005. /* [out] */ BOOL *pfResult);
  8006. HRESULT ( STDMETHODCALLTYPE *PeekMessageW )(
  8007. ITfMessagePump * This,
  8008. /* [out] */ LPMSG pMsg,
  8009. /* [in] */ HWND hwnd,
  8010. /* [in] */ UINT wMsgFilterMin,
  8011. /* [in] */ UINT wMsgFilterMax,
  8012. /* [in] */ UINT wRemoveMsg,
  8013. /* [out] */ BOOL *pfResult);
  8014. HRESULT ( STDMETHODCALLTYPE *GetMessageW )(
  8015. ITfMessagePump * This,
  8016. /* [out] */ LPMSG pMsg,
  8017. /* [in] */ HWND hwnd,
  8018. /* [in] */ UINT wMsgFilterMin,
  8019. /* [in] */ UINT wMsgFilterMax,
  8020. /* [out] */ BOOL *pfResult);
  8021. END_INTERFACE
  8022. } ITfMessagePumpVtbl;
  8023. interface ITfMessagePump
  8024. {
  8025. CONST_VTBL struct ITfMessagePumpVtbl *lpVtbl;
  8026. };
  8027. #ifdef COBJMACROS
  8028. #define ITfMessagePump_QueryInterface(This,riid,ppvObject) \
  8029. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  8030. #define ITfMessagePump_AddRef(This) \
  8031. (This)->lpVtbl -> AddRef(This)
  8032. #define ITfMessagePump_Release(This) \
  8033. (This)->lpVtbl -> Release(This)
  8034. #define ITfMessagePump_PeekMessageA(This,pMsg,hwnd,wMsgFilterMin,wMsgFilterMax,wRemoveMsg,pfResult) \
  8035. (This)->lpVtbl -> PeekMessageA(This,pMsg,hwnd,wMsgFilterMin,wMsgFilterMax,wRemoveMsg,pfResult)
  8036. #define ITfMessagePump_GetMessageA(This,pMsg,hwnd,wMsgFilterMin,wMsgFilterMax,pfResult) \
  8037. (This)->lpVtbl -> GetMessageA(This,pMsg,hwnd,wMsgFilterMin,wMsgFilterMax,pfResult)
  8038. #define ITfMessagePump_PeekMessageW(This,pMsg,hwnd,wMsgFilterMin,wMsgFilterMax,wRemoveMsg,pfResult) \
  8039. (This)->lpVtbl -> PeekMessageW(This,pMsg,hwnd,wMsgFilterMin,wMsgFilterMax,wRemoveMsg,pfResult)
  8040. #define ITfMessagePump_GetMessageW(This,pMsg,hwnd,wMsgFilterMin,wMsgFilterMax,pfResult) \
  8041. (This)->lpVtbl -> GetMessageW(This,pMsg,hwnd,wMsgFilterMin,wMsgFilterMax,pfResult)
  8042. #endif /* COBJMACROS */
  8043. #endif /* C style interface */
  8044. HRESULT STDMETHODCALLTYPE ITfMessagePump_PeekMessageA_Proxy(
  8045. ITfMessagePump * This,
  8046. /* [out] */ LPMSG pMsg,
  8047. /* [in] */ HWND hwnd,
  8048. /* [in] */ UINT wMsgFilterMin,
  8049. /* [in] */ UINT wMsgFilterMax,
  8050. /* [in] */ UINT wRemoveMsg,
  8051. /* [out] */ BOOL *pfResult);
  8052. void __RPC_STUB ITfMessagePump_PeekMessageA_Stub(
  8053. IRpcStubBuffer *This,
  8054. IRpcChannelBuffer *_pRpcChannelBuffer,
  8055. PRPC_MESSAGE _pRpcMessage,
  8056. DWORD *_pdwStubPhase);
  8057. HRESULT STDMETHODCALLTYPE ITfMessagePump_GetMessageA_Proxy(
  8058. ITfMessagePump * This,
  8059. /* [out] */ LPMSG pMsg,
  8060. /* [in] */ HWND hwnd,
  8061. /* [in] */ UINT wMsgFilterMin,
  8062. /* [in] */ UINT wMsgFilterMax,
  8063. /* [out] */ BOOL *pfResult);
  8064. void __RPC_STUB ITfMessagePump_GetMessageA_Stub(
  8065. IRpcStubBuffer *This,
  8066. IRpcChannelBuffer *_pRpcChannelBuffer,
  8067. PRPC_MESSAGE _pRpcMessage,
  8068. DWORD *_pdwStubPhase);
  8069. HRESULT STDMETHODCALLTYPE ITfMessagePump_PeekMessageW_Proxy(
  8070. ITfMessagePump * This,
  8071. /* [out] */ LPMSG pMsg,
  8072. /* [in] */ HWND hwnd,
  8073. /* [in] */ UINT wMsgFilterMin,
  8074. /* [in] */ UINT wMsgFilterMax,
  8075. /* [in] */ UINT wRemoveMsg,
  8076. /* [out] */ BOOL *pfResult);
  8077. void __RPC_STUB ITfMessagePump_PeekMessageW_Stub(
  8078. IRpcStubBuffer *This,
  8079. IRpcChannelBuffer *_pRpcChannelBuffer,
  8080. PRPC_MESSAGE _pRpcMessage,
  8081. DWORD *_pdwStubPhase);
  8082. HRESULT STDMETHODCALLTYPE ITfMessagePump_GetMessageW_Proxy(
  8083. ITfMessagePump * This,
  8084. /* [out] */ LPMSG pMsg,
  8085. /* [in] */ HWND hwnd,
  8086. /* [in] */ UINT wMsgFilterMin,
  8087. /* [in] */ UINT wMsgFilterMax,
  8088. /* [out] */ BOOL *pfResult);
  8089. void __RPC_STUB ITfMessagePump_GetMessageW_Stub(
  8090. IRpcStubBuffer *This,
  8091. IRpcChannelBuffer *_pRpcChannelBuffer,
  8092. PRPC_MESSAGE _pRpcMessage,
  8093. DWORD *_pdwStubPhase);
  8094. #endif /* __ITfMessagePump_INTERFACE_DEFINED__ */
  8095. #ifndef __ITfThreadFocusSink_INTERFACE_DEFINED__
  8096. #define __ITfThreadFocusSink_INTERFACE_DEFINED__
  8097. /* interface ITfThreadFocusSink */
  8098. /* [unique][uuid][local][object] */
  8099. EXTERN_C const IID IID_ITfThreadFocusSink;
  8100. #if defined(__cplusplus) && !defined(CINTERFACE)
  8101. MIDL_INTERFACE("c0f1db0c-3a20-405c-a303-96b6010a885f")
  8102. ITfThreadFocusSink : public IUnknown
  8103. {
  8104. public:
  8105. virtual HRESULT STDMETHODCALLTYPE OnSetThreadFocus( void) = 0;
  8106. virtual HRESULT STDMETHODCALLTYPE OnKillThreadFocus( void) = 0;
  8107. };
  8108. #else /* C style interface */
  8109. typedef struct ITfThreadFocusSinkVtbl
  8110. {
  8111. BEGIN_INTERFACE
  8112. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  8113. ITfThreadFocusSink * This,
  8114. /* [in] */ REFIID riid,
  8115. /* [iid_is][out] */ void **ppvObject);
  8116. ULONG ( STDMETHODCALLTYPE *AddRef )(
  8117. ITfThreadFocusSink * This);
  8118. ULONG ( STDMETHODCALLTYPE *Release )(
  8119. ITfThreadFocusSink * This);
  8120. HRESULT ( STDMETHODCALLTYPE *OnSetThreadFocus )(
  8121. ITfThreadFocusSink * This);
  8122. HRESULT ( STDMETHODCALLTYPE *OnKillThreadFocus )(
  8123. ITfThreadFocusSink * This);
  8124. END_INTERFACE
  8125. } ITfThreadFocusSinkVtbl;
  8126. interface ITfThreadFocusSink
  8127. {
  8128. CONST_VTBL struct ITfThreadFocusSinkVtbl *lpVtbl;
  8129. };
  8130. #ifdef COBJMACROS
  8131. #define ITfThreadFocusSink_QueryInterface(This,riid,ppvObject) \
  8132. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  8133. #define ITfThreadFocusSink_AddRef(This) \
  8134. (This)->lpVtbl -> AddRef(This)
  8135. #define ITfThreadFocusSink_Release(This) \
  8136. (This)->lpVtbl -> Release(This)
  8137. #define ITfThreadFocusSink_OnSetThreadFocus(This) \
  8138. (This)->lpVtbl -> OnSetThreadFocus(This)
  8139. #define ITfThreadFocusSink_OnKillThreadFocus(This) \
  8140. (This)->lpVtbl -> OnKillThreadFocus(This)
  8141. #endif /* COBJMACROS */
  8142. #endif /* C style interface */
  8143. HRESULT STDMETHODCALLTYPE ITfThreadFocusSink_OnSetThreadFocus_Proxy(
  8144. ITfThreadFocusSink * This);
  8145. void __RPC_STUB ITfThreadFocusSink_OnSetThreadFocus_Stub(
  8146. IRpcStubBuffer *This,
  8147. IRpcChannelBuffer *_pRpcChannelBuffer,
  8148. PRPC_MESSAGE _pRpcMessage,
  8149. DWORD *_pdwStubPhase);
  8150. HRESULT STDMETHODCALLTYPE ITfThreadFocusSink_OnKillThreadFocus_Proxy(
  8151. ITfThreadFocusSink * This);
  8152. void __RPC_STUB ITfThreadFocusSink_OnKillThreadFocus_Stub(
  8153. IRpcStubBuffer *This,
  8154. IRpcChannelBuffer *_pRpcChannelBuffer,
  8155. PRPC_MESSAGE _pRpcMessage,
  8156. DWORD *_pdwStubPhase);
  8157. #endif /* __ITfThreadFocusSink_INTERFACE_DEFINED__ */
  8158. #ifndef __ITfTextInputProcessor_INTERFACE_DEFINED__
  8159. #define __ITfTextInputProcessor_INTERFACE_DEFINED__
  8160. /* interface ITfTextInputProcessor */
  8161. /* [unique][uuid][local][object] */
  8162. EXTERN_C const IID IID_ITfTextInputProcessor;
  8163. #if defined(__cplusplus) && !defined(CINTERFACE)
  8164. MIDL_INTERFACE("aa80e7f7-2021-11d2-93e0-0060b067b86e")
  8165. ITfTextInputProcessor : public IUnknown
  8166. {
  8167. public:
  8168. virtual HRESULT STDMETHODCALLTYPE Activate(
  8169. /* [in] */ ITfThreadMgr *ptim,
  8170. /* [in] */ TfClientId tid) = 0;
  8171. virtual HRESULT STDMETHODCALLTYPE Deactivate( void) = 0;
  8172. };
  8173. #else /* C style interface */
  8174. typedef struct ITfTextInputProcessorVtbl
  8175. {
  8176. BEGIN_INTERFACE
  8177. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  8178. ITfTextInputProcessor * This,
  8179. /* [in] */ REFIID riid,
  8180. /* [iid_is][out] */ void **ppvObject);
  8181. ULONG ( STDMETHODCALLTYPE *AddRef )(
  8182. ITfTextInputProcessor * This);
  8183. ULONG ( STDMETHODCALLTYPE *Release )(
  8184. ITfTextInputProcessor * This);
  8185. HRESULT ( STDMETHODCALLTYPE *Activate )(
  8186. ITfTextInputProcessor * This,
  8187. /* [in] */ ITfThreadMgr *ptim,
  8188. /* [in] */ TfClientId tid);
  8189. HRESULT ( STDMETHODCALLTYPE *Deactivate )(
  8190. ITfTextInputProcessor * This);
  8191. END_INTERFACE
  8192. } ITfTextInputProcessorVtbl;
  8193. interface ITfTextInputProcessor
  8194. {
  8195. CONST_VTBL struct ITfTextInputProcessorVtbl *lpVtbl;
  8196. };
  8197. #ifdef COBJMACROS
  8198. #define ITfTextInputProcessor_QueryInterface(This,riid,ppvObject) \
  8199. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  8200. #define ITfTextInputProcessor_AddRef(This) \
  8201. (This)->lpVtbl -> AddRef(This)
  8202. #define ITfTextInputProcessor_Release(This) \
  8203. (This)->lpVtbl -> Release(This)
  8204. #define ITfTextInputProcessor_Activate(This,ptim,tid) \
  8205. (This)->lpVtbl -> Activate(This,ptim,tid)
  8206. #define ITfTextInputProcessor_Deactivate(This) \
  8207. (This)->lpVtbl -> Deactivate(This)
  8208. #endif /* COBJMACROS */
  8209. #endif /* C style interface */
  8210. HRESULT STDMETHODCALLTYPE ITfTextInputProcessor_Activate_Proxy(
  8211. ITfTextInputProcessor * This,
  8212. /* [in] */ ITfThreadMgr *ptim,
  8213. /* [in] */ TfClientId tid);
  8214. void __RPC_STUB ITfTextInputProcessor_Activate_Stub(
  8215. IRpcStubBuffer *This,
  8216. IRpcChannelBuffer *_pRpcChannelBuffer,
  8217. PRPC_MESSAGE _pRpcMessage,
  8218. DWORD *_pdwStubPhase);
  8219. HRESULT STDMETHODCALLTYPE ITfTextInputProcessor_Deactivate_Proxy(
  8220. ITfTextInputProcessor * This);
  8221. void __RPC_STUB ITfTextInputProcessor_Deactivate_Stub(
  8222. IRpcStubBuffer *This,
  8223. IRpcChannelBuffer *_pRpcChannelBuffer,
  8224. PRPC_MESSAGE _pRpcMessage,
  8225. DWORD *_pdwStubPhase);
  8226. #endif /* __ITfTextInputProcessor_INTERFACE_DEFINED__ */
  8227. #ifndef __ITfClientId_INTERFACE_DEFINED__
  8228. #define __ITfClientId_INTERFACE_DEFINED__
  8229. /* interface ITfClientId */
  8230. /* [unique][uuid][local][object] */
  8231. EXTERN_C const IID IID_ITfClientId;
  8232. #if defined(__cplusplus) && !defined(CINTERFACE)
  8233. MIDL_INTERFACE("d60a7b49-1b9f-4be2-b702-47e9dc05dec3")
  8234. ITfClientId : public IUnknown
  8235. {
  8236. public:
  8237. virtual HRESULT STDMETHODCALLTYPE GetClientId(
  8238. /* [in] */ REFCLSID rclsid,
  8239. /* [out] */ TfClientId *ptid) = 0;
  8240. };
  8241. #else /* C style interface */
  8242. typedef struct ITfClientIdVtbl
  8243. {
  8244. BEGIN_INTERFACE
  8245. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  8246. ITfClientId * This,
  8247. /* [in] */ REFIID riid,
  8248. /* [iid_is][out] */ void **ppvObject);
  8249. ULONG ( STDMETHODCALLTYPE *AddRef )(
  8250. ITfClientId * This);
  8251. ULONG ( STDMETHODCALLTYPE *Release )(
  8252. ITfClientId * This);
  8253. HRESULT ( STDMETHODCALLTYPE *GetClientId )(
  8254. ITfClientId * This,
  8255. /* [in] */ REFCLSID rclsid,
  8256. /* [out] */ TfClientId *ptid);
  8257. END_INTERFACE
  8258. } ITfClientIdVtbl;
  8259. interface ITfClientId
  8260. {
  8261. CONST_VTBL struct ITfClientIdVtbl *lpVtbl;
  8262. };
  8263. #ifdef COBJMACROS
  8264. #define ITfClientId_QueryInterface(This,riid,ppvObject) \
  8265. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  8266. #define ITfClientId_AddRef(This) \
  8267. (This)->lpVtbl -> AddRef(This)
  8268. #define ITfClientId_Release(This) \
  8269. (This)->lpVtbl -> Release(This)
  8270. #define ITfClientId_GetClientId(This,rclsid,ptid) \
  8271. (This)->lpVtbl -> GetClientId(This,rclsid,ptid)
  8272. #endif /* COBJMACROS */
  8273. #endif /* C style interface */
  8274. HRESULT STDMETHODCALLTYPE ITfClientId_GetClientId_Proxy(
  8275. ITfClientId * This,
  8276. /* [in] */ REFCLSID rclsid,
  8277. /* [out] */ TfClientId *ptid);
  8278. void __RPC_STUB ITfClientId_GetClientId_Stub(
  8279. IRpcStubBuffer *This,
  8280. IRpcChannelBuffer *_pRpcChannelBuffer,
  8281. PRPC_MESSAGE _pRpcMessage,
  8282. DWORD *_pdwStubPhase);
  8283. #endif /* __ITfClientId_INTERFACE_DEFINED__ */
  8284. /* interface __MIDL_itf_msctf_0204 */
  8285. /* [local] */
  8286. typedef /* [public][public][public][public][uuid] */ DECLSPEC_UUID("c4cc07f1-80cc-4a7b-bc54-98512782cbe3")
  8287. enum __MIDL___MIDL_itf_msctf_0204_0001
  8288. { TF_LS_NONE = 0,
  8289. TF_LS_SOLID = 1,
  8290. TF_LS_DOT = 2,
  8291. TF_LS_DASH = 3,
  8292. TF_LS_SQUIGGLE = 4
  8293. } TF_DA_LINESTYLE;
  8294. typedef /* [public][public][public][public][public][public][public][public][public][public][public][uuid] */ DECLSPEC_UUID("d9b92e21-084a-401b-9c64-1e6dad91a1ab")
  8295. enum __MIDL___MIDL_itf_msctf_0204_0002
  8296. { TF_CT_NONE = 0,
  8297. TF_CT_SYSCOLOR = 1,
  8298. TF_CT_COLORREF = 2
  8299. } TF_DA_COLORTYPE;
  8300. typedef /* [uuid] */ DECLSPEC_UUID("90d0cb5e-6520-4a0f-b47c-c39bd955f0d6") struct TF_DA_COLOR
  8301. {
  8302. TF_DA_COLORTYPE type;
  8303. /* [switch_is][switch_type] */ union
  8304. {
  8305. /* [case()] */ int nIndex;
  8306. /* [case()] */ COLORREF cr;
  8307. } ;
  8308. } TF_DA_COLOR;
  8309. typedef /* [public][public][public][public][uuid] */ DECLSPEC_UUID("33d2fe4b-6c24-4f67-8d75-3bc1819e4126")
  8310. enum __MIDL___MIDL_itf_msctf_0204_0004
  8311. { TF_ATTR_INPUT = 0,
  8312. TF_ATTR_TARGET_CONVERTED = 1,
  8313. TF_ATTR_CONVERTED = 2,
  8314. TF_ATTR_TARGET_NOTCONVERTED = 3,
  8315. TF_ATTR_INPUT_ERROR = 4,
  8316. TF_ATTR_FIXEDCONVERTED = 5,
  8317. TF_ATTR_OTHER = -1
  8318. } TF_DA_ATTR_INFO;
  8319. typedef /* [uuid] */ DECLSPEC_UUID("1bf1c305-419b-4182-a4d2-9bfadc3f021f") struct TF_DISPLAYATTRIBUTE
  8320. {
  8321. TF_DA_COLOR crText;
  8322. TF_DA_COLOR crBk;
  8323. TF_DA_LINESTYLE lsStyle;
  8324. BOOL fBoldLine;
  8325. TF_DA_COLOR crLine;
  8326. TF_DA_ATTR_INFO bAttr;
  8327. } TF_DISPLAYATTRIBUTE;
  8328. extern RPC_IF_HANDLE __MIDL_itf_msctf_0204_v0_0_c_ifspec;
  8329. extern RPC_IF_HANDLE __MIDL_itf_msctf_0204_v0_0_s_ifspec;
  8330. #ifndef __ITfDisplayAttributeInfo_INTERFACE_DEFINED__
  8331. #define __ITfDisplayAttributeInfo_INTERFACE_DEFINED__
  8332. /* interface ITfDisplayAttributeInfo */
  8333. /* [unique][uuid][object] */
  8334. EXTERN_C const IID IID_ITfDisplayAttributeInfo;
  8335. #if defined(__cplusplus) && !defined(CINTERFACE)
  8336. MIDL_INTERFACE("70528852-2f26-4aea-8c96-215150578932")
  8337. ITfDisplayAttributeInfo : public IUnknown
  8338. {
  8339. public:
  8340. virtual HRESULT STDMETHODCALLTYPE GetGUID(
  8341. /* [out] */ GUID *pguid) = 0;
  8342. virtual HRESULT STDMETHODCALLTYPE GetDescription(
  8343. /* [out] */ BSTR *pbstrDesc) = 0;
  8344. virtual HRESULT STDMETHODCALLTYPE GetAttributeInfo(
  8345. /* [out] */ TF_DISPLAYATTRIBUTE *pda) = 0;
  8346. virtual HRESULT STDMETHODCALLTYPE SetAttributeInfo(
  8347. /* [in] */ TF_DISPLAYATTRIBUTE *pda) = 0;
  8348. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  8349. };
  8350. #else /* C style interface */
  8351. typedef struct ITfDisplayAttributeInfoVtbl
  8352. {
  8353. BEGIN_INTERFACE
  8354. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  8355. ITfDisplayAttributeInfo * This,
  8356. /* [in] */ REFIID riid,
  8357. /* [iid_is][out] */ void **ppvObject);
  8358. ULONG ( STDMETHODCALLTYPE *AddRef )(
  8359. ITfDisplayAttributeInfo * This);
  8360. ULONG ( STDMETHODCALLTYPE *Release )(
  8361. ITfDisplayAttributeInfo * This);
  8362. HRESULT ( STDMETHODCALLTYPE *GetGUID )(
  8363. ITfDisplayAttributeInfo * This,
  8364. /* [out] */ GUID *pguid);
  8365. HRESULT ( STDMETHODCALLTYPE *GetDescription )(
  8366. ITfDisplayAttributeInfo * This,
  8367. /* [out] */ BSTR *pbstrDesc);
  8368. HRESULT ( STDMETHODCALLTYPE *GetAttributeInfo )(
  8369. ITfDisplayAttributeInfo * This,
  8370. /* [out] */ TF_DISPLAYATTRIBUTE *pda);
  8371. HRESULT ( STDMETHODCALLTYPE *SetAttributeInfo )(
  8372. ITfDisplayAttributeInfo * This,
  8373. /* [in] */ TF_DISPLAYATTRIBUTE *pda);
  8374. HRESULT ( STDMETHODCALLTYPE *Reset )(
  8375. ITfDisplayAttributeInfo * This);
  8376. END_INTERFACE
  8377. } ITfDisplayAttributeInfoVtbl;
  8378. interface ITfDisplayAttributeInfo
  8379. {
  8380. CONST_VTBL struct ITfDisplayAttributeInfoVtbl *lpVtbl;
  8381. };
  8382. #ifdef COBJMACROS
  8383. #define ITfDisplayAttributeInfo_QueryInterface(This,riid,ppvObject) \
  8384. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  8385. #define ITfDisplayAttributeInfo_AddRef(This) \
  8386. (This)->lpVtbl -> AddRef(This)
  8387. #define ITfDisplayAttributeInfo_Release(This) \
  8388. (This)->lpVtbl -> Release(This)
  8389. #define ITfDisplayAttributeInfo_GetGUID(This,pguid) \
  8390. (This)->lpVtbl -> GetGUID(This,pguid)
  8391. #define ITfDisplayAttributeInfo_GetDescription(This,pbstrDesc) \
  8392. (This)->lpVtbl -> GetDescription(This,pbstrDesc)
  8393. #define ITfDisplayAttributeInfo_GetAttributeInfo(This,pda) \
  8394. (This)->lpVtbl -> GetAttributeInfo(This,pda)
  8395. #define ITfDisplayAttributeInfo_SetAttributeInfo(This,pda) \
  8396. (This)->lpVtbl -> SetAttributeInfo(This,pda)
  8397. #define ITfDisplayAttributeInfo_Reset(This) \
  8398. (This)->lpVtbl -> Reset(This)
  8399. #endif /* COBJMACROS */
  8400. #endif /* C style interface */
  8401. HRESULT STDMETHODCALLTYPE ITfDisplayAttributeInfo_GetGUID_Proxy(
  8402. ITfDisplayAttributeInfo * This,
  8403. /* [out] */ GUID *pguid);
  8404. void __RPC_STUB ITfDisplayAttributeInfo_GetGUID_Stub(
  8405. IRpcStubBuffer *This,
  8406. IRpcChannelBuffer *_pRpcChannelBuffer,
  8407. PRPC_MESSAGE _pRpcMessage,
  8408. DWORD *_pdwStubPhase);
  8409. HRESULT STDMETHODCALLTYPE ITfDisplayAttributeInfo_GetDescription_Proxy(
  8410. ITfDisplayAttributeInfo * This,
  8411. /* [out] */ BSTR *pbstrDesc);
  8412. void __RPC_STUB ITfDisplayAttributeInfo_GetDescription_Stub(
  8413. IRpcStubBuffer *This,
  8414. IRpcChannelBuffer *_pRpcChannelBuffer,
  8415. PRPC_MESSAGE _pRpcMessage,
  8416. DWORD *_pdwStubPhase);
  8417. HRESULT STDMETHODCALLTYPE ITfDisplayAttributeInfo_GetAttributeInfo_Proxy(
  8418. ITfDisplayAttributeInfo * This,
  8419. /* [out] */ TF_DISPLAYATTRIBUTE *pda);
  8420. void __RPC_STUB ITfDisplayAttributeInfo_GetAttributeInfo_Stub(
  8421. IRpcStubBuffer *This,
  8422. IRpcChannelBuffer *_pRpcChannelBuffer,
  8423. PRPC_MESSAGE _pRpcMessage,
  8424. DWORD *_pdwStubPhase);
  8425. HRESULT STDMETHODCALLTYPE ITfDisplayAttributeInfo_SetAttributeInfo_Proxy(
  8426. ITfDisplayAttributeInfo * This,
  8427. /* [in] */ TF_DISPLAYATTRIBUTE *pda);
  8428. void __RPC_STUB ITfDisplayAttributeInfo_SetAttributeInfo_Stub(
  8429. IRpcStubBuffer *This,
  8430. IRpcChannelBuffer *_pRpcChannelBuffer,
  8431. PRPC_MESSAGE _pRpcMessage,
  8432. DWORD *_pdwStubPhase);
  8433. HRESULT STDMETHODCALLTYPE ITfDisplayAttributeInfo_Reset_Proxy(
  8434. ITfDisplayAttributeInfo * This);
  8435. void __RPC_STUB ITfDisplayAttributeInfo_Reset_Stub(
  8436. IRpcStubBuffer *This,
  8437. IRpcChannelBuffer *_pRpcChannelBuffer,
  8438. PRPC_MESSAGE _pRpcMessage,
  8439. DWORD *_pdwStubPhase);
  8440. #endif /* __ITfDisplayAttributeInfo_INTERFACE_DEFINED__ */
  8441. #ifndef __IEnumTfDisplayAttributeInfo_INTERFACE_DEFINED__
  8442. #define __IEnumTfDisplayAttributeInfo_INTERFACE_DEFINED__
  8443. /* interface IEnumTfDisplayAttributeInfo */
  8444. /* [unique][uuid][object] */
  8445. EXTERN_C const IID IID_IEnumTfDisplayAttributeInfo;
  8446. #if defined(__cplusplus) && !defined(CINTERFACE)
  8447. MIDL_INTERFACE("7cef04d7-cb75-4e80-a7ab-5f5bc7d332de")
  8448. IEnumTfDisplayAttributeInfo : public IUnknown
  8449. {
  8450. public:
  8451. virtual HRESULT STDMETHODCALLTYPE Clone(
  8452. /* [out] */ IEnumTfDisplayAttributeInfo **ppEnum) = 0;
  8453. virtual HRESULT STDMETHODCALLTYPE Next(
  8454. /* [in] */ ULONG ulCount,
  8455. /* [length_is][size_is][out] */ ITfDisplayAttributeInfo **rgInfo,
  8456. /* [out] */ ULONG *pcFetched) = 0;
  8457. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  8458. virtual HRESULT STDMETHODCALLTYPE Skip(
  8459. /* [in] */ ULONG ulCount) = 0;
  8460. };
  8461. #else /* C style interface */
  8462. typedef struct IEnumTfDisplayAttributeInfoVtbl
  8463. {
  8464. BEGIN_INTERFACE
  8465. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  8466. IEnumTfDisplayAttributeInfo * This,
  8467. /* [in] */ REFIID riid,
  8468. /* [iid_is][out] */ void **ppvObject);
  8469. ULONG ( STDMETHODCALLTYPE *AddRef )(
  8470. IEnumTfDisplayAttributeInfo * This);
  8471. ULONG ( STDMETHODCALLTYPE *Release )(
  8472. IEnumTfDisplayAttributeInfo * This);
  8473. HRESULT ( STDMETHODCALLTYPE *Clone )(
  8474. IEnumTfDisplayAttributeInfo * This,
  8475. /* [out] */ IEnumTfDisplayAttributeInfo **ppEnum);
  8476. HRESULT ( STDMETHODCALLTYPE *Next )(
  8477. IEnumTfDisplayAttributeInfo * This,
  8478. /* [in] */ ULONG ulCount,
  8479. /* [length_is][size_is][out] */ ITfDisplayAttributeInfo **rgInfo,
  8480. /* [out] */ ULONG *pcFetched);
  8481. HRESULT ( STDMETHODCALLTYPE *Reset )(
  8482. IEnumTfDisplayAttributeInfo * This);
  8483. HRESULT ( STDMETHODCALLTYPE *Skip )(
  8484. IEnumTfDisplayAttributeInfo * This,
  8485. /* [in] */ ULONG ulCount);
  8486. END_INTERFACE
  8487. } IEnumTfDisplayAttributeInfoVtbl;
  8488. interface IEnumTfDisplayAttributeInfo
  8489. {
  8490. CONST_VTBL struct IEnumTfDisplayAttributeInfoVtbl *lpVtbl;
  8491. };
  8492. #ifdef COBJMACROS
  8493. #define IEnumTfDisplayAttributeInfo_QueryInterface(This,riid,ppvObject) \
  8494. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  8495. #define IEnumTfDisplayAttributeInfo_AddRef(This) \
  8496. (This)->lpVtbl -> AddRef(This)
  8497. #define IEnumTfDisplayAttributeInfo_Release(This) \
  8498. (This)->lpVtbl -> Release(This)
  8499. #define IEnumTfDisplayAttributeInfo_Clone(This,ppEnum) \
  8500. (This)->lpVtbl -> Clone(This,ppEnum)
  8501. #define IEnumTfDisplayAttributeInfo_Next(This,ulCount,rgInfo,pcFetched) \
  8502. (This)->lpVtbl -> Next(This,ulCount,rgInfo,pcFetched)
  8503. #define IEnumTfDisplayAttributeInfo_Reset(This) \
  8504. (This)->lpVtbl -> Reset(This)
  8505. #define IEnumTfDisplayAttributeInfo_Skip(This,ulCount) \
  8506. (This)->lpVtbl -> Skip(This,ulCount)
  8507. #endif /* COBJMACROS */
  8508. #endif /* C style interface */
  8509. HRESULT STDMETHODCALLTYPE IEnumTfDisplayAttributeInfo_Clone_Proxy(
  8510. IEnumTfDisplayAttributeInfo * This,
  8511. /* [out] */ IEnumTfDisplayAttributeInfo **ppEnum);
  8512. void __RPC_STUB IEnumTfDisplayAttributeInfo_Clone_Stub(
  8513. IRpcStubBuffer *This,
  8514. IRpcChannelBuffer *_pRpcChannelBuffer,
  8515. PRPC_MESSAGE _pRpcMessage,
  8516. DWORD *_pdwStubPhase);
  8517. HRESULT STDMETHODCALLTYPE IEnumTfDisplayAttributeInfo_Next_Proxy(
  8518. IEnumTfDisplayAttributeInfo * This,
  8519. /* [in] */ ULONG ulCount,
  8520. /* [length_is][size_is][out] */ ITfDisplayAttributeInfo **rgInfo,
  8521. /* [out] */ ULONG *pcFetched);
  8522. void __RPC_STUB IEnumTfDisplayAttributeInfo_Next_Stub(
  8523. IRpcStubBuffer *This,
  8524. IRpcChannelBuffer *_pRpcChannelBuffer,
  8525. PRPC_MESSAGE _pRpcMessage,
  8526. DWORD *_pdwStubPhase);
  8527. HRESULT STDMETHODCALLTYPE IEnumTfDisplayAttributeInfo_Reset_Proxy(
  8528. IEnumTfDisplayAttributeInfo * This);
  8529. void __RPC_STUB IEnumTfDisplayAttributeInfo_Reset_Stub(
  8530. IRpcStubBuffer *This,
  8531. IRpcChannelBuffer *_pRpcChannelBuffer,
  8532. PRPC_MESSAGE _pRpcMessage,
  8533. DWORD *_pdwStubPhase);
  8534. HRESULT STDMETHODCALLTYPE IEnumTfDisplayAttributeInfo_Skip_Proxy(
  8535. IEnumTfDisplayAttributeInfo * This,
  8536. /* [in] */ ULONG ulCount);
  8537. void __RPC_STUB IEnumTfDisplayAttributeInfo_Skip_Stub(
  8538. IRpcStubBuffer *This,
  8539. IRpcChannelBuffer *_pRpcChannelBuffer,
  8540. PRPC_MESSAGE _pRpcMessage,
  8541. DWORD *_pdwStubPhase);
  8542. #endif /* __IEnumTfDisplayAttributeInfo_INTERFACE_DEFINED__ */
  8543. #ifndef __ITfDisplayAttributeProvider_INTERFACE_DEFINED__
  8544. #define __ITfDisplayAttributeProvider_INTERFACE_DEFINED__
  8545. /* interface ITfDisplayAttributeProvider */
  8546. /* [unique][uuid][object] */
  8547. EXTERN_C const IID IID_ITfDisplayAttributeProvider;
  8548. #if defined(__cplusplus) && !defined(CINTERFACE)
  8549. MIDL_INTERFACE("fee47777-163c-4769-996a-6e9c50ad8f54")
  8550. ITfDisplayAttributeProvider : public IUnknown
  8551. {
  8552. public:
  8553. virtual HRESULT STDMETHODCALLTYPE EnumDisplayAttributeInfo(
  8554. /* [out] */ IEnumTfDisplayAttributeInfo **ppEnum) = 0;
  8555. virtual HRESULT STDMETHODCALLTYPE GetDisplayAttributeInfo(
  8556. /* [in] */ REFGUID guid,
  8557. /* [out] */ ITfDisplayAttributeInfo **ppInfo) = 0;
  8558. };
  8559. #else /* C style interface */
  8560. typedef struct ITfDisplayAttributeProviderVtbl
  8561. {
  8562. BEGIN_INTERFACE
  8563. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  8564. ITfDisplayAttributeProvider * This,
  8565. /* [in] */ REFIID riid,
  8566. /* [iid_is][out] */ void **ppvObject);
  8567. ULONG ( STDMETHODCALLTYPE *AddRef )(
  8568. ITfDisplayAttributeProvider * This);
  8569. ULONG ( STDMETHODCALLTYPE *Release )(
  8570. ITfDisplayAttributeProvider * This);
  8571. HRESULT ( STDMETHODCALLTYPE *EnumDisplayAttributeInfo )(
  8572. ITfDisplayAttributeProvider * This,
  8573. /* [out] */ IEnumTfDisplayAttributeInfo **ppEnum);
  8574. HRESULT ( STDMETHODCALLTYPE *GetDisplayAttributeInfo )(
  8575. ITfDisplayAttributeProvider * This,
  8576. /* [in] */ REFGUID guid,
  8577. /* [out] */ ITfDisplayAttributeInfo **ppInfo);
  8578. END_INTERFACE
  8579. } ITfDisplayAttributeProviderVtbl;
  8580. interface ITfDisplayAttributeProvider
  8581. {
  8582. CONST_VTBL struct ITfDisplayAttributeProviderVtbl *lpVtbl;
  8583. };
  8584. #ifdef COBJMACROS
  8585. #define ITfDisplayAttributeProvider_QueryInterface(This,riid,ppvObject) \
  8586. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  8587. #define ITfDisplayAttributeProvider_AddRef(This) \
  8588. (This)->lpVtbl -> AddRef(This)
  8589. #define ITfDisplayAttributeProvider_Release(This) \
  8590. (This)->lpVtbl -> Release(This)
  8591. #define ITfDisplayAttributeProvider_EnumDisplayAttributeInfo(This,ppEnum) \
  8592. (This)->lpVtbl -> EnumDisplayAttributeInfo(This,ppEnum)
  8593. #define ITfDisplayAttributeProvider_GetDisplayAttributeInfo(This,guid,ppInfo) \
  8594. (This)->lpVtbl -> GetDisplayAttributeInfo(This,guid,ppInfo)
  8595. #endif /* COBJMACROS */
  8596. #endif /* C style interface */
  8597. HRESULT STDMETHODCALLTYPE ITfDisplayAttributeProvider_EnumDisplayAttributeInfo_Proxy(
  8598. ITfDisplayAttributeProvider * This,
  8599. /* [out] */ IEnumTfDisplayAttributeInfo **ppEnum);
  8600. void __RPC_STUB ITfDisplayAttributeProvider_EnumDisplayAttributeInfo_Stub(
  8601. IRpcStubBuffer *This,
  8602. IRpcChannelBuffer *_pRpcChannelBuffer,
  8603. PRPC_MESSAGE _pRpcMessage,
  8604. DWORD *_pdwStubPhase);
  8605. HRESULT STDMETHODCALLTYPE ITfDisplayAttributeProvider_GetDisplayAttributeInfo_Proxy(
  8606. ITfDisplayAttributeProvider * This,
  8607. /* [in] */ REFGUID guid,
  8608. /* [out] */ ITfDisplayAttributeInfo **ppInfo);
  8609. void __RPC_STUB ITfDisplayAttributeProvider_GetDisplayAttributeInfo_Stub(
  8610. IRpcStubBuffer *This,
  8611. IRpcChannelBuffer *_pRpcChannelBuffer,
  8612. PRPC_MESSAGE _pRpcMessage,
  8613. DWORD *_pdwStubPhase);
  8614. #endif /* __ITfDisplayAttributeProvider_INTERFACE_DEFINED__ */
  8615. #ifndef __ITfDisplayAttributeMgr_INTERFACE_DEFINED__
  8616. #define __ITfDisplayAttributeMgr_INTERFACE_DEFINED__
  8617. /* interface ITfDisplayAttributeMgr */
  8618. /* [unique][uuid][local][object] */
  8619. EXTERN_C const IID IID_ITfDisplayAttributeMgr;
  8620. #if defined(__cplusplus) && !defined(CINTERFACE)
  8621. MIDL_INTERFACE("8ded7393-5db1-475c-9e71-a39111b0ff67")
  8622. ITfDisplayAttributeMgr : public IUnknown
  8623. {
  8624. public:
  8625. virtual HRESULT STDMETHODCALLTYPE OnUpdateInfo( void) = 0;
  8626. virtual HRESULT STDMETHODCALLTYPE EnumDisplayAttributeInfo(
  8627. /* [out] */ IEnumTfDisplayAttributeInfo **ppEnum) = 0;
  8628. virtual HRESULT STDMETHODCALLTYPE GetDisplayAttributeInfo(
  8629. /* [in] */ REFGUID guid,
  8630. /* [out] */ ITfDisplayAttributeInfo **ppInfo,
  8631. /* [out] */ CLSID *pclsidOwner) = 0;
  8632. };
  8633. #else /* C style interface */
  8634. typedef struct ITfDisplayAttributeMgrVtbl
  8635. {
  8636. BEGIN_INTERFACE
  8637. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  8638. ITfDisplayAttributeMgr * This,
  8639. /* [in] */ REFIID riid,
  8640. /* [iid_is][out] */ void **ppvObject);
  8641. ULONG ( STDMETHODCALLTYPE *AddRef )(
  8642. ITfDisplayAttributeMgr * This);
  8643. ULONG ( STDMETHODCALLTYPE *Release )(
  8644. ITfDisplayAttributeMgr * This);
  8645. HRESULT ( STDMETHODCALLTYPE *OnUpdateInfo )(
  8646. ITfDisplayAttributeMgr * This);
  8647. HRESULT ( STDMETHODCALLTYPE *EnumDisplayAttributeInfo )(
  8648. ITfDisplayAttributeMgr * This,
  8649. /* [out] */ IEnumTfDisplayAttributeInfo **ppEnum);
  8650. HRESULT ( STDMETHODCALLTYPE *GetDisplayAttributeInfo )(
  8651. ITfDisplayAttributeMgr * This,
  8652. /* [in] */ REFGUID guid,
  8653. /* [out] */ ITfDisplayAttributeInfo **ppInfo,
  8654. /* [out] */ CLSID *pclsidOwner);
  8655. END_INTERFACE
  8656. } ITfDisplayAttributeMgrVtbl;
  8657. interface ITfDisplayAttributeMgr
  8658. {
  8659. CONST_VTBL struct ITfDisplayAttributeMgrVtbl *lpVtbl;
  8660. };
  8661. #ifdef COBJMACROS
  8662. #define ITfDisplayAttributeMgr_QueryInterface(This,riid,ppvObject) \
  8663. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  8664. #define ITfDisplayAttributeMgr_AddRef(This) \
  8665. (This)->lpVtbl -> AddRef(This)
  8666. #define ITfDisplayAttributeMgr_Release(This) \
  8667. (This)->lpVtbl -> Release(This)
  8668. #define ITfDisplayAttributeMgr_OnUpdateInfo(This) \
  8669. (This)->lpVtbl -> OnUpdateInfo(This)
  8670. #define ITfDisplayAttributeMgr_EnumDisplayAttributeInfo(This,ppEnum) \
  8671. (This)->lpVtbl -> EnumDisplayAttributeInfo(This,ppEnum)
  8672. #define ITfDisplayAttributeMgr_GetDisplayAttributeInfo(This,guid,ppInfo,pclsidOwner) \
  8673. (This)->lpVtbl -> GetDisplayAttributeInfo(This,guid,ppInfo,pclsidOwner)
  8674. #endif /* COBJMACROS */
  8675. #endif /* C style interface */
  8676. HRESULT STDMETHODCALLTYPE ITfDisplayAttributeMgr_OnUpdateInfo_Proxy(
  8677. ITfDisplayAttributeMgr * This);
  8678. void __RPC_STUB ITfDisplayAttributeMgr_OnUpdateInfo_Stub(
  8679. IRpcStubBuffer *This,
  8680. IRpcChannelBuffer *_pRpcChannelBuffer,
  8681. PRPC_MESSAGE _pRpcMessage,
  8682. DWORD *_pdwStubPhase);
  8683. HRESULT STDMETHODCALLTYPE ITfDisplayAttributeMgr_EnumDisplayAttributeInfo_Proxy(
  8684. ITfDisplayAttributeMgr * This,
  8685. /* [out] */ IEnumTfDisplayAttributeInfo **ppEnum);
  8686. void __RPC_STUB ITfDisplayAttributeMgr_EnumDisplayAttributeInfo_Stub(
  8687. IRpcStubBuffer *This,
  8688. IRpcChannelBuffer *_pRpcChannelBuffer,
  8689. PRPC_MESSAGE _pRpcMessage,
  8690. DWORD *_pdwStubPhase);
  8691. HRESULT STDMETHODCALLTYPE ITfDisplayAttributeMgr_GetDisplayAttributeInfo_Proxy(
  8692. ITfDisplayAttributeMgr * This,
  8693. /* [in] */ REFGUID guid,
  8694. /* [out] */ ITfDisplayAttributeInfo **ppInfo,
  8695. /* [out] */ CLSID *pclsidOwner);
  8696. void __RPC_STUB ITfDisplayAttributeMgr_GetDisplayAttributeInfo_Stub(
  8697. IRpcStubBuffer *This,
  8698. IRpcChannelBuffer *_pRpcChannelBuffer,
  8699. PRPC_MESSAGE _pRpcMessage,
  8700. DWORD *_pdwStubPhase);
  8701. #endif /* __ITfDisplayAttributeMgr_INTERFACE_DEFINED__ */
  8702. #ifndef __ITfDisplayAttributeNotifySink_INTERFACE_DEFINED__
  8703. #define __ITfDisplayAttributeNotifySink_INTERFACE_DEFINED__
  8704. /* interface ITfDisplayAttributeNotifySink */
  8705. /* [unique][uuid][object] */
  8706. EXTERN_C const IID IID_ITfDisplayAttributeNotifySink;
  8707. #if defined(__cplusplus) && !defined(CINTERFACE)
  8708. MIDL_INTERFACE("ad56f402-e162-4f25-908f-7d577cf9bda9")
  8709. ITfDisplayAttributeNotifySink : public IUnknown
  8710. {
  8711. public:
  8712. virtual HRESULT STDMETHODCALLTYPE OnUpdateInfo( void) = 0;
  8713. };
  8714. #else /* C style interface */
  8715. typedef struct ITfDisplayAttributeNotifySinkVtbl
  8716. {
  8717. BEGIN_INTERFACE
  8718. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  8719. ITfDisplayAttributeNotifySink * This,
  8720. /* [in] */ REFIID riid,
  8721. /* [iid_is][out] */ void **ppvObject);
  8722. ULONG ( STDMETHODCALLTYPE *AddRef )(
  8723. ITfDisplayAttributeNotifySink * This);
  8724. ULONG ( STDMETHODCALLTYPE *Release )(
  8725. ITfDisplayAttributeNotifySink * This);
  8726. HRESULT ( STDMETHODCALLTYPE *OnUpdateInfo )(
  8727. ITfDisplayAttributeNotifySink * This);
  8728. END_INTERFACE
  8729. } ITfDisplayAttributeNotifySinkVtbl;
  8730. interface ITfDisplayAttributeNotifySink
  8731. {
  8732. CONST_VTBL struct ITfDisplayAttributeNotifySinkVtbl *lpVtbl;
  8733. };
  8734. #ifdef COBJMACROS
  8735. #define ITfDisplayAttributeNotifySink_QueryInterface(This,riid,ppvObject) \
  8736. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  8737. #define ITfDisplayAttributeNotifySink_AddRef(This) \
  8738. (This)->lpVtbl -> AddRef(This)
  8739. #define ITfDisplayAttributeNotifySink_Release(This) \
  8740. (This)->lpVtbl -> Release(This)
  8741. #define ITfDisplayAttributeNotifySink_OnUpdateInfo(This) \
  8742. (This)->lpVtbl -> OnUpdateInfo(This)
  8743. #endif /* COBJMACROS */
  8744. #endif /* C style interface */
  8745. HRESULT STDMETHODCALLTYPE ITfDisplayAttributeNotifySink_OnUpdateInfo_Proxy(
  8746. ITfDisplayAttributeNotifySink * This);
  8747. void __RPC_STUB ITfDisplayAttributeNotifySink_OnUpdateInfo_Stub(
  8748. IRpcStubBuffer *This,
  8749. IRpcChannelBuffer *_pRpcChannelBuffer,
  8750. PRPC_MESSAGE _pRpcMessage,
  8751. DWORD *_pdwStubPhase);
  8752. #endif /* __ITfDisplayAttributeNotifySink_INTERFACE_DEFINED__ */
  8753. #ifndef __ITfCategoryMgr_INTERFACE_DEFINED__
  8754. #define __ITfCategoryMgr_INTERFACE_DEFINED__
  8755. /* interface ITfCategoryMgr */
  8756. /* [unique][uuid][local][object] */
  8757. EXTERN_C const IID IID_ITfCategoryMgr;
  8758. #if defined(__cplusplus) && !defined(CINTERFACE)
  8759. MIDL_INTERFACE("c3acefb5-f69d-4905-938f-fcadcf4be830")
  8760. ITfCategoryMgr : public IUnknown
  8761. {
  8762. public:
  8763. virtual HRESULT STDMETHODCALLTYPE RegisterCategory(
  8764. /* [in] */ REFCLSID rclsid,
  8765. /* [in] */ REFGUID rcatid,
  8766. /* [in] */ REFGUID rguid) = 0;
  8767. virtual HRESULT STDMETHODCALLTYPE UnregisterCategory(
  8768. /* [in] */ REFCLSID rclsid,
  8769. /* [in] */ REFGUID rcatid,
  8770. /* [in] */ REFGUID rguid) = 0;
  8771. virtual HRESULT STDMETHODCALLTYPE EnumCategoriesInItem(
  8772. /* [in] */ REFGUID rguid,
  8773. /* [out] */ IEnumGUID **ppEnum) = 0;
  8774. virtual HRESULT STDMETHODCALLTYPE EnumItemsInCategory(
  8775. /* [in] */ REFGUID rcatid,
  8776. /* [out] */ IEnumGUID **ppEnum) = 0;
  8777. virtual HRESULT STDMETHODCALLTYPE FindClosestCategory(
  8778. /* [in] */ REFGUID rguid,
  8779. /* [out] */ GUID *pcatid,
  8780. /* [size_is][in] */ const GUID **ppcatidList,
  8781. /* [in] */ ULONG ulCount) = 0;
  8782. virtual HRESULT STDMETHODCALLTYPE RegisterGUIDDescription(
  8783. /* [in] */ REFCLSID rclsid,
  8784. /* [in] */ REFGUID rguid,
  8785. /* [size_is][in] */ const WCHAR *pchDesc,
  8786. /* [in] */ ULONG cch) = 0;
  8787. virtual HRESULT STDMETHODCALLTYPE UnregisterGUIDDescription(
  8788. /* [in] */ REFCLSID rclsid,
  8789. /* [in] */ REFGUID rguid) = 0;
  8790. virtual HRESULT STDMETHODCALLTYPE GetGUIDDescription(
  8791. /* [in] */ REFGUID rguid,
  8792. /* [out] */ BSTR *pbstrDesc) = 0;
  8793. virtual HRESULT STDMETHODCALLTYPE RegisterGUIDDWORD(
  8794. /* [in] */ REFCLSID rclsid,
  8795. /* [in] */ REFGUID rguid,
  8796. /* [in] */ DWORD dw) = 0;
  8797. virtual HRESULT STDMETHODCALLTYPE UnregisterGUIDDWORD(
  8798. /* [in] */ REFCLSID rclsid,
  8799. /* [in] */ REFGUID rguid) = 0;
  8800. virtual HRESULT STDMETHODCALLTYPE GetGUIDDWORD(
  8801. /* [in] */ REFGUID rguid,
  8802. /* [out] */ DWORD *pdw) = 0;
  8803. virtual HRESULT STDMETHODCALLTYPE RegisterGUID(
  8804. /* [in] */ REFGUID rguid,
  8805. /* [out] */ TfGuidAtom *pguidatom) = 0;
  8806. virtual HRESULT STDMETHODCALLTYPE GetGUID(
  8807. /* [in] */ TfGuidAtom guidatom,
  8808. /* [out] */ GUID *pguid) = 0;
  8809. virtual HRESULT STDMETHODCALLTYPE IsEqualTfGuidAtom(
  8810. /* [in] */ TfGuidAtom guidatom,
  8811. /* [in] */ REFGUID rguid,
  8812. /* [out] */ BOOL *pfEqual) = 0;
  8813. };
  8814. #else /* C style interface */
  8815. typedef struct ITfCategoryMgrVtbl
  8816. {
  8817. BEGIN_INTERFACE
  8818. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  8819. ITfCategoryMgr * This,
  8820. /* [in] */ REFIID riid,
  8821. /* [iid_is][out] */ void **ppvObject);
  8822. ULONG ( STDMETHODCALLTYPE *AddRef )(
  8823. ITfCategoryMgr * This);
  8824. ULONG ( STDMETHODCALLTYPE *Release )(
  8825. ITfCategoryMgr * This);
  8826. HRESULT ( STDMETHODCALLTYPE *RegisterCategory )(
  8827. ITfCategoryMgr * This,
  8828. /* [in] */ REFCLSID rclsid,
  8829. /* [in] */ REFGUID rcatid,
  8830. /* [in] */ REFGUID rguid);
  8831. HRESULT ( STDMETHODCALLTYPE *UnregisterCategory )(
  8832. ITfCategoryMgr * This,
  8833. /* [in] */ REFCLSID rclsid,
  8834. /* [in] */ REFGUID rcatid,
  8835. /* [in] */ REFGUID rguid);
  8836. HRESULT ( STDMETHODCALLTYPE *EnumCategoriesInItem )(
  8837. ITfCategoryMgr * This,
  8838. /* [in] */ REFGUID rguid,
  8839. /* [out] */ IEnumGUID **ppEnum);
  8840. HRESULT ( STDMETHODCALLTYPE *EnumItemsInCategory )(
  8841. ITfCategoryMgr * This,
  8842. /* [in] */ REFGUID rcatid,
  8843. /* [out] */ IEnumGUID **ppEnum);
  8844. HRESULT ( STDMETHODCALLTYPE *FindClosestCategory )(
  8845. ITfCategoryMgr * This,
  8846. /* [in] */ REFGUID rguid,
  8847. /* [out] */ GUID *pcatid,
  8848. /* [size_is][in] */ const GUID **ppcatidList,
  8849. /* [in] */ ULONG ulCount);
  8850. HRESULT ( STDMETHODCALLTYPE *RegisterGUIDDescription )(
  8851. ITfCategoryMgr * This,
  8852. /* [in] */ REFCLSID rclsid,
  8853. /* [in] */ REFGUID rguid,
  8854. /* [size_is][in] */ const WCHAR *pchDesc,
  8855. /* [in] */ ULONG cch);
  8856. HRESULT ( STDMETHODCALLTYPE *UnregisterGUIDDescription )(
  8857. ITfCategoryMgr * This,
  8858. /* [in] */ REFCLSID rclsid,
  8859. /* [in] */ REFGUID rguid);
  8860. HRESULT ( STDMETHODCALLTYPE *GetGUIDDescription )(
  8861. ITfCategoryMgr * This,
  8862. /* [in] */ REFGUID rguid,
  8863. /* [out] */ BSTR *pbstrDesc);
  8864. HRESULT ( STDMETHODCALLTYPE *RegisterGUIDDWORD )(
  8865. ITfCategoryMgr * This,
  8866. /* [in] */ REFCLSID rclsid,
  8867. /* [in] */ REFGUID rguid,
  8868. /* [in] */ DWORD dw);
  8869. HRESULT ( STDMETHODCALLTYPE *UnregisterGUIDDWORD )(
  8870. ITfCategoryMgr * This,
  8871. /* [in] */ REFCLSID rclsid,
  8872. /* [in] */ REFGUID rguid);
  8873. HRESULT ( STDMETHODCALLTYPE *GetGUIDDWORD )(
  8874. ITfCategoryMgr * This,
  8875. /* [in] */ REFGUID rguid,
  8876. /* [out] */ DWORD *pdw);
  8877. HRESULT ( STDMETHODCALLTYPE *RegisterGUID )(
  8878. ITfCategoryMgr * This,
  8879. /* [in] */ REFGUID rguid,
  8880. /* [out] */ TfGuidAtom *pguidatom);
  8881. HRESULT ( STDMETHODCALLTYPE *GetGUID )(
  8882. ITfCategoryMgr * This,
  8883. /* [in] */ TfGuidAtom guidatom,
  8884. /* [out] */ GUID *pguid);
  8885. HRESULT ( STDMETHODCALLTYPE *IsEqualTfGuidAtom )(
  8886. ITfCategoryMgr * This,
  8887. /* [in] */ TfGuidAtom guidatom,
  8888. /* [in] */ REFGUID rguid,
  8889. /* [out] */ BOOL *pfEqual);
  8890. END_INTERFACE
  8891. } ITfCategoryMgrVtbl;
  8892. interface ITfCategoryMgr
  8893. {
  8894. CONST_VTBL struct ITfCategoryMgrVtbl *lpVtbl;
  8895. };
  8896. #ifdef COBJMACROS
  8897. #define ITfCategoryMgr_QueryInterface(This,riid,ppvObject) \
  8898. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  8899. #define ITfCategoryMgr_AddRef(This) \
  8900. (This)->lpVtbl -> AddRef(This)
  8901. #define ITfCategoryMgr_Release(This) \
  8902. (This)->lpVtbl -> Release(This)
  8903. #define ITfCategoryMgr_RegisterCategory(This,rclsid,rcatid,rguid) \
  8904. (This)->lpVtbl -> RegisterCategory(This,rclsid,rcatid,rguid)
  8905. #define ITfCategoryMgr_UnregisterCategory(This,rclsid,rcatid,rguid) \
  8906. (This)->lpVtbl -> UnregisterCategory(This,rclsid,rcatid,rguid)
  8907. #define ITfCategoryMgr_EnumCategoriesInItem(This,rguid,ppEnum) \
  8908. (This)->lpVtbl -> EnumCategoriesInItem(This,rguid,ppEnum)
  8909. #define ITfCategoryMgr_EnumItemsInCategory(This,rcatid,ppEnum) \
  8910. (This)->lpVtbl -> EnumItemsInCategory(This,rcatid,ppEnum)
  8911. #define ITfCategoryMgr_FindClosestCategory(This,rguid,pcatid,ppcatidList,ulCount) \
  8912. (This)->lpVtbl -> FindClosestCategory(This,rguid,pcatid,ppcatidList,ulCount)
  8913. #define ITfCategoryMgr_RegisterGUIDDescription(This,rclsid,rguid,pchDesc,cch) \
  8914. (This)->lpVtbl -> RegisterGUIDDescription(This,rclsid,rguid,pchDesc,cch)
  8915. #define ITfCategoryMgr_UnregisterGUIDDescription(This,rclsid,rguid) \
  8916. (This)->lpVtbl -> UnregisterGUIDDescription(This,rclsid,rguid)
  8917. #define ITfCategoryMgr_GetGUIDDescription(This,rguid,pbstrDesc) \
  8918. (This)->lpVtbl -> GetGUIDDescription(This,rguid,pbstrDesc)
  8919. #define ITfCategoryMgr_RegisterGUIDDWORD(This,rclsid,rguid,dw) \
  8920. (This)->lpVtbl -> RegisterGUIDDWORD(This,rclsid,rguid,dw)
  8921. #define ITfCategoryMgr_UnregisterGUIDDWORD(This,rclsid,rguid) \
  8922. (This)->lpVtbl -> UnregisterGUIDDWORD(This,rclsid,rguid)
  8923. #define ITfCategoryMgr_GetGUIDDWORD(This,rguid,pdw) \
  8924. (This)->lpVtbl -> GetGUIDDWORD(This,rguid,pdw)
  8925. #define ITfCategoryMgr_RegisterGUID(This,rguid,pguidatom) \
  8926. (This)->lpVtbl -> RegisterGUID(This,rguid,pguidatom)
  8927. #define ITfCategoryMgr_GetGUID(This,guidatom,pguid) \
  8928. (This)->lpVtbl -> GetGUID(This,guidatom,pguid)
  8929. #define ITfCategoryMgr_IsEqualTfGuidAtom(This,guidatom,rguid,pfEqual) \
  8930. (This)->lpVtbl -> IsEqualTfGuidAtom(This,guidatom,rguid,pfEqual)
  8931. #endif /* COBJMACROS */
  8932. #endif /* C style interface */
  8933. HRESULT STDMETHODCALLTYPE ITfCategoryMgr_RegisterCategory_Proxy(
  8934. ITfCategoryMgr * This,
  8935. /* [in] */ REFCLSID rclsid,
  8936. /* [in] */ REFGUID rcatid,
  8937. /* [in] */ REFGUID rguid);
  8938. void __RPC_STUB ITfCategoryMgr_RegisterCategory_Stub(
  8939. IRpcStubBuffer *This,
  8940. IRpcChannelBuffer *_pRpcChannelBuffer,
  8941. PRPC_MESSAGE _pRpcMessage,
  8942. DWORD *_pdwStubPhase);
  8943. HRESULT STDMETHODCALLTYPE ITfCategoryMgr_UnregisterCategory_Proxy(
  8944. ITfCategoryMgr * This,
  8945. /* [in] */ REFCLSID rclsid,
  8946. /* [in] */ REFGUID rcatid,
  8947. /* [in] */ REFGUID rguid);
  8948. void __RPC_STUB ITfCategoryMgr_UnregisterCategory_Stub(
  8949. IRpcStubBuffer *This,
  8950. IRpcChannelBuffer *_pRpcChannelBuffer,
  8951. PRPC_MESSAGE _pRpcMessage,
  8952. DWORD *_pdwStubPhase);
  8953. HRESULT STDMETHODCALLTYPE ITfCategoryMgr_EnumCategoriesInItem_Proxy(
  8954. ITfCategoryMgr * This,
  8955. /* [in] */ REFGUID rguid,
  8956. /* [out] */ IEnumGUID **ppEnum);
  8957. void __RPC_STUB ITfCategoryMgr_EnumCategoriesInItem_Stub(
  8958. IRpcStubBuffer *This,
  8959. IRpcChannelBuffer *_pRpcChannelBuffer,
  8960. PRPC_MESSAGE _pRpcMessage,
  8961. DWORD *_pdwStubPhase);
  8962. HRESULT STDMETHODCALLTYPE ITfCategoryMgr_EnumItemsInCategory_Proxy(
  8963. ITfCategoryMgr * This,
  8964. /* [in] */ REFGUID rcatid,
  8965. /* [out] */ IEnumGUID **ppEnum);
  8966. void __RPC_STUB ITfCategoryMgr_EnumItemsInCategory_Stub(
  8967. IRpcStubBuffer *This,
  8968. IRpcChannelBuffer *_pRpcChannelBuffer,
  8969. PRPC_MESSAGE _pRpcMessage,
  8970. DWORD *_pdwStubPhase);
  8971. HRESULT STDMETHODCALLTYPE ITfCategoryMgr_FindClosestCategory_Proxy(
  8972. ITfCategoryMgr * This,
  8973. /* [in] */ REFGUID rguid,
  8974. /* [out] */ GUID *pcatid,
  8975. /* [size_is][in] */ const GUID **ppcatidList,
  8976. /* [in] */ ULONG ulCount);
  8977. void __RPC_STUB ITfCategoryMgr_FindClosestCategory_Stub(
  8978. IRpcStubBuffer *This,
  8979. IRpcChannelBuffer *_pRpcChannelBuffer,
  8980. PRPC_MESSAGE _pRpcMessage,
  8981. DWORD *_pdwStubPhase);
  8982. HRESULT STDMETHODCALLTYPE ITfCategoryMgr_RegisterGUIDDescription_Proxy(
  8983. ITfCategoryMgr * This,
  8984. /* [in] */ REFCLSID rclsid,
  8985. /* [in] */ REFGUID rguid,
  8986. /* [size_is][in] */ const WCHAR *pchDesc,
  8987. /* [in] */ ULONG cch);
  8988. void __RPC_STUB ITfCategoryMgr_RegisterGUIDDescription_Stub(
  8989. IRpcStubBuffer *This,
  8990. IRpcChannelBuffer *_pRpcChannelBuffer,
  8991. PRPC_MESSAGE _pRpcMessage,
  8992. DWORD *_pdwStubPhase);
  8993. HRESULT STDMETHODCALLTYPE ITfCategoryMgr_UnregisterGUIDDescription_Proxy(
  8994. ITfCategoryMgr * This,
  8995. /* [in] */ REFCLSID rclsid,
  8996. /* [in] */ REFGUID rguid);
  8997. void __RPC_STUB ITfCategoryMgr_UnregisterGUIDDescription_Stub(
  8998. IRpcStubBuffer *This,
  8999. IRpcChannelBuffer *_pRpcChannelBuffer,
  9000. PRPC_MESSAGE _pRpcMessage,
  9001. DWORD *_pdwStubPhase);
  9002. HRESULT STDMETHODCALLTYPE ITfCategoryMgr_GetGUIDDescription_Proxy(
  9003. ITfCategoryMgr * This,
  9004. /* [in] */ REFGUID rguid,
  9005. /* [out] */ BSTR *pbstrDesc);
  9006. void __RPC_STUB ITfCategoryMgr_GetGUIDDescription_Stub(
  9007. IRpcStubBuffer *This,
  9008. IRpcChannelBuffer *_pRpcChannelBuffer,
  9009. PRPC_MESSAGE _pRpcMessage,
  9010. DWORD *_pdwStubPhase);
  9011. HRESULT STDMETHODCALLTYPE ITfCategoryMgr_RegisterGUIDDWORD_Proxy(
  9012. ITfCategoryMgr * This,
  9013. /* [in] */ REFCLSID rclsid,
  9014. /* [in] */ REFGUID rguid,
  9015. /* [in] */ DWORD dw);
  9016. void __RPC_STUB ITfCategoryMgr_RegisterGUIDDWORD_Stub(
  9017. IRpcStubBuffer *This,
  9018. IRpcChannelBuffer *_pRpcChannelBuffer,
  9019. PRPC_MESSAGE _pRpcMessage,
  9020. DWORD *_pdwStubPhase);
  9021. HRESULT STDMETHODCALLTYPE ITfCategoryMgr_UnregisterGUIDDWORD_Proxy(
  9022. ITfCategoryMgr * This,
  9023. /* [in] */ REFCLSID rclsid,
  9024. /* [in] */ REFGUID rguid);
  9025. void __RPC_STUB ITfCategoryMgr_UnregisterGUIDDWORD_Stub(
  9026. IRpcStubBuffer *This,
  9027. IRpcChannelBuffer *_pRpcChannelBuffer,
  9028. PRPC_MESSAGE _pRpcMessage,
  9029. DWORD *_pdwStubPhase);
  9030. HRESULT STDMETHODCALLTYPE ITfCategoryMgr_GetGUIDDWORD_Proxy(
  9031. ITfCategoryMgr * This,
  9032. /* [in] */ REFGUID rguid,
  9033. /* [out] */ DWORD *pdw);
  9034. void __RPC_STUB ITfCategoryMgr_GetGUIDDWORD_Stub(
  9035. IRpcStubBuffer *This,
  9036. IRpcChannelBuffer *_pRpcChannelBuffer,
  9037. PRPC_MESSAGE _pRpcMessage,
  9038. DWORD *_pdwStubPhase);
  9039. HRESULT STDMETHODCALLTYPE ITfCategoryMgr_RegisterGUID_Proxy(
  9040. ITfCategoryMgr * This,
  9041. /* [in] */ REFGUID rguid,
  9042. /* [out] */ TfGuidAtom *pguidatom);
  9043. void __RPC_STUB ITfCategoryMgr_RegisterGUID_Stub(
  9044. IRpcStubBuffer *This,
  9045. IRpcChannelBuffer *_pRpcChannelBuffer,
  9046. PRPC_MESSAGE _pRpcMessage,
  9047. DWORD *_pdwStubPhase);
  9048. HRESULT STDMETHODCALLTYPE ITfCategoryMgr_GetGUID_Proxy(
  9049. ITfCategoryMgr * This,
  9050. /* [in] */ TfGuidAtom guidatom,
  9051. /* [out] */ GUID *pguid);
  9052. void __RPC_STUB ITfCategoryMgr_GetGUID_Stub(
  9053. IRpcStubBuffer *This,
  9054. IRpcChannelBuffer *_pRpcChannelBuffer,
  9055. PRPC_MESSAGE _pRpcMessage,
  9056. DWORD *_pdwStubPhase);
  9057. HRESULT STDMETHODCALLTYPE ITfCategoryMgr_IsEqualTfGuidAtom_Proxy(
  9058. ITfCategoryMgr * This,
  9059. /* [in] */ TfGuidAtom guidatom,
  9060. /* [in] */ REFGUID rguid,
  9061. /* [out] */ BOOL *pfEqual);
  9062. void __RPC_STUB ITfCategoryMgr_IsEqualTfGuidAtom_Stub(
  9063. IRpcStubBuffer *This,
  9064. IRpcChannelBuffer *_pRpcChannelBuffer,
  9065. PRPC_MESSAGE _pRpcMessage,
  9066. DWORD *_pdwStubPhase);
  9067. #endif /* __ITfCategoryMgr_INTERFACE_DEFINED__ */
  9068. #ifndef __ITfSource_INTERFACE_DEFINED__
  9069. #define __ITfSource_INTERFACE_DEFINED__
  9070. /* interface ITfSource */
  9071. /* [unique][uuid][object] */
  9072. EXTERN_C const IID IID_ITfSource;
  9073. #if defined(__cplusplus) && !defined(CINTERFACE)
  9074. MIDL_INTERFACE("4ea48a35-60ae-446f-8fd6-e6a8d82459f7")
  9075. ITfSource : public IUnknown
  9076. {
  9077. public:
  9078. virtual HRESULT STDMETHODCALLTYPE AdviseSink(
  9079. /* [in] */ REFIID riid,
  9080. /* [iid_is][in] */ IUnknown *punk,
  9081. /* [out] */ DWORD *pdwCookie) = 0;
  9082. virtual HRESULT STDMETHODCALLTYPE UnadviseSink(
  9083. /* [in] */ DWORD dwCookie) = 0;
  9084. };
  9085. #else /* C style interface */
  9086. typedef struct ITfSourceVtbl
  9087. {
  9088. BEGIN_INTERFACE
  9089. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  9090. ITfSource * This,
  9091. /* [in] */ REFIID riid,
  9092. /* [iid_is][out] */ void **ppvObject);
  9093. ULONG ( STDMETHODCALLTYPE *AddRef )(
  9094. ITfSource * This);
  9095. ULONG ( STDMETHODCALLTYPE *Release )(
  9096. ITfSource * This);
  9097. HRESULT ( STDMETHODCALLTYPE *AdviseSink )(
  9098. ITfSource * This,
  9099. /* [in] */ REFIID riid,
  9100. /* [iid_is][in] */ IUnknown *punk,
  9101. /* [out] */ DWORD *pdwCookie);
  9102. HRESULT ( STDMETHODCALLTYPE *UnadviseSink )(
  9103. ITfSource * This,
  9104. /* [in] */ DWORD dwCookie);
  9105. END_INTERFACE
  9106. } ITfSourceVtbl;
  9107. interface ITfSource
  9108. {
  9109. CONST_VTBL struct ITfSourceVtbl *lpVtbl;
  9110. };
  9111. #ifdef COBJMACROS
  9112. #define ITfSource_QueryInterface(This,riid,ppvObject) \
  9113. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  9114. #define ITfSource_AddRef(This) \
  9115. (This)->lpVtbl -> AddRef(This)
  9116. #define ITfSource_Release(This) \
  9117. (This)->lpVtbl -> Release(This)
  9118. #define ITfSource_AdviseSink(This,riid,punk,pdwCookie) \
  9119. (This)->lpVtbl -> AdviseSink(This,riid,punk,pdwCookie)
  9120. #define ITfSource_UnadviseSink(This,dwCookie) \
  9121. (This)->lpVtbl -> UnadviseSink(This,dwCookie)
  9122. #endif /* COBJMACROS */
  9123. #endif /* C style interface */
  9124. HRESULT STDMETHODCALLTYPE ITfSource_AdviseSink_Proxy(
  9125. ITfSource * This,
  9126. /* [in] */ REFIID riid,
  9127. /* [iid_is][in] */ IUnknown *punk,
  9128. /* [out] */ DWORD *pdwCookie);
  9129. void __RPC_STUB ITfSource_AdviseSink_Stub(
  9130. IRpcStubBuffer *This,
  9131. IRpcChannelBuffer *_pRpcChannelBuffer,
  9132. PRPC_MESSAGE _pRpcMessage,
  9133. DWORD *_pdwStubPhase);
  9134. HRESULT STDMETHODCALLTYPE ITfSource_UnadviseSink_Proxy(
  9135. ITfSource * This,
  9136. /* [in] */ DWORD dwCookie);
  9137. void __RPC_STUB ITfSource_UnadviseSink_Stub(
  9138. IRpcStubBuffer *This,
  9139. IRpcChannelBuffer *_pRpcChannelBuffer,
  9140. PRPC_MESSAGE _pRpcMessage,
  9141. DWORD *_pdwStubPhase);
  9142. #endif /* __ITfSource_INTERFACE_DEFINED__ */
  9143. #ifndef __ITfSourceSingle_INTERFACE_DEFINED__
  9144. #define __ITfSourceSingle_INTERFACE_DEFINED__
  9145. /* interface ITfSourceSingle */
  9146. /* [unique][uuid][object] */
  9147. EXTERN_C const IID IID_ITfSourceSingle;
  9148. #if defined(__cplusplus) && !defined(CINTERFACE)
  9149. MIDL_INTERFACE("73131f9c-56a9-49dd-b0ee-d046633f7528")
  9150. ITfSourceSingle : public IUnknown
  9151. {
  9152. public:
  9153. virtual HRESULT STDMETHODCALLTYPE AdviseSingleSink(
  9154. /* [in] */ TfClientId tid,
  9155. /* [in] */ REFIID riid,
  9156. /* [iid_is][in] */ IUnknown *punk) = 0;
  9157. virtual HRESULT STDMETHODCALLTYPE UnadviseSingleSink(
  9158. /* [in] */ TfClientId tid,
  9159. /* [in] */ REFIID riid) = 0;
  9160. };
  9161. #else /* C style interface */
  9162. typedef struct ITfSourceSingleVtbl
  9163. {
  9164. BEGIN_INTERFACE
  9165. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  9166. ITfSourceSingle * This,
  9167. /* [in] */ REFIID riid,
  9168. /* [iid_is][out] */ void **ppvObject);
  9169. ULONG ( STDMETHODCALLTYPE *AddRef )(
  9170. ITfSourceSingle * This);
  9171. ULONG ( STDMETHODCALLTYPE *Release )(
  9172. ITfSourceSingle * This);
  9173. HRESULT ( STDMETHODCALLTYPE *AdviseSingleSink )(
  9174. ITfSourceSingle * This,
  9175. /* [in] */ TfClientId tid,
  9176. /* [in] */ REFIID riid,
  9177. /* [iid_is][in] */ IUnknown *punk);
  9178. HRESULT ( STDMETHODCALLTYPE *UnadviseSingleSink )(
  9179. ITfSourceSingle * This,
  9180. /* [in] */ TfClientId tid,
  9181. /* [in] */ REFIID riid);
  9182. END_INTERFACE
  9183. } ITfSourceSingleVtbl;
  9184. interface ITfSourceSingle
  9185. {
  9186. CONST_VTBL struct ITfSourceSingleVtbl *lpVtbl;
  9187. };
  9188. #ifdef COBJMACROS
  9189. #define ITfSourceSingle_QueryInterface(This,riid,ppvObject) \
  9190. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  9191. #define ITfSourceSingle_AddRef(This) \
  9192. (This)->lpVtbl -> AddRef(This)
  9193. #define ITfSourceSingle_Release(This) \
  9194. (This)->lpVtbl -> Release(This)
  9195. #define ITfSourceSingle_AdviseSingleSink(This,tid,riid,punk) \
  9196. (This)->lpVtbl -> AdviseSingleSink(This,tid,riid,punk)
  9197. #define ITfSourceSingle_UnadviseSingleSink(This,tid,riid) \
  9198. (This)->lpVtbl -> UnadviseSingleSink(This,tid,riid)
  9199. #endif /* COBJMACROS */
  9200. #endif /* C style interface */
  9201. HRESULT STDMETHODCALLTYPE ITfSourceSingle_AdviseSingleSink_Proxy(
  9202. ITfSourceSingle * This,
  9203. /* [in] */ TfClientId tid,
  9204. /* [in] */ REFIID riid,
  9205. /* [iid_is][in] */ IUnknown *punk);
  9206. void __RPC_STUB ITfSourceSingle_AdviseSingleSink_Stub(
  9207. IRpcStubBuffer *This,
  9208. IRpcChannelBuffer *_pRpcChannelBuffer,
  9209. PRPC_MESSAGE _pRpcMessage,
  9210. DWORD *_pdwStubPhase);
  9211. HRESULT STDMETHODCALLTYPE ITfSourceSingle_UnadviseSingleSink_Proxy(
  9212. ITfSourceSingle * This,
  9213. /* [in] */ TfClientId tid,
  9214. /* [in] */ REFIID riid);
  9215. void __RPC_STUB ITfSourceSingle_UnadviseSingleSink_Stub(
  9216. IRpcStubBuffer *This,
  9217. IRpcChannelBuffer *_pRpcChannelBuffer,
  9218. PRPC_MESSAGE _pRpcMessage,
  9219. DWORD *_pdwStubPhase);
  9220. #endif /* __ITfSourceSingle_INTERFACE_DEFINED__ */
  9221. /* interface __MIDL_itf_msctf_0212 */
  9222. /* [local] */
  9223. #endif // MSCTF_DEFINED
  9224. extern RPC_IF_HANDLE __MIDL_itf_msctf_0212_v0_0_c_ifspec;
  9225. extern RPC_IF_HANDLE __MIDL_itf_msctf_0212_v0_0_s_ifspec;
  9226. /* Additional Prototypes for ALL interfaces */
  9227. unsigned long __RPC_USER BSTR_UserSize( unsigned long *, unsigned long , BSTR * );
  9228. unsigned char * __RPC_USER BSTR_UserMarshal( unsigned long *, unsigned char *, BSTR * );
  9229. unsigned char * __RPC_USER BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * );
  9230. void __RPC_USER BSTR_UserFree( unsigned long *, BSTR * );
  9231. unsigned long __RPC_USER CLIPFORMAT_UserSize( unsigned long *, unsigned long , CLIPFORMAT * );
  9232. unsigned char * __RPC_USER CLIPFORMAT_UserMarshal( unsigned long *, unsigned char *, CLIPFORMAT * );
  9233. unsigned char * __RPC_USER CLIPFORMAT_UserUnmarshal(unsigned long *, unsigned char *, CLIPFORMAT * );
  9234. void __RPC_USER CLIPFORMAT_UserFree( unsigned long *, CLIPFORMAT * );
  9235. unsigned long __RPC_USER HWND_UserSize( unsigned long *, unsigned long , HWND * );
  9236. unsigned char * __RPC_USER HWND_UserMarshal( unsigned long *, unsigned char *, HWND * );
  9237. unsigned char * __RPC_USER HWND_UserUnmarshal(unsigned long *, unsigned char *, HWND * );
  9238. void __RPC_USER HWND_UserFree( unsigned long *, HWND * );
  9239. unsigned long __RPC_USER VARIANT_UserSize( unsigned long *, unsigned long , VARIANT * );
  9240. unsigned char * __RPC_USER VARIANT_UserMarshal( unsigned long *, unsigned char *, VARIANT * );
  9241. unsigned char * __RPC_USER VARIANT_UserUnmarshal(unsigned long *, unsigned char *, VARIANT * );
  9242. void __RPC_USER VARIANT_UserFree( unsigned long *, VARIANT * );
  9243. /* end of Additional Prototypes */
  9244. #ifdef __cplusplus
  9245. }
  9246. #endif
  9247. #endif