vbscript: Make vbscode_t own the memory it uses.
[wine] / dlls / wshom.ocx / wshom.idl
1 /*
2  * Copyright 2011 Jacek Caban for CodeWeavers
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
18
19 import "oaidl.idl";
20
21 [
22     helpstring("Windows Script Host Object Model"),
23     uuid(f935dc20-1cf0-11d0-adb9-00c04fd58a0b),
24     version(1.0)
25 ]
26 library IWshRuntimeLibrary
27 {
28     importlib("stdole2.tlb");
29
30     [
31         uuid(f935dc27-1cf0-11d0-adb9-00c04fd58a0b),
32         odl,
33         dual,
34         oleautomation
35     ]
36     interface IWshCollection : IDispatch {
37         [id(DISPID_VALUE)]
38         HRESULT Item(
39                 [in] VARIANT *Index,
40                 [out, retval] VARIANT *out_Value);
41
42         [id(1)]
43         HRESULT Count([out, retval] long *out_Count);
44
45         [id(2), propget]
46         HRESULT length([out, retval] long *out_Count);
47
48         [id(DISPID_NEWENUM)]
49         HRESULT _NewEnum([out, retval] IUnknown *out_Enum);
50     }
51
52     [
53         uuid(f935dc29-1cf0-11d0-adb9-00c04fd58a0b),
54         odl,
55         dual,
56         oleautomation
57     ]
58     interface IWshEnvironment : IDispatch {
59         [id(DISPID_VALUE), propget]
60         HRESULT Item(
61                 [in] BSTR Name,
62                 [out, retval] BSTR *out_Value);
63
64         [id(DISPID_VALUE), propput]
65         HRESULT Item(
66                 [in] BSTR Name,
67                 [in] BSTR out_Value);
68
69         [id(1)]
70         HRESULT Count([out, retval] long *out_Count);
71
72         [id(2), propget]
73         HRESULT length([out, retval] long *out_Count);
74
75         [id(DISPID_NEWENUM)]
76         HRESULT _NewEnum([out, retval] IUnknown *out_Enum);
77
78         [id(0x03e9)]
79         HRESULT Remove([in] BSTR Name);
80     }
81
82     [
83         uuid(41904400-be18-11d3-a28b-00104bd35090),
84         odl,
85         dual,
86         oleautomation
87     ]
88     interface IWshShell3 : IDispatch {
89         [id(0x0064), propget]
90         HRESULT SpecialFolders([out, retval] IWshCollection **out_Folders);
91
92         [id(0x00c8), propget]
93         HRESULT Environment(
94                 [in, optional] VARIANT *Type,
95                 [out, retval] IWshEnvironment **out_Env);
96
97         [id(0x03e8)]
98         HRESULT Run(
99                 [in] BSTR Command,
100                 [in, optional] VARIANT *WindowStyle,
101                 [in, optional] VARIANT *WaitOnReturn,
102                 [out, retval] int *out_ExitCode);
103     }
104
105     [
106         uuid(24be5a31-edfe-11d2-b933-00104b365c9f),
107         odl,
108         dual,
109         oleautomation
110     ]
111     interface IWshNetwork2 : IDispatch {
112         [id(0x60020000), propget]
113         HRESULT UserDomain([out, retval] BSTR *out_UserDomain);
114     }
115
116     [
117         helpstring("Windows Script Host Shell Object"),
118         uuid(f935dc22-1cf0-11d0-adb9-00c04fd58a0b),
119         threading(apartment),
120         progid("WScript.Shell.1"),
121         vi_progid("WScript.Shell")
122     ]
123     coclass IWshShell_Class {
124         [default] interface IWshShell3;
125     }
126
127     [
128         helpstring("Windows Script Host Shell Object"),
129         uuid(72c24dd5-d70a-438b-8a42-98424b88afb8),
130         threading(apartment),
131         progid("WScript.Shell.1"),
132         vi_progid("WScript.Shell")
133     ]
134     coclass WshShell {
135         [default] interface IWshShell3;
136     }
137
138     [
139         helpstring("Windows Script Host Network Object"),
140         uuid(f935dc26-1cf0-11d0-adb9-00c04fd58a0b),
141         threading(apartment),
142         progid("WScript.Network.1"),
143         vi_progid("WScript.Network")
144     ]
145     coclass IWshNetwork_Class {
146         [default] interface IWshNetwork2;
147     }
148
149     [
150         helpstring("Windows Script Host Network Object"),
151         uuid(093ff999-1ea0-4079-9525-9614c3504b74),
152         threading(apartment),
153         progid("WScript.Network.1"),
154         vi_progid("WScript.Network")
155     ]
156     coclass WshNetwork {
157         [default] interface IWshNetwork2;
158     }
159 }