fork(1) download
  1. [ComImport,
  2. InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
  3. Guid("f86ad89f-5fe4-4b8d-bb9f-ef3797a84f1f")
  4. ]
  5. public interface ITextStoreACP2
  6. {
  7. /// <summary>
  8. /// ITextStoreACP2::AdviseSink
  9. /// </summary>
  10. /// <param name="i_riid"></param>
  11. /// <param name="i_unknown"></param>
  12. /// <param name="i_mask"></param>
  13. void AdviseSink(
  14. [In] ref Guid i_riid,
  15. [In, MarshalAs(UnmanagedType.Interface)] object i_unknown,
  16. [In] AdviseFlags i_mask
  17. );
  18. /// <summary>
  19. /// ITextStoreACP2::UnadviseSink
  20. /// </summary>
  21. /// <param name="i_unknown"></param>
  22. void UnadviseSink(
  23. [In, MarshalAs(UnmanagedType.Interface)] object i_unknown
  24. );
  25. /// <summary>
  26. /// ITextStoreACP2::RequestLock
  27. /// </summary>
  28. /// <param name="i_lockFlags"></param>
  29. /// <param name="o_sessionResult"></param>
  30. void RequestLock(
  31. [In] LockFlags i_lockFlags,
  32. [Out, MarshalAs(UnmanagedType.Error)] out int o_sessionResult
  33. );
  34. /// <summary>
  35. /// ITextStoreACP2::GetStatus
  36. /// </summary>
  37. /// <param name="o_documentStatus"></param>
  38. void GetStatus(
  39. [Out] out TS_STATUS o_documentStatus
  40. );
  41. /// <summary>
  42. /// ITextStoreACP2::QueryInsert
  43. /// </summary>
  44. /// <param name="i_startIndex"></param>
  45. /// <param name="i_endIndex"></param>
  46. /// <param name="i_length"></param>
  47. /// <param name="o_startIndex"></param>
  48. /// <param name="o_endIndex"></param>
  49. void QueryInsert(
  50. [In] int i_startIndex,
  51. [In] int i_endIndex,
  52. [In] int i_length,
  53. [Out] out int o_startIndex,
  54. [Out] out int o_endIndex
  55. );
  56. /// <summary>
  57. /// ITextStoreACP2::GetSelection
  58. /// </summary>
  59. /// <param name="i_index"></param>
  60. /// <param name="i_selectionBufferLength"></param>
  61. /// <param name="o_selections"></param>
  62. /// <param name="o_fetchedLength"></param>
  63. void GetSelection(
  64. [In] int i_index,
  65. [In] int i_selectionBufferLength,
  66. [Out, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] TS_SELECTION_ACP[] o_selections,
  67. out int o_fetchedLength
  68. );
  69. /// <summary>
  70. /// ITextStoreACP2::SetSelection
  71. /// </summary>
  72. /// <param name="i_count"></param>
  73. /// <param name="i_selections"></param>
  74. void SetSelection(
  75. [In] int i_count,
  76. [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 0)] TS_SELECTION_ACP[] i_selections
  77. );
  78. /// <summary>
  79. /// ITextStoreACP2::GetText
  80. /// </summary>
  81. /// <param name="i_startIndex"></param>
  82. /// <param name="i_endIndex"></param>
  83. /// <param name="o_plainText"></param>
  84. /// <param name="i_plainTextLength"></param>
  85. /// <param name="o_plainTextLength"></param>
  86. /// <param name="o_runInfos"></param>
  87. /// <param name="i_runInfoLength"></param>
  88. /// <param name="o_runInfoLength"></param>
  89. /// <param name="o_nextUnreadCharPos"></param>
  90. void GetText(
  91. [In] int i_startIndex,
  92. [In] int i_endIndex,
  93. [Out, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 3)] char[] o_plainText,
  94. [In] int i_plainTextLength,
  95. [Out] out int o_plainTextLength,
  96. [Out, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 6)] TS_RUNINFO[] o_runInfos,
  97. [In] int i_runInfoLength,
  98. [Out] out int o_runInfoLength,
  99. [Out] out int o_nextUnreadCharPos
  100. );
  101. /// <summary>
  102. /// ITextStoreACP2::SetText
  103. /// </summary>
  104. /// <param name="i_flags"></param>
  105. /// <param name="i_startIndex"></param>
  106. /// <param name="i_endIndex"></param>
  107. /// <param name="i_text"></param>
  108. /// <param name="i_length"></param>
  109. /// <param name="o_textChange"></param>
  110. void SetText(
  111. [In] SetTextFlags i_flags,
  112. [In] int i_startIndex,
  113. [In] int i_endIndex,
  114. [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 4)] char[] i_text,
  115. [In] int i_length,
  116. [Out] out TS_TEXTCHANGE o_textChange
  117. );
  118. /// <summary>
  119. /// ITextStoreACP2::GetFormattedText
  120. /// </summary>
  121. /// <param name="i_start"></param>
  122. /// <param name="i_end"></param>
  123. /// <param name="o_obj"></param>
  124. void GetFormattedText(
  125. [In] int i_start,
  126. [In] int i_end,
  127. [Out, MarshalAs(UnmanagedType.Interface)] out object o_obj
  128. );
  129. /// <summary>
  130. /// ITextStoreACP2::GetEmbedded
  131. /// </summary>
  132. /// <param name="i_position"></param>
  133. /// <param name="i_guidService"></param>
  134. /// <param name="i_riid"></param>
  135. /// <param name="o_obj"></param>
  136. void GetEmbedded(
  137. [In] int i_position,
  138. [In] ref Guid i_guidService,
  139. [In] ref Guid i_riid,
  140. [Out, MarshalAs(UnmanagedType.Interface)] out object o_obj
  141. );
  142. /// <summary>
  143. /// ITextStoreACP2::QueryInsertEmbedded
  144. /// </summary>
  145. /// <param name="i_guidService"></param>
  146. /// <param name="i_formatEtc"></param>
  147. /// <param name="o_insertable"></param>
  148. void QueryInsertEmbedded(
  149. [In] ref Guid i_guidService,
  150. [In] int i_formatEtc,
  151. [Out, MarshalAs(UnmanagedType.Bool)] out bool o_insertable
  152. );
  153. /// <summary>
  154. /// ITextStoreACP2::InsertEmbedded
  155. /// </summary>
  156. /// <param name="i_flags"></param>
  157. /// <param name="i_start"></param>
  158. /// <param name="i_end"></param>
  159. /// <param name="i_obj"></param>
  160. /// <param name="o_textChange"></param>
  161. void InsertEmbedded(
  162. [In] InsertEmbeddedFlags i_flags,
  163. [In] int i_start,
  164. [In] int i_end,
  165. [In, MarshalAs(UnmanagedType.Interface)] object i_obj,
  166. [Out] out TS_TEXTCHANGE o_textChange
  167. );
  168. /// <summary>
  169. /// ITextStoreACP2::InsertTextAtSelection
  170. /// </summary>
  171. /// <param name="i_flags"></param>
  172. /// <param name="i_text"></param>
  173. /// <param name="i_length"></param>
  174. /// <param name="o_startIndex"></param>
  175. /// <param name="o_endIndex"></param>
  176. /// <param name="o_textChange"></param>
  177. void InsertTextAtSelection(
  178. [In] InsertAtSelectionFlags i_flags,
  179. [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 2)] char[] i_text,
  180. [In] int i_length,
  181. [Out] out int o_startIndex,
  182. [Out] out int o_endIndex,
  183. [Out] out TS_TEXTCHANGE o_textChange
  184. );
  185. /// <summary>
  186. /// ITextStoreACP2::InsertEmbeddedAtSelection
  187. /// </summary>
  188. /// <param name="flags"></param>
  189. /// <param name="obj"></param>
  190. /// <param name="start"></param>
  191. /// <param name="end"></param>
  192. /// <param name="change"></param>
  193. void InsertEmbeddedAtSelection(
  194. InsertAtSelectionFlags flags,
  195. [MarshalAs(UnmanagedType.Interface)] object obj,
  196. out int start,
  197. out int end,
  198. out TS_TEXTCHANGE change
  199. );
  200. /// <summary>
  201. /// ITextStoreACP2::RequestSupportedAttrs
  202. /// </summary>
  203. /// <param name="i_flags"></param>
  204. /// <param name="i_length"></param>
  205. /// <param name="i_filterAttributes"></param>
  206. void RequestSupportedAttrs(
  207. [In] AttributeFlags i_flags,
  208. [In] int i_length,
  209. [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] Guid[] i_filterAttributes
  210. );
  211. /// <summary>
  212. /// ITextStoreACP2::RequestAttrsAtPosition
  213. /// </summary>
  214. /// <param name="i_position"></param>
  215. /// <param name="i_length"></param>
  216. /// <param name="i_filterAttributes"></param>
  217. /// <param name="i_flags"></param>
  218. void RequestAttrsAtPosition(
  219. [In] int i_position,
  220. [In] int i_length,
  221. [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] Guid[] i_filterAttributes,
  222. [In] AttributeFlags i_flags
  223. );
  224. /// <summary>
  225. /// ITextStoreACP2::RequestAttrsTransitioningAtPosition
  226. /// </summary>
  227. /// <param name="i_position"></param>
  228. /// <param name="i_length"></param>
  229. /// <param name="i_filterAttributes"></param>
  230. /// <param name="i_flags"></param>
  231. void RequestAttrsTransitioningAtPosition(
  232. [In] int i_position,
  233. [In] int i_length,
  234. [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] Guid[] i_filterAttributes,
  235. [In] AttributeFlags i_flags
  236. );
  237. /// <summary>
  238. /// ITextStoreACP2::FindNextAttrTransition
  239. /// </summary>
  240. /// <param name="i_start"></param>
  241. /// <param name="i_halt"></param>
  242. /// <param name="i_length"></param>
  243. /// <param name="i_filterAttributes"></param>
  244. /// <param name="i_flags"></param>
  245. /// <param name="o_nextIndex"></param>
  246. /// <param name="o_found"></param>
  247. /// <param name="o_foundOffset"></param>
  248. void FindNextAttrTransition(
  249. [In] int i_start,
  250. [In] int i_halt,
  251. [In] int i_length,
  252. [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 2)] Guid[] i_filterAttributes,
  253. [In] AttributeFlags i_flags,
  254. [Out] out int o_nextIndex,
  255. [Out, MarshalAs(UnmanagedType.Bool)] out bool o_found,
  256. [Out] out int o_foundOffset
  257. );
  258. /// <summary>
  259. /// ITextStoreACP2::RetrieveRequestedAttrs
  260. /// </summary>
  261. /// <param name="i_length"></param>
  262. /// <param name="o_attributeVals"></param>
  263. /// <param name="o_fetchedLength"></param>
  264. void RetrieveRequestedAttrs(
  265. [In] int i_length,
  266. [Out, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 0)] TS_ATTRVAL[] o_attributeVals,
  267. [Out] out int o_fetchedLength
  268. );
  269. /// <summary>
  270. /// ITextStoreACP2::GetEndACP
  271. /// </summary>
  272. /// <param name="o_length"></param>
  273. void GetEndACP(
  274. [Out] out int o_length
  275. );
  276. /// <summary>
  277. /// ITextStoreACP2::GetActiveView
  278. /// </summary>
  279. /// <param name="o_viewCookie"></param>
  280. void GetActiveView(
  281. [Out] out int o_viewCookie
  282. );
  283. /// <summary>
  284. /// ITextStoreACP2::GetACPFromPoint
  285. /// </summary>
  286. /// <param name="i_viewCookie"></param>
  287. /// <param name="i_point"></param>
  288. /// <param name="i_flags"></param>
  289. /// <param name="o_index"></param>
  290. void GetACPFromPoint(
  291. [In] int i_viewCookie,
  292. [In] ref POINT i_point,
  293. [In] GetPositionFromPointFlags i_flags,
  294. [Out] out int o_index
  295. );
  296. /// <summary>
  297. /// ITextStoreACP2::GetTextExt
  298. /// </summary>
  299. /// <param name="i_viewCookie"></param>
  300. /// <param name="i_startIndex"></param>
  301. /// <param name="i_endIndex"></param>
  302. /// <param name="o_rect"></param>
  303. /// <param name="o_isClipped"></param>
  304. void GetTextExt(
  305. [In] int i_viewCookie,
  306. [In] int i_startIndex,
  307. [In] int i_endIndex,
  308. [Out] out RECT o_rect,
  309. [MarshalAs(UnmanagedType.Bool)] out bool o_isClipped
  310. );
  311. /// <summary>
  312. /// ITextStoreACP2::GetScreenExt
  313. /// </summary>
  314. /// <param name="i_viewCookie"></param>
  315. /// <param name="o_rect"></param>
  316. void GetScreenExt(
  317. [In] int i_viewCookie,
  318. [Out] out RECT o_rect
  319. );
  320. }
  321.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(14,22): error CS0246: The type or namespace name `Guid' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(16,18): error CS0246: The type or namespace name `AdviseFlags' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(31,18): error CS0246: The type or namespace name `LockFlags' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(39,23): error CS0246: The type or namespace name `TS_STATUS' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(66,73): error CS0246: The type or namespace name `TS_SELECTION_ACP' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(76,72): error CS0246: The type or namespace name `TS_SELECTION_ACP' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(96,73): error CS0246: The type or namespace name `TS_RUNINFO' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(111,18): error CS0246: The type or namespace name `SetTextFlags' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(116,23): error CS0246: The type or namespace name `TS_TEXTCHANGE' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(138,22): error CS0246: The type or namespace name `Guid' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(139,22): error CS0246: The type or namespace name `Guid' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(149,22): error CS0246: The type or namespace name `Guid' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(162,18): error CS0246: The type or namespace name `InsertEmbeddedFlags' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(166,23): error CS0246: The type or namespace name `TS_TEXTCHANGE' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(178,18): error CS0246: The type or namespace name `InsertAtSelectionFlags' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(183,23): error CS0246: The type or namespace name `TS_TEXTCHANGE' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(194,13): error CS0246: The type or namespace name `InsertAtSelectionFlags' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(198,17): error CS0246: The type or namespace name `TS_TEXTCHANGE' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(207,18): error CS0246: The type or namespace name `AttributeFlags' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(209,72): error CS0246: The type or namespace name `Guid' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(221,72): error CS0246: The type or namespace name `Guid' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(222,18): error CS0246: The type or namespace name `AttributeFlags' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(234,72): error CS0246: The type or namespace name `Guid' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(235,18): error CS0246: The type or namespace name `AttributeFlags' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(252,72): error CS0246: The type or namespace name `Guid' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(253,18): error CS0246: The type or namespace name `AttributeFlags' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(266,73): error CS0246: The type or namespace name `TS_ATTRVAL' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(292,22): error CS0246: The type or namespace name `POINT' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(293,18): error CS0246: The type or namespace name `GetPositionFromPointFlags' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(308,23): error CS0246: The type or namespace name `RECT' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(318,23): error CS0246: The type or namespace name `RECT' could not be found. Are you missing a using directive or an assembly reference?
Compilation failed: 31 error(s), 0 warnings
stdout
Standard output is empty