File: ihost.idl

package info (click to toggle)
wine 5.0.3-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 220,300 kB
  • sloc: ansic: 3,035,623; perl: 19,098; yacc: 16,358; makefile: 10,088; javascript: 9,150; objc: 6,590; lex: 5,734; python: 1,914; cpp: 1,042; sh: 759; java: 749; xml: 557; awk: 69; cs: 17
file content (188 lines) | stat: -rw-r--r-- 5,802 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
90
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
/*
 * Copyright 2010 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
 */

#pragma makedep typelib

#include "ihost_dispid.h"

import "oaidl.idl";

[
    uuid(60254ca0-953b-11cf-8c96-00aa00b8708c),
    version(5.6),
]
library IHost
{
    importlib("stdole2.tlb");

    [
        odl,
        uuid(2cc5a9d1-b1e5-11d3-a286-00104bd35090),
        dual,
        oleautomation
    ]
    interface IArguments2 : IDispatch {
        [id(DISPID_VALUE)]
        HRESULT Item(
            [in] LONG Index,
            [out, retval] BSTR *out_Value);

        [id(IARGUMENTS2_COUNT_DISPID)]
        HRESULT Count([out, retval] LONG *out_Count);

        [id(IARGUMENTS2_LENGTH_DISPID), propget]
        HRESULT length([out, retval] LONG *out_Count);
    }

    [
        odl,
        uuid(53bad8c1-e718-11cf-893d-00a0c9054228),
        hidden,
        dual,
        nonextensible,
        oleautomation
    ]
    interface ITextStream : IDispatch {
        [id(ITEXTSTREAM_LINE_DISPID), propget]
        HRESULT Line([out, retval] LONG *Line);

        [id(ITEXTSTREAM_COLUMN_DISPID), propget]
        HRESULT Column([out, retval] LONG *Column);

        [id(ITEXTSTREAM_ATENDOFSTREAM_DISPID), propget]
        HRESULT AtEndOfStream([out, retval] VARIANT_BOOL *EOS);

        [id(ITEXTSTREAM_ATENDOFLINE_DISPID), propget]
        HRESULT AtEndOfLine([out, retval] VARIANT_BOOL *EOL);

        [id(ITEXTSTREAM_READ_DISPID)]
        HRESULT Read(
            [in] LONG Characters,
            [out, retval] BSTR *Text);

        [id(ITEXTSTREAM_READLINE_DISPID)]
        HRESULT ReadLine([out, retval] BSTR *Text);

        [id(ITEXTSTREAM_READALL_DISPID)]
        HRESULT ReadAll([out, retval] BSTR *Text);

        [id(ITEXTSTREAM_WRITE_DISPID)]
        HRESULT Write([in] BSTR Text);

        [id(ITEXTSTREAM_WRITELINE_DISPID)]
        HRESULT WriteLine([in, optional, defaultvalue("")] BSTR Text);

        [id(ITEXTSTREAM_WRITEBLANKLINES_DISPID)]
        HRESULT WriteBlankLines([in] LONG Lines);

        [id(ITEXTSTREAM_SKIP_DISPID)]
        HRESULT Skip([in] LONG Characters);

        [id(ITEXTSTREAM_SKIPLINE_DISPID)]
        HRESULT SkipLine();

        [id(ITEXTSTREAM_CLOSE_DISPID)]
        HRESULT Close();
    }

    [
        odl,
        uuid(91afbd1b-5feb-43f5-b028-e2ca960617ec),
        dual,
        oleautomation
    ]
    interface IHost : IDispatch {
        [id(IHOST_NAME_DISPID), propget]
        HRESULT Name([out, retval] BSTR *out_Name);

        [id(IHOST_APPLICATION_DISPID), propget]
        HRESULT Application([out, retval] IDispatch **out_Dispatch);

        [id(IHOST_FULLNAME_DISPID), propget]
        HRESULT FullName([out, retval] BSTR *out_Path);

        [id(IHOST_PATH_DISPID), propget]
        HRESULT Path([out, retval] BSTR* out_Path);

        [id(IHOST_INTERACTIVE_DISPID), propget]
        HRESULT Interactive([out, retval] VARIANT_BOOL *out_Interactive);

        [id(IHOST_INTERACTIVE_DISPID), propput]
        HRESULT Interactive([in] VARIANT_BOOL out_Interactive);

        [id(IHOST_QUIT_DISPID)]
        HRESULT Quit([in, optional, defaultvalue(0)] int ExitCode);

        [id(IHOST_SCRIPTNAME_DISPID), propget]
        HRESULT ScriptName([out, retval] BSTR *out_ScriptName);

        [id(IHOST_SCRIPTFULLNAME_DISPID), propget]
        HRESULT ScriptFullName([out, retval] BSTR* out_ScriptFullName);

        [id(IHOST_ARGUMENTS_DISPID), propget]
        HRESULT Arguments([out, retval] IArguments2 **out_Arguments);

        [id(IHOST_VERSION_DISPID), propget]
        HRESULT Version([out, retval] BSTR *out_Version);

        [id(IHOST_BUILDVERSION_DISPID), propget]
        HRESULT BuildVersion([out, retval] int *out_Build);

        [id(IHOST_TIMEOUT_DISPID), propget]
        HRESULT Timeout([out, retval] LONG *out_Timeout);

        [id(IHOST_TIMEOUT_DISPID), propput]
        HRESULT Timeout([in] LONG out_Timeout);

        [id(IHOST_CREATEOBJECT_DISPID)]
        HRESULT CreateObject(
                [in] BSTR ProgID,
                [in, optional, defaultvalue("")] BSTR Prefix,
                [out, retval] IDispatch **out_Dispatch);

        [id(IHOST_ECHO_DISPID), vararg]
        HRESULT Echo([in] SAFEARRAY(VARIANT) pArgs);

        [id(IHOST_GETOBJECT_DISPID)]
        HRESULT GetObject(
            [in] BSTR Pathname,
            [in, optional, defaultvalue("")] BSTR ProgID,
            [in, optional, defaultvalue("")] BSTR Prefix,
            [out, retval] IDispatch **out_Dispatch);

        [id(IHOST_DISCONNECTOBJECT_DISPID)]
        HRESULT DisconnectObject([in] IDispatch *Object);

        [id(IHOST_SLEEP_DISPID)]
        HRESULT Sleep([in] LONG Time);

        [id(IHOST_CONNECTOBJECT_DISPID)]
        HRESULT ConnectObject(
            [in] IDispatch *Object,
            [in] BSTR Prefix);

        [id(IHOST_STDIN_DISPID), propget]
        HRESULT StdIn([out, retval] ITextStream **out_ppts);

        [id(IHOST_STDOUT_DISPID), propget]
        HRESULT StdOut([out, retval] ITextStream **ppts);

        [id(IHOST_STDERR_DISPID), propget]
        HRESULT StdErr([out, retval] ITextStream **ppts);
    }
}