host.idl

来自「在程序中加入脚本支持」· IDL 代码 · 共 43 行

IDL
43
字号
/////////////////////////////////////////////////////////////
//
// 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 + =
减小字号Ctrl + -
显示快捷键?