Source code of Windows XP (NT5)
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.

445 lines
13 KiB

  1. /* This header file machine-generated by mktyplib.exe */
  2. /* Interface to type library: MSScriptControl */
  3. #ifndef _msscptctl_H_
  4. #define _msscptctl_H_
  5. DEFINE_GUID(LIBID_MSScriptControl,0x0E59F1D2L,0x1FBE,0x11D0,0x8F,0xF2,0x00,0xA0,0xD1,0x00,0x38,0xBC);
  6. #ifndef BEGIN_INTERFACE
  7. #define BEGIN_INTERFACE
  8. #endif
  9. /* Functions defined in module: ScriptControlConstants */
  10. const LPSTR GlobalModule = "Global";
  11. const long NoTimeout = -1;
  12. typedef enum {
  13. Initialized = 0,
  14. Connected = 1
  15. } ScriptControlStates;
  16. DEFINE_GUID(IID_IScriptProcedure,0x70841C73L,0x067D,0x11D0,0x95,0xD8,0x00,0xA0,0x24,0x63,0xAB,0x28);
  17. /* Definition of interface: IScriptProcedure */
  18. #undef INTERFACE
  19. #define INTERFACE IScriptProcedure
  20. DECLARE_INTERFACE_(IScriptProcedure, IDispatch)
  21. {
  22. BEGIN_INTERFACE
  23. #ifndef NO_BASEINTERFACE_FUNCS
  24. /* IUnknown methods */
  25. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  26. STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  27. STDMETHOD_(ULONG, Release)(THIS) PURE;
  28. /* IDispatch methods */
  29. STDMETHOD(GetTypeInfoCount)(THIS_ UINT FAR* pctinfo) PURE;
  30. STDMETHOD(GetTypeInfo)(
  31. THIS_
  32. UINT itinfo,
  33. LCID lcid,
  34. ITypeInfo FAR* FAR* pptinfo) PURE;
  35. STDMETHOD(GetIDsOfNames)(
  36. THIS_
  37. REFIID riid,
  38. OLECHAR FAR* FAR* rgszNames,
  39. UINT cNames,
  40. LCID lcid,
  41. DISPID FAR* rgdispid) PURE;
  42. STDMETHOD(Invoke)(
  43. THIS_
  44. DISPID dispidMember,
  45. REFIID riid,
  46. LCID lcid,
  47. WORD wFlags,
  48. DISPPARAMS FAR* pdispparams,
  49. VARIANT FAR* pvarResult,
  50. EXCEPINFO FAR* pexcepinfo,
  51. UINT FAR* puArgErr) PURE;
  52. #endif
  53. /* IScriptProcedure methods */
  54. STDMETHOD(get_Name)(THIS_ BSTR FAR* pbstrName) PURE;
  55. STDMETHOD(get_NumArgs)(THIS_ long FAR* pcArgs) PURE;
  56. STDMETHOD(get_HasReturnValue)(THIS_ VARIANT_BOOL FAR* pfHasReturnValue) PURE;
  57. };
  58. DEFINE_GUID(IID_IScriptProcedureCollection,0x70841C71L,0x067D,0x11D0,0x95,0xD8,0x00,0xA0,0x24,0x63,0xAB,0x28);
  59. /* Definition of interface: IScriptProcedureCollection */
  60. #undef INTERFACE
  61. #define INTERFACE IScriptProcedureCollection
  62. DECLARE_INTERFACE_(IScriptProcedureCollection, IDispatch)
  63. {
  64. BEGIN_INTERFACE
  65. #ifndef NO_BASEINTERFACE_FUNCS
  66. /* IUnknown methods */
  67. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  68. STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  69. STDMETHOD_(ULONG, Release)(THIS) PURE;
  70. /* IDispatch methods */
  71. STDMETHOD(GetTypeInfoCount)(THIS_ UINT FAR* pctinfo) PURE;
  72. STDMETHOD(GetTypeInfo)(
  73. THIS_
  74. UINT itinfo,
  75. LCID lcid,
  76. ITypeInfo FAR* FAR* pptinfo) PURE;
  77. STDMETHOD(GetIDsOfNames)(
  78. THIS_
  79. REFIID riid,
  80. OLECHAR FAR* FAR* rgszNames,
  81. UINT cNames,
  82. LCID lcid,
  83. DISPID FAR* rgdispid) PURE;
  84. STDMETHOD(Invoke)(
  85. THIS_
  86. DISPID dispidMember,
  87. REFIID riid,
  88. LCID lcid,
  89. WORD wFlags,
  90. DISPPARAMS FAR* pdispparams,
  91. VARIANT FAR* pvarResult,
  92. EXCEPINFO FAR* pexcepinfo,
  93. UINT FAR* puArgErr) PURE;
  94. #endif
  95. /* IScriptProcedureCollection methods */
  96. STDMETHOD(get__NewEnum)(THIS_ IUnknown * FAR* ppenumProcedures) PURE;
  97. STDMETHOD(get_Item)(THIS_ VARIANT Index, IScriptProcedure FAR* FAR* ppdispProcedure) PURE;
  98. STDMETHOD(get_Count)(THIS_ long FAR* plCount) PURE;
  99. };
  100. DEFINE_GUID(IID_IScriptModule,0x70841C70L,0x067D,0x11D0,0x95,0xD8,0x00,0xA0,0x24,0x63,0xAB,0x28);
  101. /* Definition of interface: IScriptModule */
  102. #undef INTERFACE
  103. #define INTERFACE IScriptModule
  104. DECLARE_INTERFACE_(IScriptModule, IDispatch)
  105. {
  106. BEGIN_INTERFACE
  107. #ifndef NO_BASEINTERFACE_FUNCS
  108. /* IUnknown methods */
  109. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  110. STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  111. STDMETHOD_(ULONG, Release)(THIS) PURE;
  112. /* IDispatch methods */
  113. STDMETHOD(GetTypeInfoCount)(THIS_ UINT FAR* pctinfo) PURE;
  114. STDMETHOD(GetTypeInfo)(
  115. THIS_
  116. UINT itinfo,
  117. LCID lcid,
  118. ITypeInfo FAR* FAR* pptinfo) PURE;
  119. STDMETHOD(GetIDsOfNames)(
  120. THIS_
  121. REFIID riid,
  122. OLECHAR FAR* FAR* rgszNames,
  123. UINT cNames,
  124. LCID lcid,
  125. DISPID FAR* rgdispid) PURE;
  126. STDMETHOD(Invoke)(
  127. THIS_
  128. DISPID dispidMember,
  129. REFIID riid,
  130. LCID lcid,
  131. WORD wFlags,
  132. DISPPARAMS FAR* pdispparams,
  133. VARIANT FAR* pvarResult,
  134. EXCEPINFO FAR* pexcepinfo,
  135. UINT FAR* puArgErr) PURE;
  136. #endif
  137. /* IScriptModule methods */
  138. STDMETHOD(get_Name)(THIS_ BSTR FAR* pbstrName) PURE;
  139. STDMETHOD(get_CodeObject)(THIS_ IDispatch * FAR* ppdispObject) PURE;
  140. STDMETHOD(get_Procedures)(THIS_ IScriptProcedureCollection FAR* FAR* ppdispProcedures) PURE;
  141. STDMETHOD(AddCode)(THIS_ BSTR Code) PURE;
  142. STDMETHOD(Eval)(THIS_ BSTR Expression, VARIANT FAR* pvarResult) PURE;
  143. STDMETHOD(ExecuteStatement)(THIS_ BSTR Statement) PURE;
  144. STDMETHOD(Run)(THIS_ BSTR ProcedureName, SAFEARRAY FAR* FAR* Parameters, VARIANT FAR* pvarResult) PURE;
  145. };
  146. DEFINE_GUID(IID_IScriptModuleCollection,0x70841C6FL,0x067D,0x11D0,0x95,0xD8,0x00,0xA0,0x24,0x63,0xAB,0x28);
  147. /* Definition of interface: IScriptModuleCollection */
  148. #undef INTERFACE
  149. #define INTERFACE IScriptModuleCollection
  150. DECLARE_INTERFACE_(IScriptModuleCollection, IDispatch)
  151. {
  152. BEGIN_INTERFACE
  153. #ifndef NO_BASEINTERFACE_FUNCS
  154. /* IUnknown methods */
  155. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  156. STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  157. STDMETHOD_(ULONG, Release)(THIS) PURE;
  158. /* IDispatch methods */
  159. STDMETHOD(GetTypeInfoCount)(THIS_ UINT FAR* pctinfo) PURE;
  160. STDMETHOD(GetTypeInfo)(
  161. THIS_
  162. UINT itinfo,
  163. LCID lcid,
  164. ITypeInfo FAR* FAR* pptinfo) PURE;
  165. STDMETHOD(GetIDsOfNames)(
  166. THIS_
  167. REFIID riid,
  168. OLECHAR FAR* FAR* rgszNames,
  169. UINT cNames,
  170. LCID lcid,
  171. DISPID FAR* rgdispid) PURE;
  172. STDMETHOD(Invoke)(
  173. THIS_
  174. DISPID dispidMember,
  175. REFIID riid,
  176. LCID lcid,
  177. WORD wFlags,
  178. DISPPARAMS FAR* pdispparams,
  179. VARIANT FAR* pvarResult,
  180. EXCEPINFO FAR* pexcepinfo,
  181. UINT FAR* puArgErr) PURE;
  182. #endif
  183. /* IScriptModuleCollection methods */
  184. STDMETHOD(get__NewEnum)(THIS_ IUnknown * FAR* ppenumContexts) PURE;
  185. STDMETHOD(get_Item)(THIS_ VARIANT Index, IScriptModule FAR* FAR* ppmod) PURE;
  186. STDMETHOD(get_Count)(THIS_ long FAR* plCount) PURE;
  187. STDMETHOD(Add)(THIS_ BSTR Name, VARIANT FAR* Object, IScriptModule FAR* FAR* ppmod) PURE;
  188. };
  189. DEFINE_GUID(IID_IScriptError,0x70841C78L,0x067D,0x11D0,0x95,0xD8,0x00,0xA0,0x24,0x63,0xAB,0x28);
  190. /* Definition of interface: IScriptError */
  191. #undef INTERFACE
  192. #define INTERFACE IScriptError
  193. DECLARE_INTERFACE_(IScriptError, IDispatch)
  194. {
  195. BEGIN_INTERFACE
  196. #ifndef NO_BASEINTERFACE_FUNCS
  197. /* IUnknown methods */
  198. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  199. STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  200. STDMETHOD_(ULONG, Release)(THIS) PURE;
  201. /* IDispatch methods */
  202. STDMETHOD(GetTypeInfoCount)(THIS_ UINT FAR* pctinfo) PURE;
  203. STDMETHOD(GetTypeInfo)(
  204. THIS_
  205. UINT itinfo,
  206. LCID lcid,
  207. ITypeInfo FAR* FAR* pptinfo) PURE;
  208. STDMETHOD(GetIDsOfNames)(
  209. THIS_
  210. REFIID riid,
  211. OLECHAR FAR* FAR* rgszNames,
  212. UINT cNames,
  213. LCID lcid,
  214. DISPID FAR* rgdispid) PURE;
  215. STDMETHOD(Invoke)(
  216. THIS_
  217. DISPID dispidMember,
  218. REFIID riid,
  219. LCID lcid,
  220. WORD wFlags,
  221. DISPPARAMS FAR* pdispparams,
  222. VARIANT FAR* pvarResult,
  223. EXCEPINFO FAR* pexcepinfo,
  224. UINT FAR* puArgErr) PURE;
  225. #endif
  226. /* IScriptError methods */
  227. STDMETHOD(get_Number)(THIS_ long FAR* plNumber) PURE;
  228. STDMETHOD(get_Source)(THIS_ BSTR FAR* pbstrSource) PURE;
  229. STDMETHOD(get_Description)(THIS_ BSTR FAR* pbstrDescription) PURE;
  230. STDMETHOD(get_HelpFile)(THIS_ BSTR FAR* pbstrHelpFile) PURE;
  231. STDMETHOD(get_HelpContext)(THIS_ long FAR* plHelpContext) PURE;
  232. STDMETHOD(get_Text)(THIS_ BSTR FAR* pbstrText) PURE;
  233. STDMETHOD(get_Line)(THIS_ long FAR* plLine) PURE;
  234. STDMETHOD(get_Column)(THIS_ long FAR* plColumn) PURE;
  235. STDMETHOD(Clear)(THIS) PURE;
  236. };
  237. DEFINE_GUID(IID_IScriptControl,0x0E59F1D3L,0x1FBE,0x11D0,0x8F,0xF2,0x00,0xA0,0xD1,0x00,0x38,0xBC);
  238. /* Definition of interface: IScriptControl */
  239. #undef INTERFACE
  240. #define INTERFACE IScriptControl
  241. DECLARE_INTERFACE_(IScriptControl, IDispatch)
  242. {
  243. BEGIN_INTERFACE
  244. #ifndef NO_BASEINTERFACE_FUNCS
  245. /* IUnknown methods */
  246. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  247. STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  248. STDMETHOD_(ULONG, Release)(THIS) PURE;
  249. /* IDispatch methods */
  250. STDMETHOD(GetTypeInfoCount)(THIS_ UINT FAR* pctinfo) PURE;
  251. STDMETHOD(GetTypeInfo)(
  252. THIS_
  253. UINT itinfo,
  254. LCID lcid,
  255. ITypeInfo FAR* FAR* pptinfo) PURE;
  256. STDMETHOD(GetIDsOfNames)(
  257. THIS_
  258. REFIID riid,
  259. OLECHAR FAR* FAR* rgszNames,
  260. UINT cNames,
  261. LCID lcid,
  262. DISPID FAR* rgdispid) PURE;
  263. STDMETHOD(Invoke)(
  264. THIS_
  265. DISPID dispidMember,
  266. REFIID riid,
  267. LCID lcid,
  268. WORD wFlags,
  269. DISPPARAMS FAR* pdispparams,
  270. VARIANT FAR* pvarResult,
  271. EXCEPINFO FAR* pexcepinfo,
  272. UINT FAR* puArgErr) PURE;
  273. #endif
  274. /* IScriptControl methods */
  275. STDMETHOD(get_Language)(THIS_ BSTR FAR* pbstrLanguage) PURE;
  276. STDMETHOD(put_Language)(THIS_ BSTR bstrLanguage) PURE;
  277. STDMETHOD(get_State)(THIS_ ScriptControlStates FAR* pssState) PURE;
  278. STDMETHOD(put_State)(THIS_ ScriptControlStates ssState) PURE;
  279. STDMETHOD(put_SitehWnd)(THIS_ long hwnd) PURE;
  280. STDMETHOD(get_SitehWnd)(THIS_ long FAR* phwnd) PURE;
  281. STDMETHOD(get_Timeout)(THIS_ long FAR* plMilleseconds) PURE;
  282. STDMETHOD(put_Timeout)(THIS_ long lMilleseconds) PURE;
  283. STDMETHOD(get_AllowUI)(THIS_ VARIANT_BOOL FAR* pfAllowUI) PURE;
  284. STDMETHOD(put_AllowUI)(THIS_ VARIANT_BOOL fAllowUI) PURE;
  285. STDMETHOD(get_UseSafeSubset)(THIS_ VARIANT_BOOL FAR* pfUseSafeSubset) PURE;
  286. STDMETHOD(put_UseSafeSubset)(THIS_ VARIANT_BOOL fUseSafeSubset) PURE;
  287. STDMETHOD(get_Modules)(THIS_ IScriptModuleCollection FAR* FAR* ppmods) PURE;
  288. STDMETHOD(get_Error)(THIS_ IScriptError FAR* FAR* ppse) PURE;
  289. STDMETHOD(get_CodeObject)(THIS_ IDispatch * FAR* ppdispObject) PURE;
  290. STDMETHOD(get_Procedures)(THIS_ IScriptProcedureCollection FAR* FAR* ppdispProcedures) PURE;
  291. STDMETHOD(_AboutBox)(THIS) PURE;
  292. STDMETHOD(AddObject)(THIS_ BSTR Name, IDispatch * Object, VARIANT_BOOL AddMembers) PURE;
  293. STDMETHOD(Reset)(THIS) PURE;
  294. STDMETHOD(AddCode)(THIS_ BSTR Code) PURE;
  295. STDMETHOD(Eval)(THIS_ BSTR Expression, VARIANT FAR* pvarResult) PURE;
  296. STDMETHOD(ExecuteStatement)(THIS_ BSTR Statement) PURE;
  297. STDMETHOD(Run)(THIS_ BSTR ProcedureName, SAFEARRAY FAR* FAR* Parameters, VARIANT FAR* pvarResult) PURE;
  298. };
  299. DEFINE_GUID(DIID_DScriptControlSource,0x8B167D60L,0x8605,0x11D0,0xAB,0xCB,0x00,0xA0,0xC9,0x0F,0xFF,0xC0);
  300. /* Definition of dispatch interface: DScriptControlSource */
  301. #undef INTERFACE
  302. #define INTERFACE DScriptControlSource
  303. DECLARE_INTERFACE_(DScriptControlSource, IDispatch)
  304. {
  305. BEGIN_INTERFACE
  306. #ifndef NO_BASEINTERFACE_FUNCS
  307. /* IUnknown methods */
  308. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  309. STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  310. STDMETHOD_(ULONG, Release)(THIS) PURE;
  311. /* IDispatch methods */
  312. STDMETHOD(GetTypeInfoCount)(THIS_ UINT FAR* pctinfo) PURE;
  313. STDMETHOD(GetTypeInfo)(
  314. THIS_
  315. UINT itinfo,
  316. LCID lcid,
  317. ITypeInfo FAR* FAR* pptinfo) PURE;
  318. STDMETHOD(GetIDsOfNames)(
  319. THIS_
  320. REFIID riid,
  321. OLECHAR FAR* FAR* rgszNames,
  322. UINT cNames,
  323. LCID lcid,
  324. DISPID FAR* rgdispid) PURE;
  325. STDMETHOD(Invoke)(
  326. THIS_
  327. DISPID dispidMember,
  328. REFIID riid,
  329. LCID lcid,
  330. WORD wFlags,
  331. DISPPARAMS FAR* pdispparams,
  332. VARIANT FAR* pvarResult,
  333. EXCEPINFO FAR* pexcepinfo,
  334. UINT FAR* puArgErr) PURE;
  335. #endif
  336. /* DScriptControlSource methods:
  337. void Error(void);
  338. void Timeout(void);
  339. */
  340. };
  341. DEFINE_GUID(CLSID_Procedure,0x0E59F1DAL,0x1FBE,0x11D0,0x8F,0xF2,0x00,0xA0,0xD1,0x00,0x38,0xBC);
  342. #ifdef __cplusplus
  343. class Procedure;
  344. #endif
  345. DEFINE_GUID(CLSID_Procedures,0x0E59F1DBL,0x1FBE,0x11D0,0x8F,0xF2,0x00,0xA0,0xD1,0x00,0x38,0xBC);
  346. #ifdef __cplusplus
  347. class Procedures;
  348. #endif
  349. DEFINE_GUID(CLSID_Module,0x0E59F1DCL,0x1FBE,0x11D0,0x8F,0xF2,0x00,0xA0,0xD1,0x00,0x38,0xBC);
  350. #ifdef __cplusplus
  351. class Module;
  352. #endif
  353. DEFINE_GUID(CLSID_Modules,0x0E59F1DDL,0x1FBE,0x11D0,0x8F,0xF2,0x00,0xA0,0xD1,0x00,0x38,0xBC);
  354. #ifdef __cplusplus
  355. class Modules;
  356. #endif
  357. DEFINE_GUID(CLSID_Error,0x0E59F1DEL,0x1FBE,0x11D0,0x8F,0xF2,0x00,0xA0,0xD1,0x00,0x38,0xBC);
  358. #ifdef __cplusplus
  359. class Error;
  360. #endif
  361. DEFINE_GUID(CLSID_ScriptControl,0x0E59F1D5L,0x1FBE,0x11D0,0x8F,0xF2,0x00,0xA0,0xD1,0x00,0x38,0xBC);
  362. #ifdef __cplusplus
  363. class ScriptControl;
  364. #endif
  365. #endif