2 * Copyright 2011 Jacek Caban for CodeWeavers
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.
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.
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
22 helpstring("Windows Script Host Object Model"),
23 uuid(f935dc20
-1cf0
-11d0
-adb9
-00c04fd58a0b
),
26 library IWshRuntimeLibrary
28 importlib
("stdole2.tlb");
31 uuid(f935dc27
-1cf0
-11d0
-adb9
-00c04fd58a0b
),
36 interface IWshCollection
: IDispatch
{
40 [out, retval] VARIANT *out_Value
);
43 HRESULT Count
([out, retval] long *out_Count
);
46 HRESULT length
([out, retval] long *out_Count
);
49 HRESULT _NewEnum
([out, retval] IUnknown
*out_Enum
);
53 uuid(f935dc29
-1cf0
-11d0
-adb9
-00c04fd58a0b
),
58 interface IWshEnvironment
: IDispatch
{
59 [id(DISPID_VALUE
), propget]
62 [out, retval] BSTR *out_Value
);
64 [id(DISPID_VALUE
), propput]
70 HRESULT Count
([out, retval] long *out_Count
);
73 HRESULT length
([out, retval] long *out_Count
);
76 HRESULT _NewEnum
([out, retval] IUnknown
*out_Enum
);
79 HRESULT Remove
([in] BSTR Name
);
83 uuid(41904400-be18
-11d3
-a28b
-00104bd35090
),
88 interface IWshShell3
: IDispatch
{
90 HRESULT SpecialFolders
([out, retval] IWshCollection
**out_Folders
);
94 [in, optional] VARIANT *Type
,
95 [out, retval] IWshEnvironment
**out_Env
);
100 [in, optional] VARIANT *WindowStyle
,
101 [in, optional] VARIANT *WaitOnReturn
,
102 [out, retval] int *out_ExitCode
);
106 uuid(24be5a31
-edfe
-11d2
-b933
-00104b365c9f
),
111 interface IWshNetwork2
: IDispatch
{
112 [id(0x60020000), propget]
113 HRESULT UserDomain
([out, retval] BSTR *out_UserDomain
);
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")
123 coclass IWshShell_Class
{
124 [default] interface IWshShell3
;
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")
135 [default] interface IWshShell3
;
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")
145 coclass IWshNetwork_Class
{
146 [default] interface IWshNetwork2
;
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")
157 [default] interface IWshNetwork2
;