d3dx9/tests: Add basic tests for ID3DXRenderToEnvMap.
[wine/multimedia.git] / dlls / scrrun / scrrun.idl
blobf1e8984862806d8b9bbd1d5cc2da3f24b783c3fa
1 /*
2 * Copyright (C) 2012 Alistair Leslie-Hughes
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
18 import "unknwn.idl";
19 import "objidl.idl";
20 import "oaidl.idl";
22 cpp_quote("#ifdef WINE_NO_UNICODE_MACROS")
23 cpp_quote("#undef CopyFile")
24 cpp_quote("#undef DeleteFile")
25 cpp_quote("#undef MoveFile")
26 cpp_quote("#endif")
29 uuid(420B2830-E718-11CF-893D-00A0C9054228),
30 version(1.0)
32 library Scripting
34 importlib("stdole2.tlb");
36 interface IDictionary;
37 interface IDrive;
38 interface IDriveCollection;
39 interface IFile;
40 interface IFileCollection;
41 interface IFileSystem;
42 interface IFileSystem3;
43 interface IFolder;
44 interface IFolderCollection;
45 interface IScriptEncoder;
46 interface ITextStream;
48 typedef enum CompareMethod
50 BinaryCompare = 0,
51 TextCompare = 1,
52 DatabaseCompare = 2
53 } CompareMethod;
55 typedef enum IOMode
57 ForReading = 1,
58 ForWriting = 2,
59 ForAppending = 8
60 } IOMode;
62 typedef enum Tristate
64 TristateTrue = 0xffffffff,
65 TristateFalse = 0,
66 TristateUseDefault = 0xfffffffe,
67 TristateMixed = 0xfffffffe
68 } Tristate;
70 typedef enum FileAttribute
72 Normal = 0,
73 ReadOnly = 1,
74 Hidden = 2,
75 System = 4,
76 Volume = 8,
77 Directory = 16,
78 Archive = 32,
79 Alias = 1024,
80 Compressed = 2048
81 } FileAttribute;
83 typedef enum SpecialFolderConst
85 WindowsFolder = 0,
86 SystemFolder = 1,
87 TemporaryFolder = 2
88 } SpecialFolderConst;
90 typedef enum DriveTypeConst
92 UnknownType = 0,
93 Removable = 1,
94 Fixed = 2,
95 Remote = 3,
96 CDRom = 4,
97 RamDisk = 5
98 } DriveTypeConst;
100 typedef enum StandardStreamTypes
102 StdIn = 0,
103 StdOut = 1,
104 StdErr = 2
105 } StandardStreamTypes;
108 odl,
109 uuid(42C642C1-97E1-11CF-978F-00A02463E06F),
110 hidden,
111 dual,
112 oleautomation
114 interface IDictionary : IDispatch
116 [id(00000000), propputref]
117 HRESULT Item([in] VARIANT* Key, [in] VARIANT* pRetItem);
119 [id(00000000), propput]
120 HRESULT Item([in] VARIANT* Key, [in] VARIANT* pRetItem);
122 [id(00000000), propget]
123 HRESULT Item([in] VARIANT* Key, [out, retval] VARIANT* pRetItem);
125 [id(0x00000001)]
126 HRESULT Add([in] VARIANT* Key, [in] VARIANT* Item);
128 [id(0x00000002), propget]
129 HRESULT Count([out, retval] long* pCount);
131 [id(0x00000003)]
132 HRESULT Exists([in] VARIANT* Key, [out, retval] VARIANT_BOOL* pExists);
134 [id(0x00000004)]
135 HRESULT Items([out, retval] VARIANT* pItemsArray);
137 [id(0x00000005), propput]
138 HRESULT Key([in] VARIANT* Key, [in] VARIANT* rhs);
140 [id(0x00000006)]
141 HRESULT Keys([out, retval] VARIANT* pKeysArray);
143 [id(0x00000007)]
144 HRESULT Remove([in] VARIANT* Key);
146 [id(0x00000008)]
147 HRESULT RemoveAll();
149 [id(0x00000009), propput]
150 HRESULT CompareMode([in] CompareMethod pcomp);
152 [id(0x00000009), propget]
153 HRESULT CompareMode([out, retval] CompareMethod* pcomp);
155 [id(DISPID_NEWENUM), restricted]
156 HRESULT _NewEnum([out, retval] IUnknown** ppunk);
158 [id(0x0000000a), propget, hidden]
159 HRESULT HashVal([in] VARIANT* Key, [out, retval] VARIANT* HashVal);
163 odl,
164 uuid(0AB5A3D0-E5B6-11D0-ABF5-00A0C90FFFC0),
165 hidden,
166 dual,
167 nonextensible,
168 oleautomation
170 interface IFileSystem : IDispatch
172 [id(0x0000271a), propget]
173 HRESULT Drives([out, retval] IDriveCollection** ppdrives);
175 [id(0x00002710)]
176 HRESULT BuildPath([in] BSTR Path, [in] BSTR Name, [out, retval] BSTR* pbstrResult);
178 [id(0x00002714)]
179 HRESULT GetDriveName([in] BSTR Path, [out, retval] BSTR* pbstrResult);
181 [id(0x00002715)]
182 HRESULT GetParentFolderName([in] BSTR Path, [out, retval] BSTR* pbstrResult);
184 [id(0x00002716)]
185 HRESULT GetFileName([in] BSTR Path, [out, retval] BSTR* pbstrResult);
187 [id(0x00002717)]
188 HRESULT GetBaseName([in] BSTR Path, [out, retval] BSTR* pbstrResult);
190 [id(0x00002718)]
191 HRESULT GetExtensionName([in] BSTR Path, [out, retval] BSTR* pbstrResult);
193 [id(0x00002712)]
194 HRESULT GetAbsolutePathName([in] BSTR Path, [out, retval] BSTR* pbstrResult);
196 [id(0x00002713)]
197 HRESULT GetTempName([out, retval] BSTR* pbstrResult);
199 [id(0x0000271f)]
200 HRESULT DriveExists([in] BSTR DriveSpec, [out, retval] VARIANT_BOOL* pfExists);
202 [id(0x00002720)]
203 HRESULT FileExists([in] BSTR FileSpec, [out, retval] VARIANT_BOOL* pfExists);
205 [id(0x00002721)]
206 HRESULT FolderExists([in] BSTR FolderSpec, [out, retval] VARIANT_BOOL* pfExists);
208 [id(0x0000271b)]
209 HRESULT GetDrive([in] BSTR DriveSpec, [out, retval] IDrive** ppdrive);
211 [id(0x0000271c)]
212 HRESULT GetFile([in] BSTR FilePath, [out, retval] IFile** ppfile);
214 [id(0x0000271d)]
215 HRESULT GetFolder([in] BSTR FolderPath, [out, retval] IFolder** ppfolder);
217 [id(0x0000271e)]
218 HRESULT GetSpecialFolder([in] SpecialFolderConst SpecialFolder, [out, retval] IFolder** ppfolder);
220 [id(0x000004b0)]
221 HRESULT DeleteFile([in] BSTR FileSpec, [in, optional, defaultvalue(0)] VARIANT_BOOL Force);
223 [id(0x000004b1)]
224 HRESULT DeleteFolder([in] BSTR FolderSpec, [in, optional, defaultvalue(0)] VARIANT_BOOL Force);
226 [id(0x000004b4), helpstring("Move a file"), helpcontext(0x00214bab)]
227 HRESULT MoveFile([in] BSTR Source, [in] BSTR Destination);
229 [id(0x000004b5)]
230 HRESULT MoveFolder([in] BSTR Source, [in] BSTR Destination);
232 [id(0x000004b2)]
233 HRESULT CopyFile([in] BSTR Source, [in] BSTR Destination,
234 [in, optional, defaultvalue(-1)] VARIANT_BOOL OverWriteFiles);
236 [id(0x000004b3)]
237 HRESULT CopyFolder([in] BSTR Source, [in] BSTR Destination,
238 [in, optional, defaultvalue(-1)] VARIANT_BOOL OverWriteFiles);
240 [id(0x00000460)]
241 HRESULT CreateFolder([in] BSTR Path, [out, retval] IFolder** ppfolder);
243 [id(0x0000044d)]
244 HRESULT CreateTextFile([in] BSTR FileName, [in, optional, defaultvalue(-1)] VARIANT_BOOL Overwrite,
245 [in, optional, defaultvalue(0)] VARIANT_BOOL Unicode, [out, retval] ITextStream** ppts);
247 [id(0x0000044c)]
248 HRESULT OpenTextFile([in] BSTR FileName, [in, optional, defaultvalue(1)] IOMode IOMode,
249 [in, optional, defaultvalue(0)] VARIANT_BOOL Create,
250 [in, optional, defaultvalue(0)] Tristate Format,
251 [out, retval] ITextStream** ppts);
255 odl,
256 uuid(C7C3F5A1-88A3-11D0-ABCB-00A0C90FFFC0),
257 hidden,
258 dual,
259 nonextensible,
260 oleautomation
262 interface IDriveCollection : IDispatch {
263 [id(00000000)]
264 HRESULT Item([in] VARIANT Key, [out, retval] IDrive** ppdrive);
266 [id(DISPID_NEWENUM), propget, restricted, hidden]
267 HRESULT _NewEnum([out, retval] IUnknown** ppenum);
269 [id(0x00000001), propget]
270 HRESULT Count([out, retval] long* plCount);
274 odl,
275 uuid(C7C3F5A0-88A3-11D0-ABCB-00A0C90FFFC0),
276 hidden,
277 dual,
278 nonextensible,
279 oleautomation
281 interface IDrive : IDispatch
283 [id(00000000), propget]
284 HRESULT Path([out, retval] BSTR* pbstrPath);
286 [id(0x00002710), propget]
287 HRESULT DriveLetter([out, retval] BSTR* pbstrLetter)
289 [id(0x00002711), propget]
290 HRESULT ShareName([out, retval] BSTR* pbstrShareName);
292 [id(0x00002712), propget]
293 HRESULT DriveType([out, retval] DriveTypeConst* pdt);
295 [id(0x00002713), propget]
296 HRESULT RootFolder([out, retval] IFolder** ppfolder);
298 [id(0x00002715), propget]
299 HRESULT AvailableSpace([out, retval] VARIANT* pvarAvail);
301 [id(0x00002714), propget]
302 HRESULT FreeSpace([out, retval] VARIANT* pvarFree);
304 [id(0x00002716), propget]
305 HRESULT TotalSize([out, retval] VARIANT* pvarTotal);
307 [id(0x00002717), propget]
308 HRESULT VolumeName([out, retval] BSTR* pbstrName);
310 [id(0x00002717), propput]
311 HRESULT VolumeName([in] BSTR pbstrName);
313 [id(0x00002718), propget]
314 HRESULT FileSystem([out, retval] BSTR* pbstrFileSystem);
316 [id(0x00002719), propget]
317 HRESULT SerialNumber([out, retval] long* pulSerialNumber);
319 [id(0x0000271a), propget]
320 HRESULT IsReady([out, retval] VARIANT_BOOL* pfReady);
324 odl,
325 uuid(C7C3F5A2-88A3-11D0-ABCB-00A0C90FFFC0),
326 hidden,
327 dual,
328 nonextensible,
329 oleautomation
331 interface IFolder : IDispatch
333 [id(00000000), propget]
334 HRESULT Path([out, retval] BSTR* pbstrPath);
336 [id(0x000003e8), propget]
337 HRESULT Name([out, retval] BSTR* pbstrName);
339 [id(0x000003e8), propput]
340 HRESULT Name([in] BSTR pbstrName);
342 [id(0x000003ea), propget]
343 HRESULT ShortPath([out, retval] BSTR* pbstrPath);
345 [id(0x000003e9), propget]
346 HRESULT ShortName([out, retval] BSTR* pbstrName);
348 [id(0x000003ec), propget]
349 HRESULT Drive([out, retval] IDrive** ppdrive);
351 [id(0x000003ed), propget]
352 HRESULT ParentFolder([out, retval] IFolder** ppfolder);
354 [id(0x000003eb), propget]
355 HRESULT Attributes([out, retval] FileAttribute* pfa);
357 [id(0x000003eb), propput]
358 HRESULT Attributes([in] FileAttribute pfa);
360 [id(0x000003ee), propget]
361 HRESULT DateCreated([out, retval] DATE* pdate);
363 [id(0x000003ef), propget]
364 HRESULT DateLastModified([out, retval] DATE* pdate);
366 [id(0x000003f0), propget]
367 HRESULT DateLastAccessed([out, retval] DATE* pdate);
369 [id(0x000003f2), propget]
370 HRESULT Type([out, retval] BSTR* pbstrType);
372 [id(0x000004b1)]
373 HRESULT Delete([in, optional, defaultvalue(0)] VARIANT_BOOL Force);
375 [id(0x000004b3)]
376 HRESULT Copy([in] BSTR Destination, [in, optional, defaultvalue(-1)] VARIANT_BOOL OverWriteFiles);
378 [id(0x000004b5)]
379 HRESULT Move([in] BSTR Destination);
381 [id(0x00002710), propget]
382 HRESULT IsRootFolder([out, retval] VARIANT_BOOL* pfRootFolder);
384 [id(0x000003f1), propget]
385 HRESULT Size([out, retval] VARIANT* pvarSize);
387 [id(0x00002711), propget]
388 HRESULT SubFolders([out, retval] IFolderCollection** ppfolders);
390 [id(0x00002712), propget]
391 HRESULT Files([out, retval] IFileCollection** ppfiles);
393 [id(0x0000044d)]
394 HRESULT CreateTextFile([in] BSTR FileName, [in, optional, defaultvalue(-1)] VARIANT_BOOL Overwrite,
395 [in, optional, defaultvalue(0)] VARIANT_BOOL Unicode, [out, retval] ITextStream** ppts);
399 odl,
400 uuid(C7C3F5A3-88A3-11D0-ABCB-00A0C90FFFC0),
401 hidden,
402 dual,
403 nonextensible,
404 oleautomation
406 interface IFolderCollection : IDispatch
408 [id(0x00000002)]
409 HRESULT Add([in] BSTR Name, [out, retval] IFolder** ppfolder);
411 [id(00000000), propget]
412 HRESULT Item([in] VARIANT Key, [out, retval] IFolder** ppfolder);
414 [id(DISPID_NEWENUM), propget, restricted, hidden]
415 HRESULT _NewEnum([out, retval] IUnknown** ppenum);
417 [id(0x00000001), propget]
418 HRESULT Count([out, retval] long* plCount);
422 odl,
423 uuid(C7C3F5A5-88A3-11D0-ABCB-00A0C90FFFC0),
424 hidden,
425 dual,
426 nonextensible,
427 oleautomation
429 interface IFileCollection : IDispatch
431 [id(00000000), propget]
432 HRESULT Item([in] VARIANT Key, [out, retval] IFile** ppfile);
434 [id(DISPID_NEWENUM), propget, restricted, hidden]
435 HRESULT _NewEnum([out, retval] IUnknown** ppenum);
437 [id(0x00000001), propget]
438 HRESULT Count([out, retval] long* plCount);
442 odl,
443 uuid(C7C3F5A4-88A3-11D0-ABCB-00A0C90FFFC0),
444 hidden,
445 dual,
446 nonextensible,
447 oleautomation
449 interface IFile : IDispatch
451 [id(00000000), propget]
452 HRESULT Path([out, retval] BSTR* pbstrPath);
454 [id(0x000003e8), propget]
455 HRESULT Name([out, retval] BSTR* pbstrName);
457 [id(0x000003e8), propput]
458 HRESULT Name([in] BSTR pbstrName);
460 [id(0x000003ea), propget]
461 HRESULT ShortPath([out, retval] BSTR* pbstrPath);
463 [id(0x000003e9), propget]
464 HRESULT ShortName([out, retval] BSTR* pbstrName);
466 [id(0x000003ec), propget]
467 HRESULT Drive([out, retval] IDrive** ppdrive);
469 [id(0x000003ed), propget]
470 HRESULT ParentFolder([out, retval] IFolder** ppfolder);
472 [id(0x000003eb), propget]
473 HRESULT Attributes([out, retval] FileAttribute* pfa);
475 [id(0x000003eb), propput]
476 HRESULT Attributes([in] FileAttribute pfa);
478 [id(0x000003ee), propget]
479 HRESULT DateCreated([out, retval] DATE* pdate);
481 [id(0x000003ef), propget]
482 HRESULT DateLastModified([out, retval] DATE* pdate);
484 [id(0x000003f0), propget]
485 HRESULT DateLastAccessed([out, retval] DATE* pdate);
487 [id(0x000003f1), propget]
488 HRESULT Size([out, retval] VARIANT* pvarSize);
490 [id(0x000003f2), propget]
491 HRESULT Type([out, retval] BSTR* pbstrType);
493 [id(0x000004b0)]
494 HRESULT Delete([in, optional, defaultvalue(0)] VARIANT_BOOL Force);
496 [id(0x000004b2)]
497 HRESULT Copy([in] BSTR Destination, [in, optional, defaultvalue(-1)] VARIANT_BOOL OverWriteFiles);
499 [id(0x000004b4)]
500 HRESULT Move([in] BSTR Destination);
502 [id(0x0000044c)]
503 HRESULT OpenAsTextStream([in, optional, defaultvalue(1)] IOMode IOMode,
504 [in, optional, defaultvalue(0)] Tristate Format, [out, retval] ITextStream** ppts);
508 odl,
509 uuid(53BAD8C1-E718-11CF-893D-00A0C9054228),
510 hidden,
511 dual,
512 nonextensible,
513 oleautomation
515 interface ITextStream : IDispatch
517 [id(0x00002710), propget]
518 HRESULT Line([out, retval] long* Line);
520 [id(0xfffffdef), propget]
521 HRESULT Column([out, retval] long* Column);
523 [id(0x00002712), propget]
524 HRESULT AtEndOfStream([out, retval] VARIANT_BOOL* EOS);
526 [id(0x00002713), propget]
527 HRESULT AtEndOfLine([out, retval] VARIANT_BOOL* EOL);
529 HRESULT Read([in] long Characters, [out, retval] BSTR* Text);
531 [id(0x00002715)]
532 HRESULT ReadLine([out, retval] BSTR* Text);
534 [id(0x00002716)]
535 HRESULT ReadAll([out, retval] BSTR* Text);
537 [id(0x00002717)]
538 HRESULT Write([in] BSTR Text);
540 [id(0x00002718)]
541 HRESULT WriteLine([in, optional, defaultvalue("")] BSTR Text);
543 [id(0x00002719)]
544 HRESULT WriteBlankLines([in] long Lines);
546 [id(0x0000271a)]
547 HRESULT Skip([in] long Characters);
549 [id(0x0000271b)]
550 HRESULT SkipLine();
552 [id(0x0000271c)]
553 HRESULT Close();
557 odl,
558 uuid(2A0B9D10-4B87-11D3-A97A-00104B365C9F),
559 dual,
560 nonextensible,
561 oleautomation
563 interface IFileSystem3 : IFileSystem
565 [id(0x00004e20)]
566 HRESULT GetStandardStream([in] StandardStreamTypes StandardStreamType,
567 [in, optional, defaultvalue(0)] VARIANT_BOOL Unicode, [out, retval] ITextStream** ppts);
569 [id(0x00004e2a)]
570 HRESULT GetFileVersion([in] BSTR FileName, [out, retval] BSTR* FileVersion);
574 odl,
575 uuid(AADC65F6-CFF1-11D1-B747-00C04FC2B085),
576 dual,
577 oleautomation
579 interface IScriptEncoder : IDispatch
581 [id(00000000)]
582 HRESULT EncodeScriptFile([in] BSTR szExt, [in] BSTR bstrStreamIn, [in] long cFlags,
583 [in] BSTR bstrDefaultLang, [out, retval] BSTR* pbstrStreamOut);
587 uuid(EE09B103-97E0-11CF-978F-00A02463E06F),
588 version(1.0),
589 helpstring("Scripting.Dictionary"),
590 threading(apartment),
591 progid("Scripting.Dictionary")
593 coclass Dictionary
595 [default] interface IDictionary;
599 uuid(0D43FE01-F093-11CF-8940-00A0C9054228),
600 version(1.0),
601 helpstring("FileSystem Object"),
602 threading(both),
603 progid("Scripting.FileSystemObject")
605 coclass FileSystemObject
607 [default] interface IFileSystem3;
611 uuid(C7C3F5B1-88A3-11D0-ABCB-00A0C90FFFC0),
612 noncreatable,
613 version(1.0)
615 coclass Drive
617 [default] interface IDrive;
621 uuid(C7C3F5B2-88A3-11D0-ABCB-00A0C90FFFC0),
622 noncreatable,
623 version(1.0)
625 coclass Drives
627 [default] interface IDriveCollection;
631 uuid(C7C3F5B3-88A3-11D0-ABCB-00A0C90FFFC0),
632 noncreatable,
633 version(1.0)
635 coclass Folder
637 [default] interface IFolder;
641 uuid(C7C3F5B4-88A3-11D0-ABCB-00A0C90FFFC0),
642 noncreatable,
643 version(1.0)
645 coclass Folders
647 [default] interface IFolderCollection;
651 uuid(C7C3F5B5-88A3-11D0-ABCB-00A0C90FFFC0),
652 noncreatable,
653 version(1.0)
655 coclass File
657 [default] interface IFile;
661 uuid(C7C3F5B6-88A3-11D0-ABCB-00A0C90FFFC0),
662 noncreatable,
663 version(1.0)
665 coclass Files
667 [default] interface IFileCollection;
671 uuid(0BB02EC0-EF49-11CF-8940-00A0C9054228),
672 noncreatable,
673 version(1.0)
675 coclass TextStream
677 [default] interface ITextStream;
681 uuid(32DA2B15-CFED-11D1-B747-00C04FC2B085),
682 version(1.0),
683 helpstring("Script Encoder Object"),
684 threading(apartment),
685 progid("Scripting.Encoder")
687 coclass Encoder
689 [default] interface IScriptEncoder;