vbsglobal.idl 20.1 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/*
 * 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
 */

19
#pragma makedep regtypelib
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
import "oaidl.idl";

#include "vbscript_defs.h"

[
    helpstring("Microsoft VBScript Globals"),
    uuid(3eef9758-35fc-11d1-8ce4-00c04fc2b185),
    version(1.0)
]
library VBScript_Global
{
    importlib("stdole2.tlb");

    [
        uuid(3eef9758-35fc-11d1-8ce4-00c04fc2B186)
    ]
    dispinterface GlobalObj {
    properties:
        [id(DISPID_GLOBAL_VBUSESYSTEM), readonly]
        VARIANT vbUseSystem;

        [id(DISPID_GLOBAL_USESYSTEMDAYOFWEEK), readonly]
        VARIANT vbUseSystemDayOfWeek;

        [id(DISPID_GLOBAL_VBSUNDAY), readonly]
        VARIANT vbSunday;

        [id(DISPID_GLOBAL_VBMONDAY), readonly]
        VARIANT vbMonday;

        [id(DISPID_GLOBAL_VBTUESDAY), readonly]
        VARIANT vbTuesday;

        [id(DISPID_GLOBAL_VBWEDNESDAY), readonly]
        VARIANT vbWednesday;

        [id(DISPID_GLOBAL_VBTHURSDAY), readonly]
        VARIANT vbThursday;

        [id(DISPID_GLOBAL_VBFRIDAY), readonly]
        VARIANT vbFriday;

        [id(DISPID_GLOBAL_VBSATURDAY), readonly]
        VARIANT vbSaturday;

        [id(DISPID_GLOBAL_VBFIRSTJAN1), readonly]
        VARIANT vbFirstJan1;

        [id(DISPID_GLOBAL_VBFIRSTFOURDAYS), readonly]
        VARIANT vbFirstFourDays;

        [id(DISPID_GLOBAL_VBFIRSTFULLWEEK), readonly]
        VARIANT vbFirstFullWeek;

        [id(DISPID_GLOBAL_VBOKONLY), readonly]
        VARIANT vbOKOnly;

        [id(DISPID_GLOBAL_VBOKCANCEL), readonly]
        VARIANT vbOKCancel;

        [id(DISPID_GLOBAL_VBABORTRETRYIGNORE), readonly]
        VARIANT vbAbortRetryIgnore;

        [id(DISPID_GLOBAL_VBYESNOCANCEL), readonly]
        VARIANT vbYesNoCancel;

        [id(DISPID_GLOBAL_VBYESNO), readonly]
        VARIANT vbYesNo;

90
        [id(DISPID_GLOBAL_VBRETRYCANCEL), readonly]
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 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 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 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 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 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 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 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 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 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757
        VARIANT vbRetryCancel;

        [id(DISPID_GLOBAL_VBCRITICAL), readonly]
        VARIANT vbCritical;

        [id(DISPID_GLOBAL_VBQUESTION), readonly]
        VARIANT vbQuestion;

        [id(DISPID_GLOBAL_VBEXCLAMATION), readonly]
        VARIANT vbExclamation;

        [id(DISPID_GLOBAL_VBINFORMATION), readonly]
        VARIANT vbInformation;

        [id(DISPID_GLOBAL_VBDEFAULTBUTTON1), readonly]
        VARIANT vbDefaultButton1;

        [id(DISPID_GLOBAL_VBDEFAULTBUTTON2), readonly]
        VARIANT vbDefaultButton2;

        [id(DISPID_GLOBAL_VBDEFAULTBUTTON3), readonly]
        VARIANT vbDefaultButton3;

        [id(DISPID_GLOBAL_VBDEFAULTBUTTON4), readonly]
        VARIANT vbDefaultButton4;

        [id(DISPID_GLOBAL_VBAPPLICATIONMODAL), readonly]
        VARIANT vbApplicationModal;

        [id(DISPID_GLOBAL_VBSYSTEMMODAL), readonly]
        VARIANT vbSystemModal;

        [id(DISPID_GLOBAL_VBOK), readonly]
        VARIANT vbOK;

        [id(DISPID_GLOBAL_VBCANCEL), readonly]
        VARIANT vbCancel;

        [id(DISPID_GLOBAL_VBABORT), readonly]
        VARIANT vbAbort;

        [id(DISPID_GLOBAL_VBRETRY), readonly]
        VARIANT vbRetry;

        [id(DISPID_GLOBAL_VBIGNORE), readonly]
        VARIANT vbIgnore;

        [id(DISPID_GLOBAL_VBYES), readonly]
        VARIANT vbYes;

        [id(DISPID_GLOBAL_VBNO), readonly]
        VARIANT vbNo;

        [id(DISPID_GLOBAL_VBEMPTY), readonly]
        VARIANT vbEmpty;

        [id(DISPID_GLOBAL_VBNULL), readonly]
        VARIANT vbNull;

        [id(DISPID_GLOBAL_VBINTEGER), readonly]
        VARIANT vbInteger;

        [id(DISPID_GLOBAL_VBLONG), readonly]
        VARIANT vbLong;

        [id(DISPID_GLOBAL_VBSINGLE), readonly]
        VARIANT vbSingle;

        [id(DISPID_GLOBAL_VBDOUBLE), readonly]
        VARIANT vbDouble;

        [id(DISPID_GLOBAL_VBCURRENCY), readonly]
        VARIANT vbCurrency;

        [id(DISPID_GLOBAL_VBDATE), readonly]
        VARIANT vbDate;

        [id(DISPID_GLOBAL_VBSTRING), readonly]
        VARIANT vbString;

        [id(DISPID_GLOBAL_VBOBJECT), readonly]
        VARIANT vbObject;

        [id(DISPID_GLOBAL_VBERROR), readonly]
        VARIANT vbError;

        [id(DISPID_GLOBAL_VBBOOLEAN), readonly]
        VARIANT vbBoolean;

        [id(DISPID_GLOBAL_VBVARIANT), readonly]
        VARIANT vbVariant;

        [id(DISPID_GLOBAL_VBDATAOBJECT), readonly]
        VARIANT vbDataObject;

        [id(DISPID_GLOBAL_VBDECIMAL), readonly]
        VARIANT vbDecimal;

        [id(DISPID_GLOBAL_VBBYTE), readonly]
        VARIANT vbByte;

        [id(DISPID_GLOBAL_VBARRAY), readonly]
        VARIANT vbArray;

        [id(DISPID_GLOBAL_VBTRUE), readonly]
        VARIANT vbTrue;

        [id(DISPID_GLOBAL_VBFALSE), readonly]
        VARIANT vbFalse;

        [id(DISPID_GLOBAL_VBUSEDEFAULT), readonly]
        VARIANT vbUseDefault;

        [id(DISPID_GLOBAL_VBBINARYCOMPARE), readonly]
        VARIANT vbBinaryCompare;

        [id(DISPID_GLOBAL_VBTEXTCOMPARE), readonly]
        VARIANT vbTextCompare;

        [id(DISPID_GLOBAL_VBDATABASECOMPARE), readonly]
        VARIANT vbDatabaseCompare;

        [id(DISPID_GLOBAL_VBGENERALDATE), readonly]
        VARIANT vbGeneralDate;

        [id(DISPID_GLOBAL_VBLONGDATE), readonly]
        VARIANT vbLongDate;

        [id(DISPID_GLOBAL_VBSHORTDATE), readonly]
        VARIANT vbShortDate;

        [id(DISPID_GLOBAL_VBLONGTIME), readonly]
        VARIANT vbLongTime;

        [id(DISPID_GLOBAL_VBSHORTTIME), readonly]
        VARIANT vbShortTime;

        [id(DISPID_GLOBAL_VBOBJECTERROR), readonly]
        VARIANT vbObjectError;

        [id(DISPID_GLOBAL_VBBLACK), readonly]
        VARIANT vbBlack;

        [id(DISPID_GLOBAL_VBBLUE), readonly]
        VARIANT vbBlue;

        [id(DISPID_GLOBAL_VBCYAN), readonly]
        VARIANT vbCyan;

        [id(DISPID_GLOBAL_VBGREEN), readonly]
        VARIANT vbGreen;

        [id(DISPID_GLOBAL_VBMAGENTA), readonly]
        VARIANT vbMagenta;

        [id(DISPID_GLOBAL_VBRED), readonly]
        VARIANT vbRed;

        [id(DISPID_GLOBAL_VBWHITE), readonly]
        VARIANT vbWhite;

        [id(DISPID_GLOBAL_VBYELLOW), readonly]
        VARIANT vbYellow;

        [id(DISPID_GLOBAL_VBCR), readonly]
        VARIANT vbCr;

        [id(DISPID_GLOBAL_VBCRLF), readonly]
        VARIANT vbCrLf;

        [id(DISPID_GLOBAL_VBNEWLINE), readonly]
        VARIANT vbNewLine;

        [id(DISPID_GLOBAL_VBFORMFEED), readonly]
        VARIANT vbFormFeed;

        [id(DISPID_GLOBAL_VBLF), readonly]
        VARIANT vbLf;

        [id(DISPID_GLOBAL_VBNULLCHAR), readonly]
        VARIANT vbNullChar;

        [id(DISPID_GLOBAL_VBNULLSTRING), readonly]
        VARIANT vbNullString;

        [id(DISPID_GLOBAL_VBTAB), readonly]
        VARIANT vbTab;

        [id(DISPID_GLOBAL_VBVERTICALTAB), readonly]
        VARIANT vbVerticalTab;

        [id(DISPID_GLOBAL_VBMSGBOXHELPBUTTON), readonly]
        VARIANT vbMsgBoxHelpButton;

        [id(DISPID_GLOBAL_VBMSGBOXSETFOREGROUND), readonly]
        VARIANT vbMsgBoxSetForeground;

        [id(DISPID_GLOBAL_VBMSGBOXRIGHT), readonly]
        VARIANT vbMsgBoxRight;

        [id(DISPID_GLOBAL_VBMSGBOXRTLREADING), readonly]
        VARIANT vbMsgBoxRtlReading;

    methods:
        [id(DISPID_GLOBAL_CCUR)]
        VARIANT CCur(VARIANT expression);

        [id(DISPID_GLOBAL_CINT)]
        VARIANT CInt(VARIANT expression);

        [id(DISPID_GLOBAL_CLNG)]
        VARIANT CLng(VARIANT expression);

        [id(DISPID_GLOBAL_CBOOL)]
        VARIANT CBool(VARIANT expression);

        [id(DISPID_GLOBAL_CBYTE)]
        VARIANT CByte(VARIANT expression);

        [id(DISPID_GLOBAL_CDATE)]
        VARIANT CDate(VARIANT expression);

        [id(DISPID_GLOBAL_CDBL)]
        VARIANT CDbl(VARIANT expression);

        [id(DISPID_GLOBAL_CSNG)]
        VARIANT CSng(VARIANT expression);

        [id(DISPID_GLOBAL_CSTR)]
        VARIANT CStr(VARIANT expression);

        [id(DISPID_GLOBAL_HEX)]
        VARIANT Hex(VARIANT number);

        [id(DISPID_GLOBAL_OCT)]
        VARIANT Oct(VARIANT number);

        [id(DISPID_GLOBAL_VARTYPE)]
        VARIANT VarType(VARIANT varname);

        [id(DISPID_GLOBAL_ISDATE)]
        VARIANT IsDate(VARIANT expression);

        [id(DISPID_GLOBAL_ISEMPTY)]
        VARIANT IsEmpty(VARIANT expression);

        [id(DISPID_GLOBAL_ISNULL)]
        VARIANT IsNull(VARIANT expression);

        [id(DISPID_GLOBAL_ISNUMERIC)]
        VARIANT IsNumeric(VARIANT expression);

        [id(DISPID_GLOBAL_ISARRAY)]
        VARIANT IsArray(VARIANT expression);

        [id(DISPID_GLOBAL_ISOBJECT)]
        VARIANT IsObject(VARIANT identifier);

        [id(DISPID_GLOBAL_ATN)]
        VARIANT Atn(VARIANT number);

        [id(DISPID_GLOBAL_COS)]
        VARIANT Cos(VARIANT number);

        [id(DISPID_GLOBAL_SIN)]
        VARIANT Sin(VARIANT number);

        [id(DISPID_GLOBAL_TAN)]
        VARIANT Tan(VARIANT number);

        [id(DISPID_GLOBAL_EXP)]
        VARIANT Exp(VARIANT number);

        [id(DISPID_GLOBAL_LOG)]
        VARIANT Log(VARIANT number);

        [id(DISPID_GLOBAL_SQR)]
        VARIANT Sqr(VARIANT number);

        [id(DISPID_GLOBAL_RANDOMIZE)]
        VARIANT Randomize(VARIANT number);

        [id(DISPID_GLOBAL_RND)]
        VARIANT Rnd(VARIANT number);

        [id(DISPID_GLOBAL_TIMER)]
        VARIANT Timer();

        [id(DISPID_GLOBAL_LBOUND)]
        VARIANT LBound(VARIANT arrayname);

        [id(DISPID_GLOBAL_UBOUND)]
        VARIANT UBound(VARIANT arrayname);

        [id(DISPID_GLOBAL_RGB)]
        VARIANT RGB(
                VARIANT red,
                VARIANT green,
                VARIANT blue);

        [id(DISPID_GLOBAL_LEN)]
        VARIANT Len(VARIANT string);

        [id(DISPID_GLOBAL_LENB)]
        VARIANT LenB(VARIANT string);

        [id(DISPID_GLOBAL_LEFT)]
        VARIANT Left(
                VARIANT string,
                VARIANT length);

        [id(DISPID_GLOBAL_LEFTB)]
        VARIANT LeftB(
                VARIANT string,
                VARIANT length);

        [id(DISPID_GLOBAL_RIGHT)]
        VARIANT Right(
                VARIANT string,
                VARIANT length);

        [id(DISPID_GLOBAL_RIGHTB)]
        VARIANT RightB(
                VARIANT string,
                VARIANT length);

        [id(DISPID_GLOBAL_MID)]
        VARIANT Mid(
                VARIANT string,
                VARIANT start,
                [optional] VARIANT length);

        [id(DISPID_GLOBAL_MIDB)]
        VARIANT MidB(
                VARIANT string,
                VARIANT start,
                [optional] VARIANT length);

        [id(DISPID_GLOBAL_STRCOMP)]
        VARIANT StrComp(
                VARIANT string1,
                VARIANT string2,
                [optional] VARIANT compare);

        [id(DISPID_GLOBAL_LCASE)]
        VARIANT LCase(VARIANT string);

        [id(DISPID_GLOBAL_UCASE)]
        VARIANT UCase(VARIANT string);

        [id(DISPID_GLOBAL_LTRIM)]
        VARIANT LTrim(VARIANT string);

        [id(DISPID_GLOBAL_RTRIM)]
        VARIANT RTrim(VARIANT string);

        [id(DISPID_GLOBAL_TRIM)]
        VARIANT Trim(VARIANT string);

        [id(DISPID_GLOBAL_SPACE)]
        VARIANT Space(VARIANT number);

        [id(DISPID_GLOBAL_STRING)]
        VARIANT string(
                [optional] VARIANT number,
                [optional] VARIANT character);

        [id(DISPID_GLOBAL_INSTR)]
        VARIANT InStr(
                VARIANT start,
                VARIANT string,
                VARIANT string2,
                [optional] VARIANT compare);

        [id(DISPID_GLOBAL_INSTRB)]
        VARIANT InStrB(
                VARIANT start,
                VARIANT string,
                VARIANT string2,
                [optional] VARIANT compare);

        [id(DISPID_GLOBAL_ASCB)]
        VARIANT AscB(VARIANT string);

        [id(DISPID_GLOBAL_CHRB)]
        VARIANT ChrB(VARIANT charcode);

        [id(DISPID_GLOBAL_ASC)]
        VARIANT Asc(VARIANT string);

        [id(DISPID_GLOBAL_CHR)]
        VARIANT Chr(VARIANT charcode);

        [id(DISPID_GLOBAL_ASCW)]
        VARIANT AscW(VARIANT string);

        [id(DISPID_GLOBAL_CHRW)]
        VARIANT ChrW(VARIANT charcode);

        [id(DISPID_GLOBAL_ABS)]
        VARIANT Abs(VARIANT number);

        [id(DISPID_GLOBAL_FIX)]
        VARIANT Fix(VARIANT number);

        [id(DISPID_GLOBAL_INT)]
        VARIANT Int(VARIANT number);

        [id(DISPID_GLOBAL_SGN)]
        VARIANT Sgn(VARIANT number);

        [id(DISPID_GLOBAL_NOW)]
        VARIANT Now();

        [id(DISPID_GLOBAL_DATE)]
        VARIANT Date();

        [id(DISPID_GLOBAL_TIME)]
        VARIANT Time();

        [id(DISPID_GLOBAL_DAY)]
        VARIANT Day(VARIANT Date);

        [id(DISPID_GLOBAL_MONTH)]
        VARIANT Month(VARIANT Date);

        [id(DISPID_GLOBAL_WEEKDAY)]
        VARIANT Weekday(
                VARIANT Date,
                [optional] VARIANT firstdayofweek);

        [id(DISPID_GLOBAL_YEAR)]
        VARIANT Year(VARIANT Date);

        [id(DISPID_GLOBAL_HOUR)]
        VARIANT Hour(VARIANT Time);

        [id(DISPID_GLOBAL_MINUTE)]
        VARIANT Minute(VARIANT Time);

        [id(DISPID_GLOBAL_SECOND)]
        VARIANT Second(VARIANT Time);

        [id(DISPID_GLOBAL_DATEVALUE)]
        VARIANT DateValue(VARIANT Date);

        [id(DISPID_GLOBAL_TIMEVALUE)]
        VARIANT TimeValue(VARIANT Time);

        [id(DISPID_GLOBAL_DATESERIAL)]
        VARIANT DateSerial(
                VARIANT Year,
                VARIANT Month,
                VARIANT Date);

        [id(DISPID_GLOBAL_TIMESERIAL)]
        VARIANT TimeSerial(
                VARIANT Hour,
                VARIANT Minute,
                VARIANT Second);

        [id(DISPID_GLOBAL_INPUTBOX)]
        VARIANT InputBox(
                VARIANT prompt,
                [optional] VARIANT title,
                [optional] VARIANT defaultValue,
                [optional] VARIANT xpos,
                [optional] VARIANT ypos,
                [optional] VARIANT helpfile,
                [optional] VARIANT context);

        [id(DISPID_GLOBAL_MSGBOX)]
        VARIANT MsgBox(
                VARIANT prompt,
                [optional] VARIANT buttons,
                [optional] VARIANT title,
                [optional] VARIANT helpfile,
                [optional] VARIANT context);

        [id(DISPID_GLOBAL_CREATEOBJECT)]
        VARIANT CreateObject(VARIANT classValue);

        [id(DISPID_GLOBAL_GETOBJECT)]
        VARIANT GetObject(
                [optional] VARIANT pathname,
                [optional] VARIANT classValue);

        [id(DISPID_GLOBAL_DATEADD)]
        VARIANT DateAdd(
                VARIANT interval,
                VARIANT number,
                VARIANT Date);

        [id(DISPID_GLOBAL_DATEDIFF)]
        VARIANT DateDiff(
                VARIANT interval,
                VARIANT date1,
                VARIANT date2,
                [optional] VARIANT firstdayofweek,
                [optional] VARIANT firstdayofyear);

        [id(DISPID_GLOBAL_DATEPART)]
        VARIANT DatePart(
                VARIANT interval,
                VARIANT Date,
                [optional] VARIANT firstdayofweek,
                [optional] VARIANT firstdayofyear);

        [id(DISPID_GLOBAL_TYPENAME)]
        VARIANT TypeName(VARIANT varname);

        [id(DISPID_GLOBAL_ARRAY)]
        VARIANT Array(VARIANT arglist);

        [id(DISPID_GLOBAL_ERASE)]
        VARIANT Erase(VARIANT arraylist);

        [id(DISPID_GLOBAL_FILTER)]
        VARIANT Filter(
                VARIANT InputStrings,
                VARIANT Value,
                [optional] VARIANT Include,
                [optional] VARIANT compare);

        [id(DISPID_GLOBAL_JOIN)]
        VARIANT Join(
                VARIANT list,
                [optional] VARIANT delimiter);

        [id(DISPID_GLOBAL_SPLIT)]
        VARIANT Split(
                VARIANT expression,
                [optional] VARIANT delimiter,
                [optional] VARIANT count,
                [optional] VARIANT compare);

        [id(DISPID_GLOBAL_REPLACE)]
        VARIANT Replace(
                VARIANT expression,
                VARIANT find,
                VARIANT replacement,
                [optional] VARIANT start,
                [optional] VARIANT count,
                [optional] VARIANT compare);

        [id(DISPID_GLOBAL_STRREVERSE)]
        VARIANT StrReverse(VARIANT string1);

        [id(DISPID_GLOBAL_INSTRREV)]
        VARIANT InStrRev(
                VARIANT string1,
                VARIANT string2,
                [optional] VARIANT start,
                [optional] VARIANT compare);

        [id(DISPID_GLOBAL_LOADPICTURE)]
        VARIANT LoadPicture([optional] VARIANT stringexpression);

        [id(DISPID_GLOBAL_SCRIPTENGINE)]
        VARIANT ScriptEngine();

        [id(DISPID_GLOBAL_SCRIPTENGINEMAJORVERSION)]
        VARIANT ScriptEngineMajorVersion();

        [id(DISPID_GLOBAL_SCRIPTENGINEMINORVERSION)]
        VARIANT ScriptEngineMinorVersion();

        [id(DISPID_GLOBAL_SCRIPTENGINEBUILDVERSION)]
        VARIANT ScriptEngineBuildVersion();

        [id(DISPID_GLOBAL_FORMATNUMBER)]
        VARIANT FormatNumber(
                VARIANT expression,
                [optional] VARIANT NumDigitsAfterDecimal,
                [optional] VARIANT IncludeLeadingDigit,
                [optional] VARIANT UseParensForNegativeNumbers,
                [optional] VARIANT GroupDigits);

        [id(DISPID_GLOBAL_FORMATCURRENCY)]
        VARIANT FormatCurrency(
                VARIANT expression,
                [optional] VARIANT NumDigitsAfterDecimal,
                [optional] VARIANT IncludeLeadingDigit,
                [optional] VARIANT UseParensForNegativeNumbers,
                [optional] VARIANT GroupDigits);

        [id(DISPID_GLOBAL_FORMATPERCENT)]
        VARIANT FormatPercent(
                VARIANT expression,
                [optional] VARIANT NumDigitsAfterDecimal,
                [optional] VARIANT IncludeLeadingDigit,
                [optional] VARIANT UseParensForNegativeNumbers,
                [optional] VARIANT GroupDigits);

        [id(DISPID_GLOBAL_FORMATDATETIME)]
        VARIANT FormatDateTime(
                VARIANT Date,
                [optional] VARIANT NamedFormat);

        [id(DISPID_GLOBAL_WEEKDAYNAME)]
        VARIANT WeekdayName(
                VARIANT Weekday,
                VARIANT abbreviate,
                VARIANT firstdayofweek);

        [id(DISPID_GLOBAL_MONTHNAME)]
        VARIANT MonthName(
                VARIANT Month,
                [optional] VARIANT abbreviate);

        [id(DISPID_GLOBAL_ROUND)]
        VARIANT Round(
                VARIANT expression,
                [optional] VARIANT numdecimalplaces);

        [id(DISPID_GLOBAL_ESCAPE)]
        VARIANT Escape(VARIANT string);

        [id(DISPID_GLOBAL_UNESCAPE)]
        VARIANT Unescape(VARIANT string);

        [id(DISPID_GLOBAL_EVAL)]
        VARIANT Eval(VARIANT string);

        [id(DISPID_GLOBAL_EXECUTE)]
        VARIANT Execute(VARIANT string);

        [id(DISPID_GLOBAL_EXECUTEGLOBAL)]
        VARIANT ExecuteGlobal(VARIANT string);

        [id(DISPID_GLOBAL_GETREF)]
        VARIANT GetRef(VARIANT string);
    }

    [
        uuid(3eef9758-35fc-11d1-8ce4-00c04fc2b187)
    ]
    dispinterface ErrObj {
    properties:
        [id(DISPID_ERR_DESCRIPTION)]
        VARIANT Description;

        [id(DISPID_ERR_HELPCONTEXT)]
        VARIANT HelpContext;

        [id(DISPID_ERR_HELPFILE)]
        VARIANT helpfile;

        [id(DISPID_ERR_NUMBER)]
        VARIANT number;

        [id(DISPID_ERR_SOURCE)]
        VARIANT Source;

    methods:
        [id(DISPID_ERR_CLEAR)]
        VARIANT Clear();

        [id(DISPID_ERR_RAISE)]
        VARIANT Raise(
                VARIANT number,
                VARIANT Source,
                VARIANT Description,
                VARIANT helpfile,
                VARIANT HelpContext);
    }
}