gdiplus: Add a test for scaling an image with world transform.
[wine.git] / dlls / scrrun / scrrun.idl
blob4b18af140d7604d7e0d68ff522105b57fbf3bafe
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 [id(0x00002714)]
530 HRESULT Read([in] long Characters, [out, retval] BSTR* Text);
532 [id(0x00002715)]
533 HRESULT ReadLine([out, retval] BSTR* Text);
535 [id(0x00002716)]
536 HRESULT ReadAll([out, retval] BSTR* Text);
538 [id(0x00002717)]
539 HRESULT Write([in] BSTR Text);
541 [id(0x00002718)]
542 HRESULT WriteLine([in, optional, defaultvalue("")] BSTR Text);
544 [id(0x00002719)]
545 HRESULT WriteBlankLines([in] long Lines);
547 [id(0x0000271a)]
548 HRESULT Skip([in] long Characters);
550 [id(0x0000271b)]
551 HRESULT SkipLine();
553 [id(0x0000271c)]
554 HRESULT Close();
558 odl,
559 uuid(2A0B9D10-4B87-11D3-A97A-00104B365C9F),
560 dual,
561 nonextensible,
562 oleautomation
564 interface IFileSystem3 : IFileSystem
566 [id(0x00004e20)]
567 HRESULT GetStandardStream([in] StandardStreamTypes StandardStreamType,
568 [in, optional, defaultvalue(0)] VARIANT_BOOL Unicode, [out, retval] ITextStream** ppts);
570 [id(0x00004e2a)]
571 HRESULT GetFileVersion([in] BSTR FileName, [out, retval] BSTR* FileVersion);
575 odl,
576 uuid(AADC65F6-CFF1-11D1-B747-00C04FC2B085),
577 dual,
578 oleautomation
580 interface IScriptEncoder : IDispatch
582 [id(00000000)]
583 HRESULT EncodeScriptFile([in] BSTR szExt, [in] BSTR bstrStreamIn, [in] long cFlags,
584 [in] BSTR bstrDefaultLang, [out, retval] BSTR* pbstrStreamOut);
588 uuid(EE09B103-97E0-11CF-978F-00A02463E06F),
589 version(1.0),
590 helpstring("Scripting.Dictionary"),
591 threading(apartment),
592 progid("Scripting.Dictionary")
594 coclass Dictionary
596 [default] interface IDictionary;
600 uuid(0D43FE01-F093-11CF-8940-00A0C9054228),
601 version(1.0),
602 helpstring("FileSystem Object"),
603 threading(both),
604 progid("Scripting.FileSystemObject")
606 coclass FileSystemObject
608 [default] interface IFileSystem3;
612 uuid(C7C3F5B1-88A3-11D0-ABCB-00A0C90FFFC0),
613 noncreatable,
614 version(1.0)
616 coclass Drive
618 [default] interface IDrive;
622 uuid(C7C3F5B2-88A3-11D0-ABCB-00A0C90FFFC0),
623 noncreatable,
624 version(1.0)
626 coclass Drives
628 [default] interface IDriveCollection;
632 uuid(C7C3F5B3-88A3-11D0-ABCB-00A0C90FFFC0),
633 noncreatable,
634 version(1.0)
636 coclass Folder
638 [default] interface IFolder;
642 uuid(C7C3F5B4-88A3-11D0-ABCB-00A0C90FFFC0),
643 noncreatable,
644 version(1.0)
646 coclass Folders
648 [default] interface IFolderCollection;
652 uuid(C7C3F5B5-88A3-11D0-ABCB-00A0C90FFFC0),
653 noncreatable,
654 version(1.0)
656 coclass File
658 [default] interface IFile;
662 uuid(C7C3F5B6-88A3-11D0-ABCB-00A0C90FFFC0),
663 noncreatable,
664 version(1.0)
666 coclass Files
668 [default] interface IFileCollection;
672 uuid(0BB02EC0-EF49-11CF-8940-00A0C9054228),
673 noncreatable,
674 version(1.0)
676 coclass TextStream
678 [default] interface ITextStream;
682 uuid(32DA2B15-CFED-11D1-B747-00C04FC2B085),
683 version(1.0),
684 helpstring("Script Encoder Object"),
685 threading(apartment),
686 progid("Scripting.Encoder")
688 coclass Encoder
690 [default] interface IScriptEncoder;