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.

13293 lines
392 KiB

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