scrrun.idl 18.4 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/*
 * Copyright (C) 2012 Alistair Leslie-Hughes
 *
 * 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
 */
18

19
#pragma makedep regtypelib
20

21 22 23 24 25 26 27 28 29
import "unknwn.idl";
import "objidl.idl";
import "oaidl.idl";

cpp_quote("#ifdef WINE_NO_UNICODE_MACROS")
cpp_quote("#undef CopyFile")
cpp_quote("#undef DeleteFile")
cpp_quote("#undef MoveFile")
cpp_quote("#endif")
30 31 32 33
/* this is not defined in public headers */
cpp_quote("#define CTL_E_ENDOFFILE STD_CTL_SCODE(62)")
cpp_quote("#define CTL_E_KEY_ALREADY_EXISTS STD_CTL_SCODE(457)")
cpp_quote("#define CTL_E_ELEMENT_NOT_FOUND STD_CTL_SCODE(32811)")
34 35 36 37 38 39 40 41 42 43 44 45 46

[
  uuid(420B2830-E718-11CF-893D-00A0C9054228),
  version(1.0)
]
library Scripting
{
    importlib("stdole2.tlb");

    interface IFolder;

    typedef enum CompareMethod
    {
47 48 49
        BinaryCompare,
        TextCompare,
        DatabaseCompare
50 51 52 53 54 55 56 57 58 59 60
    } CompareMethod;

    typedef enum IOMode
    {
        ForReading   = 1,
        ForWriting   = 2,
        ForAppending = 8
    } IOMode;

    typedef enum Tristate
    {
61 62 63 64
        TristateTrue       = -1,
        TristateFalse      =  0,
        TristateUseDefault = -2,
        TristateMixed      = -2
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
    } Tristate;

    typedef enum FileAttribute
    {
        Normal = 0,
        ReadOnly = 1,
        Hidden = 2,
        System = 4,
        Volume = 8,
        Directory = 16,
        Archive = 32,
        Alias = 1024,
        Compressed = 2048
    } FileAttribute;

    typedef enum SpecialFolderConst
    {
82 83 84
        WindowsFolder,
        SystemFolder,
        TemporaryFolder
85 86 87 88
    } SpecialFolderConst;

    typedef enum DriveTypeConst
    {
89 90 91 92 93 94
        UnknownType,
        Removable,
        Fixed,
        Remote,
        CDRom,
        RamDisk
95 96 97 98
    } DriveTypeConst;

    typedef enum StandardStreamTypes
    {
99 100 101
        StdIn,
        StdOut,
        StdErr
102 103 104 105 106 107 108 109 110 111 112
    } StandardStreamTypes;

    [
      odl,
      uuid(42C642C1-97E1-11CF-978F-00A02463E06F),
      hidden,
      dual,
      oleautomation
    ]
    interface IDictionary : IDispatch
    {
113
        [id(DISPID_VALUE), propputref]
114 115
        HRESULT Item([in] VARIANT* Key, [in] VARIANT* pRetItem);

116
        [id(DISPID_VALUE), propput]
117 118
        HRESULT Item([in] VARIANT* Key, [in] VARIANT* pRetItem);

119
        [id(DISPID_VALUE), propget]
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 160
        HRESULT Item([in] VARIANT* Key, [out, retval] VARIANT* pRetItem);

        [id(0x00000001)]
        HRESULT Add([in] VARIANT* Key, [in] VARIANT* Item);

        [id(0x00000002), propget]
        HRESULT Count([out, retval] long* pCount);

        [id(0x00000003)]
        HRESULT Exists([in] VARIANT* Key, [out, retval] VARIANT_BOOL* pExists);

        [id(0x00000004)]
        HRESULT Items([out, retval] VARIANT* pItemsArray);

        [id(0x00000005), propput]
        HRESULT Key([in] VARIANT* Key, [in] VARIANT* rhs);

        [id(0x00000006)]
        HRESULT Keys([out, retval] VARIANT* pKeysArray);

        [id(0x00000007)]
        HRESULT Remove([in] VARIANT* Key);

        [id(0x00000008)]
        HRESULT RemoveAll();

        [id(0x00000009), propput]
        HRESULT CompareMode([in] CompareMethod pcomp);

        [id(0x00000009), propget]
        HRESULT CompareMode([out, retval] CompareMethod* pcomp);

        [id(DISPID_NEWENUM), restricted]
        HRESULT _NewEnum([out, retval] IUnknown** ppunk);

        [id(0x0000000a), propget, hidden]
        HRESULT HashVal([in] VARIANT* Key, [out, retval] VARIANT* HashVal);
    }

    [
      odl,
161
      uuid(C7C3F5A0-88A3-11D0-ABCB-00A0C90FFFC0),
162 163 164 165 166
      hidden,
      dual,
      nonextensible,
      oleautomation
    ]
167
    interface IDrive : IDispatch
168
    {
169 170
        [id(DISPID_VALUE), propget]
        HRESULT Path([out, retval] BSTR* pbstrPath);
171

172 173
        [id(0x00002710), propget]
        HRESULT DriveLetter([out, retval] BSTR* pbstrLetter);
174

175 176
        [id(0x00002711), propget]
        HRESULT ShareName([out, retval] BSTR* pbstrShareName);
177

178 179
        [id(0x00002712), propget]
        HRESULT DriveType([out, retval] DriveTypeConst* pdt);
180

181 182
        [id(0x00002713), propget]
        HRESULT RootFolder([out, retval] IFolder** ppfolder);
183

184 185
        [id(0x00002715), propget]
        HRESULT AvailableSpace([out, retval] VARIANT* pvarAvail);
186

187 188
        [id(0x00002714), propget]
        HRESULT FreeSpace([out, retval] VARIANT* pvarFree);
189

190 191
        [id(0x00002716), propget]
        HRESULT TotalSize([out, retval] VARIANT* pvarTotal);
192

193 194
        [id(0x00002717), propget]
        HRESULT VolumeName([out, retval] BSTR* pbstrName);
195

196 197
        [id(0x00002717), propput]
        HRESULT VolumeName([in] BSTR pbstrName);
198

199 200
        [id(0x00002718), propget]
        HRESULT FileSystem([out, retval] BSTR* pbstrFileSystem);
201

202 203
        [id(0x00002719), propget]
        HRESULT SerialNumber([out, retval] long* pulSerialNumber);
204

205 206
        [id(0x0000271a), propget]
        HRESULT IsReady([out, retval] VARIANT_BOOL* pfReady);
207 208 209 210 211 212 213 214 215 216 217
    }

    [
      odl,
      uuid(C7C3F5A1-88A3-11D0-ABCB-00A0C90FFFC0),
      hidden,
      dual,
      nonextensible,
      oleautomation
    ]
    interface IDriveCollection : IDispatch {
218
        [id(DISPID_VALUE), propget]
219 220 221 222 223 224 225 226 227 228 229
        HRESULT Item([in] VARIANT Key, [out, retval] IDrive** ppdrive);

        [id(DISPID_NEWENUM), propget, restricted, hidden]
        HRESULT _NewEnum([out, retval] IUnknown** ppenum);

        [id(0x00000001), propget]
        HRESULT Count([out, retval] long* plCount);
    }

    [
      odl,
230
      uuid(53BAD8C1-E718-11CF-893D-00A0C9054228),
231 232 233 234 235
      hidden,
      dual,
      nonextensible,
      oleautomation
    ]
236
    interface ITextStream : IDispatch
237 238
    {
        [id(0x00002710), propget]
239
        HRESULT Line([out, retval] long* Line);
240

241 242
        [id(0xfffffdef), propget]
        HRESULT Column([out, retval] long* Column);
243 244

        [id(0x00002712), propget]
245
        HRESULT AtEndOfStream([out, retval] VARIANT_BOOL* EOS);
246 247

        [id(0x00002713), propget]
248
        HRESULT AtEndOfLine([out, retval] VARIANT_BOOL* EOL);
249

250 251
        [id(0x00002714)]
        HRESULT Read([in] long Characters, [out, retval] BSTR* Text);
252

253 254
        [id(0x00002715)]
        HRESULT ReadLine([out, retval] BSTR* Text);
255

256 257
        [id(0x00002716)]
        HRESULT ReadAll([out, retval] BSTR* Text);
258

259 260
        [id(0x00002717)]
        HRESULT Write([in] BSTR Text);
261

262
        [id(0x00002718)]
263
        HRESULT WriteLine([in, defaultvalue("")] BSTR Text);
264

265 266
        [id(0x00002719)]
        HRESULT WriteBlankLines([in] long Lines);
267

268 269
        [id(0x0000271a)]
        HRESULT Skip([in] long Characters);
270

271 272 273 274 275
        [id(0x0000271b)]
        HRESULT SkipLine();

        [id(0x0000271c)]
        HRESULT Close();
276 277 278 279
    }

    [
      odl,
280
      uuid(C7C3F5A4-88A3-11D0-ABCB-00A0C90FFFC0),
281 282 283 284 285
      hidden,
      dual,
      nonextensible,
      oleautomation
    ]
286
    interface IFile : IDispatch
287
    {
288
        [id(DISPID_VALUE), propget]
289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323
        HRESULT Path([out, retval] BSTR* pbstrPath);

        [id(0x000003e8), propget]
        HRESULT Name([out, retval] BSTR* pbstrName);

        [id(0x000003e8), propput]
        HRESULT Name([in] BSTR pbstrName);

        [id(0x000003ea), propget]
        HRESULT ShortPath([out, retval] BSTR* pbstrPath);

        [id(0x000003e9), propget]
        HRESULT ShortName([out, retval] BSTR* pbstrName);

        [id(0x000003ec), propget]
        HRESULT Drive([out, retval] IDrive** ppdrive);

        [id(0x000003ed), propget]
        HRESULT ParentFolder([out, retval] IFolder** ppfolder);

        [id(0x000003eb), propget]
        HRESULT Attributes([out, retval] FileAttribute* pfa);

        [id(0x000003eb), propput]
        HRESULT Attributes([in] FileAttribute pfa);

        [id(0x000003ee), propget]
        HRESULT DateCreated([out, retval] DATE* pdate);

        [id(0x000003ef), propget]
        HRESULT DateLastModified([out, retval] DATE* pdate);

        [id(0x000003f0), propget]
        HRESULT DateLastAccessed([out, retval] DATE* pdate);

324 325 326
        [id(0x000003f1), propget]
        HRESULT Size([out, retval] VARIANT* pvarSize);

327 328 329
        [id(0x000003f2), propget]
        HRESULT Type([out, retval] BSTR* pbstrType);

330
        [id(0x000004b0)]
331
        HRESULT Delete([in, defaultvalue(0)] VARIANT_BOOL Force);
332

333
        [id(0x000004b2)]
334
        HRESULT Copy([in] BSTR Destination, [in, defaultvalue(-1)] VARIANT_BOOL OverWriteFiles);
335

336
        [id(0x000004b4)]
337 338
        HRESULT Move([in] BSTR Destination);

339
        [id(0x0000044c)]
340 341
        HRESULT OpenAsTextStream([in, defaultvalue(1)] IOMode IOMode,
                        [in, defaultvalue(0)] Tristate Format, [out, retval] ITextStream** ppts);
342
    }
343

344 345 346 347 348 349 350 351 352 353 354 355
    [
      odl,
      uuid(0AB5A3D0-E5B6-11D0-ABF5-00A0C90FFFC0),
      hidden,
      dual,
      nonextensible,
      oleautomation
    ]
    interface IFileSystem : IDispatch
    {
        [id(0x0000271a), propget]
        HRESULT Drives([out, retval] IDriveCollection** ppdrives);
356

357 358
        [id(0x00002710)]
        HRESULT BuildPath([in] BSTR Path, [in] BSTR Name, [out, retval] BSTR* pbstrResult);
359

360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402
        [id(0x00002714)]
        HRESULT GetDriveName([in] BSTR Path, [out, retval] BSTR* pbstrResult);

        [id(0x00002715)]
        HRESULT GetParentFolderName([in] BSTR Path, [out, retval] BSTR* pbstrResult);

        [id(0x00002716)]
        HRESULT GetFileName([in] BSTR Path, [out, retval] BSTR* pbstrResult);

        [id(0x00002717)]
        HRESULT GetBaseName([in] BSTR Path, [out, retval] BSTR* pbstrResult);

        [id(0x00002718)]
        HRESULT GetExtensionName([in] BSTR Path, [out, retval] BSTR* pbstrResult);

        [id(0x00002712)]
        HRESULT GetAbsolutePathName([in] BSTR Path, [out, retval] BSTR* pbstrResult);

        [id(0x00002713)]
        HRESULT GetTempName([out, retval] BSTR* pbstrResult);

        [id(0x0000271f)]
        HRESULT DriveExists([in] BSTR DriveSpec, [out, retval] VARIANT_BOOL* pfExists);

        [id(0x00002720)]
        HRESULT FileExists([in] BSTR FileSpec, [out, retval] VARIANT_BOOL* pfExists);

        [id(0x00002721)]
        HRESULT FolderExists([in] BSTR FolderSpec, [out, retval] VARIANT_BOOL* pfExists);

        [id(0x0000271b)]
        HRESULT GetDrive([in] BSTR DriveSpec, [out, retval] IDrive** ppdrive);

        [id(0x0000271c)]
        HRESULT GetFile([in] BSTR FilePath, [out, retval] IFile** ppfile);

        [id(0x0000271d)]
        HRESULT GetFolder([in] BSTR FolderPath, [out, retval] IFolder** ppfolder);

        [id(0x0000271e)]
        HRESULT GetSpecialFolder([in] SpecialFolderConst SpecialFolder, [out, retval] IFolder** ppfolder);

        [id(0x000004b0)]
403
        HRESULT DeleteFile([in] BSTR FileSpec, [in, defaultvalue(0)] VARIANT_BOOL Force);
404 405

        [id(0x000004b1)]
406
        HRESULT DeleteFolder([in] BSTR FolderSpec, [in, defaultvalue(0)] VARIANT_BOOL Force);
407 408 409 410 411 412 413 414 415

        [id(0x000004b4), helpstring("Move a file"), helpcontext(0x00214bab)]
        HRESULT MoveFile([in] BSTR Source, [in] BSTR Destination);

        [id(0x000004b5)]
        HRESULT MoveFolder([in] BSTR Source, [in] BSTR Destination);

        [id(0x000004b2)]
        HRESULT CopyFile([in] BSTR Source, [in] BSTR Destination,
416
                         [in, defaultvalue(-1)] VARIANT_BOOL OverWriteFiles);
417 418 419

        [id(0x000004b3)]
        HRESULT CopyFolder([in] BSTR Source, [in] BSTR Destination,
420
                           [in, defaultvalue(-1)] VARIANT_BOOL OverWriteFiles);
421 422 423

        [id(0x00000460)]
        HRESULT CreateFolder([in] BSTR Path, [out, retval] IFolder** ppfolder);
424 425

        [id(0x0000044d)]
426 427
        HRESULT CreateTextFile([in] BSTR FileName, [in, defaultvalue(-1)] VARIANT_BOOL Overwrite,
                        [in, defaultvalue(0)] VARIANT_BOOL Unicode, [out, retval] ITextStream** ppts);
428 429

        [id(0x0000044c)]
430 431 432
        HRESULT OpenTextFile([in] BSTR FileName, [in, defaultvalue(1)] IOMode IOMode,
                        [in, defaultvalue(0)] VARIANT_BOOL Create,
                        [in, defaultvalue(0)] Tristate Format,
433
                        [out, retval] ITextStream** ppts);
434 435 436 437
    }

    [
      odl,
438
      uuid(C7C3F5A5-88A3-11D0-ABCB-00A0C90FFFC0),
439 440 441 442 443
      hidden,
      dual,
      nonextensible,
      oleautomation
    ]
444
    interface IFileCollection : IDispatch
445
    {
446
        [id(DISPID_VALUE), propget]
447
        HRESULT Item([in] VARIANT Key, [out, retval] IFile** ppfile);
448 449 450 451 452 453 454 455 456 457

        [id(DISPID_NEWENUM), propget, restricted, hidden]
        HRESULT _NewEnum([out, retval] IUnknown** ppenum);

        [id(0x00000001), propget]
        HRESULT Count([out, retval] long* plCount);
    }

    [
      odl,
458
      uuid(C7C3F5A3-88A3-11D0-ABCB-00A0C90FFFC0),
459 460 461 462 463
      hidden,
      dual,
      nonextensible,
      oleautomation
    ]
464
    interface IFolderCollection : IDispatch
465
    {
466 467 468
        [id(0x00000002)]
        HRESULT Add([in] BSTR Name, [out, retval] IFolder** ppfolder);

469
        [id(DISPID_VALUE), propget]
470
        HRESULT Item([in] VARIANT Key, [out, retval] IFolder** ppfolder);
471 472 473 474 475 476 477 478 479 480

        [id(DISPID_NEWENUM), propget, restricted, hidden]
        HRESULT _NewEnum([out, retval] IUnknown** ppenum);

        [id(0x00000001), propget]
        HRESULT Count([out, retval] long* plCount);
    }

    [
      odl,
481
      uuid(C7C3F5A2-88A3-11D0-ABCB-00A0C90FFFC0),
482 483 484 485 486
      hidden,
      dual,
      nonextensible,
      oleautomation
    ]
487
    interface IFolder : IDispatch
488
    {
489
        [id(DISPID_VALUE), propget]
490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527
        HRESULT Path([out, retval] BSTR* pbstrPath);

        [id(0x000003e8), propget]
        HRESULT Name([out, retval] BSTR* pbstrName);

        [id(0x000003e8), propput]
        HRESULT Name([in] BSTR pbstrName);

        [id(0x000003ea), propget]
        HRESULT ShortPath([out, retval] BSTR* pbstrPath);

        [id(0x000003e9), propget]
        HRESULT ShortName([out, retval] BSTR* pbstrName);

        [id(0x000003ec), propget]
        HRESULT Drive([out, retval] IDrive** ppdrive);

        [id(0x000003ed), propget]
        HRESULT ParentFolder([out, retval] IFolder** ppfolder);

        [id(0x000003eb), propget]
        HRESULT Attributes([out, retval] FileAttribute* pfa);

        [id(0x000003eb), propput]
        HRESULT Attributes([in] FileAttribute pfa);

        [id(0x000003ee), propget]
        HRESULT DateCreated([out, retval] DATE* pdate);

        [id(0x000003ef), propget]
        HRESULT DateLastModified([out, retval] DATE* pdate);

        [id(0x000003f0), propget]
        HRESULT DateLastAccessed([out, retval] DATE* pdate);

        [id(0x000003f2), propget]
        HRESULT Type([out, retval] BSTR* pbstrType);

528
        [id(0x000004b1)]
529
        HRESULT Delete([in, defaultvalue(0)] VARIANT_BOOL Force);
530

531
        [id(0x000004b3)]
532
        HRESULT Copy([in] BSTR Destination, [in, defaultvalue(-1)] VARIANT_BOOL OverWriteFiles);
533

534
        [id(0x000004b5)]
535 536 537
        HRESULT Move([in] BSTR Destination);

        [id(0x00002710), propget]
538
        HRESULT IsRootFolder([out, retval] VARIANT_BOOL* pfRootFolder);
539

540 541
        [id(0x000003f1), propget]
        HRESULT Size([out, retval] VARIANT* pvarSize);
542

543 544
        [id(0x00002711), propget]
        HRESULT SubFolders([out, retval] IFolderCollection** ppfolders);
545

546 547
        [id(0x00002712), propget]
        HRESULT Files([out, retval] IFileCollection** ppfiles);
548

549
        [id(0x0000044d)]
550 551
        HRESULT CreateTextFile([in] BSTR FileName, [in, defaultvalue(-1)] VARIANT_BOOL Overwrite,
                        [in, defaultvalue(0)] VARIANT_BOOL Unicode, [out, retval] ITextStream** ppts);
552 553 554 555 556 557 558 559 560 561 562 563 564
    }

    [
      odl,
      uuid(2A0B9D10-4B87-11D3-A97A-00104B365C9F),
      dual,
      nonextensible,
      oleautomation
    ]
    interface IFileSystem3 : IFileSystem
    {
        [id(0x00004e20)]
        HRESULT GetStandardStream([in] StandardStreamTypes StandardStreamType,
565
                        [in, defaultvalue(0)] VARIANT_BOOL Unicode, [out, retval] ITextStream** ppts);
566 567 568 569 570 571 572 573 574 575 576 577 578

        [id(0x00004e2a)]
        HRESULT GetFileVersion([in] BSTR FileName, [out, retval] BSTR* FileVersion);
    }

    [
      odl,
      uuid(AADC65F6-CFF1-11D1-B747-00C04FC2B085),
      dual,
      oleautomation
    ]
    interface IScriptEncoder : IDispatch
    {
579
        [id(DISPID_VALUE)]
580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689
        HRESULT EncodeScriptFile([in] BSTR szExt, [in] BSTR bstrStreamIn, [in] long cFlags,
                        [in] BSTR bstrDefaultLang, [out, retval] BSTR* pbstrStreamOut);
    }

    [
      uuid(EE09B103-97E0-11CF-978F-00A02463E06F),
      version(1.0),
      helpstring("Scripting.Dictionary"),
      threading(apartment),
      progid("Scripting.Dictionary")
    ]
    coclass Dictionary
    {
        [default] interface IDictionary;
    }

    [
      uuid(0D43FE01-F093-11CF-8940-00A0C9054228),
      version(1.0),
      helpstring("FileSystem Object"),
      threading(both),
      progid("Scripting.FileSystemObject")
    ]
    coclass FileSystemObject
    {
        [default] interface IFileSystem3;
    }

    [
      uuid(C7C3F5B1-88A3-11D0-ABCB-00A0C90FFFC0),
      noncreatable,
      version(1.0)
    ]
    coclass Drive
    {
        [default] interface IDrive;
    }

    [
      uuid(C7C3F5B2-88A3-11D0-ABCB-00A0C90FFFC0),
      noncreatable,
      version(1.0)
    ]
    coclass Drives
    {
        [default] interface IDriveCollection;
    }

    [
      uuid(C7C3F5B3-88A3-11D0-ABCB-00A0C90FFFC0),
      noncreatable,
      version(1.0)
    ]
    coclass Folder
    {
        [default] interface IFolder;
    }

    [
      uuid(C7C3F5B4-88A3-11D0-ABCB-00A0C90FFFC0),
      noncreatable,
      version(1.0)
    ]
    coclass Folders
    {
        [default] interface IFolderCollection;
    }

    [
      uuid(C7C3F5B5-88A3-11D0-ABCB-00A0C90FFFC0),
      noncreatable,
      version(1.0)
    ]
    coclass File
    {
        [default] interface IFile;
    }

    [
      uuid(C7C3F5B6-88A3-11D0-ABCB-00A0C90FFFC0),
      noncreatable,
      version(1.0)
    ]
    coclass Files
    {
        [default] interface IFileCollection;
    }

    [
      uuid(0BB02EC0-EF49-11CF-8940-00A0C9054228),
      noncreatable,
      version(1.0)
    ]
    coclass TextStream
    {
        [default] interface ITextStream;
    }

    [
      uuid(32DA2B15-CFED-11D1-B747-00C04FC2B085),
      version(1.0),
      helpstring("Script Encoder Object"),
      threading(apartment),
      progid("Scripting.Encoder")
    ]
    coclass Encoder
    {
        [default] interface IScriptEncoder;
    }
}