⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 host.idl

📁 在程序中加入脚本支持
💻 IDL
字号:
/////////////////////////////////////////////////////////////
//
// host.idl - Don Box, 1996-1997
// 
// A definition of the "shell" object used by eval.cpp
// and defined in hostshell.h
//

[
    uuid(CD19DEC0-3B5A-11d0-B39A-0080C7BC7884),
    helpstring("ActiveX Scripting Host Example")
]
library HostLib
{
    importlib("stdole32.tlb");

    [ uuid(CD19DEC1-3B5A-11d0-B39A-0080C7BC7884), object, dual ]
    interface IShell : IDispatch
    {
        HRESULT alert([in] BSTR bstr);
        HRESULT write([in] BSTR bstr);
        HRESULT writeLn([in] BSTR bstr);
        HRESULT exec([in] BSTR bstr);
        HRESULT beep(void);
    }

    [ uuid(CD19DEC2-3B5A-11d0-B39A-0080C7BC7884) ]
    dispinterface IShellNotify
    {
    properties:
    methods:
        [id(10)] void OnPlayGame([in] BSTR bstr);
        [id(11)] void OnEndOfLine(void);
    }

    [ uuid(CD19DEC3-3B5A-11d0-B39A-0080C7BC7884) ]
    coclass CHostShell
    {
        [default] interface IShell;
        [default, source] dispinterface IShellNotify;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -