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.

259 lines
5.7 KiB

  1. [
  2. uuid(3F4DACA7-160D-11D2-A8E9-00104B365C9F),
  3. version(REGEXP_TYPELIB_VERSION),
  4. helpstring(REGEXP_TYPELIB_HELPSTRING)
  5. ]
  6. library REGEXP_TYPELIB_NAME
  7. {
  8. importlib("stdole2.tlb");
  9. interface IRegExp;
  10. interface IMatch;
  11. interface IMatchCollection;
  12. #if TYPELIB_VERSION >= 55
  13. interface IRegExp2;
  14. interface IMatch2;
  15. interface IMatchCollection2;
  16. interface ISubMatches;
  17. #endif // TYPELIB_VERSION >= 55
  18. [
  19. object,
  20. dual,
  21. nonextensible,
  22. hidden,
  23. uuid(3F4DACA0-160D-11D2-A8E9-00104B365C9F),
  24. pointer_default(unique)
  25. ]
  26. interface IRegExp : IDispatch
  27. {
  28. [id(10001), propget] HRESULT Pattern(
  29. [out, retval] BSTR *pPattern);
  30. [id(10001), propput] HRESULT Pattern(
  31. [in] BSTR newPattern);
  32. [id(10002), propget] HRESULT IgnoreCase(
  33. [out, retval] VARIANT_BOOL *pIgnoreCase);
  34. [id(10002), propput] HRESULT IgnoreCase(
  35. [in] VARIANT_BOOL ignoreCase);
  36. [id(10003), propget] HRESULT Global(
  37. [out, retval] VARIANT_BOOL *pGlobal);
  38. [id(10003), propput] HRESULT Global(
  39. [in] VARIANT_BOOL global);
  40. [id(10004)] HRESULT Execute(
  41. [in] BSTR sourceString,
  42. [out, retval] IDispatch **ppMatches);
  43. [id(10005)] HRESULT Test(
  44. [in] BSTR sourceString,
  45. [out, retval] VARIANT_BOOL *pMatch);
  46. [id(10006)] HRESULT Replace(
  47. [in] BSTR sourceString,
  48. [in] BSTR replaceString,
  49. [out, retval] BSTR *pDestString);
  50. };
  51. [
  52. object,
  53. dual,
  54. nonextensible,
  55. hidden,
  56. uuid(3F4DACA1-160D-11D2-A8E9-00104B365C9F),
  57. pointer_default(unique)
  58. ]
  59. interface IMatch : IDispatch
  60. {
  61. [id(0), propget] HRESULT Value(
  62. [out, retval] BSTR *pValue);
  63. [id(10001), propget] HRESULT FirstIndex(
  64. [out, retval] long *pFirstIndex);
  65. [id(10002), propget] HRESULT Length(
  66. [out, retval] long *pLength);
  67. };
  68. [
  69. object,
  70. dual,
  71. nonextensible,
  72. hidden,
  73. uuid(3F4DACA2-160D-11D2-A8E9-00104B365C9F),
  74. pointer_default(unique)
  75. ]
  76. interface IMatchCollection : IDispatch
  77. {
  78. [id(10001), propget] HRESULT Item(
  79. [in] long index,
  80. [out, retval] IDispatch **ppMatch);
  81. [id(1), propget] HRESULT Count(
  82. [out, retval] long *pCount);
  83. [id(-4), propget] HRESULT _NewEnum(
  84. [out, retval] IUnknown **ppEnum);
  85. };
  86. #if TYPELIB_VERSION >= 55
  87. [
  88. object,
  89. dual,
  90. nonextensible,
  91. hidden,
  92. uuid(3F4DACB0-160D-11D2-A8E9-00104B365C9F),
  93. pointer_default(unique)
  94. ]
  95. interface IRegExp2 : IDispatch
  96. {
  97. [id(10001), propget] HRESULT Pattern(
  98. [out, retval] BSTR *pPattern);
  99. [id(10001), propput] HRESULT Pattern(
  100. [in] BSTR newPattern);
  101. [id(10002), propget] HRESULT IgnoreCase(
  102. [out, retval] VARIANT_BOOL *pIgnoreCase);
  103. [id(10002), propput] HRESULT IgnoreCase(
  104. [in] VARIANT_BOOL ignoreCase);
  105. [id(10003), propget] HRESULT Global(
  106. [out, retval] VARIANT_BOOL *pGlobal);
  107. [id(10003), propput] HRESULT Global(
  108. [in] VARIANT_BOOL global);
  109. [id(10007), propget] HRESULT Multiline(
  110. [out, retval] VARIANT_BOOL *pMultiline);
  111. [id(10007), propput] HRESULT Multiline(
  112. [in] VARIANT_BOOL multiline);
  113. [id(10004)] HRESULT Execute(
  114. [in] BSTR sourceString,
  115. [out, retval] IDispatch **ppMatches);
  116. [id(10005)] HRESULT Test(
  117. [in] BSTR sourceString,
  118. [out, retval] VARIANT_BOOL *pMatch);
  119. [id(10006)] HRESULT Replace(
  120. [in] BSTR sourceString,
  121. [in] VARIANT replaceVar,
  122. [out, retval] BSTR *pDestString);
  123. };
  124. [
  125. object,
  126. dual,
  127. nonextensible,
  128. hidden,
  129. uuid(3F4DACB1-160D-11D2-A8E9-00104B365C9F),
  130. pointer_default(unique)
  131. ]
  132. interface IMatch2 : IDispatch
  133. {
  134. [id(0), propget] HRESULT Value(
  135. [out, retval] BSTR *pValue);
  136. [id(10001), propget] HRESULT FirstIndex(
  137. [out, retval] long *pFirstIndex);
  138. [id(10002), propget] HRESULT Length(
  139. [out, retval] long *pLength);
  140. [id(10003), propget] HRESULT SubMatches(
  141. [out, retval] IDispatch **ppSubMatches);
  142. };
  143. [
  144. object,
  145. dual,
  146. nonextensible,
  147. hidden,
  148. uuid(3F4DACB2-160D-11D2-A8E9-00104B365C9F),
  149. pointer_default(unique)
  150. ]
  151. interface IMatchCollection2 : IDispatch
  152. {
  153. [id(0), propget] HRESULT Item(
  154. [in] long index,
  155. [out, retval] IDispatch **ppMatch);
  156. [id(1), propget] HRESULT Count(
  157. [out, retval] long *pCount);
  158. [id(-4), propget] HRESULT _NewEnum(
  159. [out, retval] IUnknown **ppEnum);
  160. };
  161. [
  162. object,
  163. dual,
  164. nonextensible,
  165. hidden,
  166. uuid(3F4DACB3-160D-11D2-A8E9-00104B365C9F),
  167. pointer_default(unique)
  168. ]
  169. interface ISubMatches : IDispatch
  170. {
  171. [id(0), propget] HRESULT Item(
  172. [in] long index,
  173. [out, retval] VARIANT *pSubMatch);
  174. [id(1), propget] HRESULT Count(
  175. [out, retval] long *pCount);
  176. [id(-4), propget] HRESULT _NewEnum(
  177. [out, retval] IUnknown **ppEnum);
  178. };
  179. #endif // TYPELIB_VERSION >= 55
  180. [
  181. uuid(3F4DACA4-160D-11D2-A8E9-00104B365C9F),
  182. ]
  183. coclass RegExp
  184. {
  185. [default] interface IREGEXP;
  186. };
  187. [
  188. uuid(3F4DACA5-160D-11D2-A8E9-00104B365C9F),
  189. noncreatable
  190. ]
  191. coclass Match
  192. {
  193. [default] interface IMATCH;
  194. };
  195. [
  196. uuid(3F4DACA6-160D-11D2-A8E9-00104B365C9F),
  197. noncreatable
  198. ]
  199. coclass MatchCollection
  200. {
  201. [default] interface IMATCHCOLLECTION;
  202. };
  203. #if TYPELIB_VERSION >= 55
  204. [
  205. uuid(3F4DACC0-160D-11D2-A8E9-00104B365C9F),
  206. noncreatable
  207. ]
  208. coclass SubMatches
  209. {
  210. [default] interface ISubMatches;
  211. };
  212. #endif // TYPELIB_VERSION >= 55
  213. };