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