ReactOS  0.4.12-dev-36-g472787f
ihost.idl
Go to the documentation of this file.
1 /*
2  * Copyright 2010 Jacek Caban for CodeWeavers
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
18 
19 #pragma makedep typelib
20 
21 #include "ihost_dispid.h"
22 
23 import "oaidl.idl";
24 
25 [
26  uuid(60254ca0-953b-11cf-8c96-00aa00b8708c),
27  version(5.6),
28 ]
30 {
31  importlib("stdole2.tlb");
32 
33  [
34  odl,
35  uuid(2cc5a9d1-b1e5-11d3-a286-00104bd35090),
36  dual,
38  ]
39  interface IArguments2 : IDispatch {
40  [id(DISPID_VALUE)]
41  HRESULT Item(
42  [in] LONG Index,
43  [out, retval] BSTR *out_Value);
44 
46  HRESULT Count([out, retval] LONG *out_Count);
47 
48  [id(IARGUMENTS2_LENGTH_DISPID), propget]
49  HRESULT length([out, retval] LONG *out_Count);
50  }
51 
52  [
53  odl,
54  uuid(53bad8c1-e718-11cf-893d-00a0c9054228),
55  hidden,
56  dual,
57  nonextensible,
59  ]
60  interface ITextStream : IDispatch {
61  [id(ITEXTSTREAM_LINE_DISPID), propget]
62  HRESULT Line([out, retval] LONG *Line);
63 
64  [id(ITEXTSTREAM_COLUMN_DISPID), propget]
65  HRESULT Column([out, retval] LONG *Column);
66 
68  HRESULT AtEndOfStream([out, retval] VARIANT_BOOL *EOS);
69 
71  HRESULT AtEndOfLine([out, retval] VARIANT_BOOL *EOL);
72 
74  HRESULT Read(
75  [in] LONG Characters,
76  [out, retval] BSTR *Text);
77 
79  HRESULT ReadLine([out, retval] BSTR *Text);
80 
82  HRESULT ReadAll([out, retval] BSTR *Text);
83 
85  HRESULT Write([in] BSTR Text);
86 
88  HRESULT WriteLine([in, optional, defaultvalue("")] BSTR Text);
89 
91  HRESULT WriteBlankLines([in] LONG Lines);
92 
94  HRESULT Skip([in] LONG Characters);
95 
97  HRESULT SkipLine();
98 
100  HRESULT Close();
101  }
102 
103  [
104  odl,
105  uuid(91afbd1b-5feb-43f5-b028-e2ca960617ec),
106  dual,
108  ]
109  interface IHost : IDispatch {
110  [id(IHOST_NAME_DISPID), propget]
111  HRESULT Name([out, retval] BSTR *out_Name);
112 
113  [id(IHOST_APPLICATION_DISPID), propget]
114  HRESULT Application([out, retval] IDispatch **out_Dispatch);
115 
116  [id(IHOST_FULLNAME_DISPID), propget]
117  HRESULT FullName([out, retval] BSTR *out_Path);
118 
119  [id(IHOST_PATH_DISPID), propget]
120  HRESULT Path([out, retval] BSTR* out_Path);
121 
122  [id(IHOST_INTERACTIVE_DISPID), propget]
123  HRESULT Interactive([out, retval] VARIANT_BOOL *out_Interactive);
124 
125  [id(IHOST_INTERACTIVE_DISPID), propput]
126  HRESULT Interactive([in] VARIANT_BOOL out_Interactive);
127 
129  HRESULT Quit([in, optional, defaultvalue(0)] int ExitCode);
130 
131  [id(IHOST_SCRIPTNAME_DISPID), propget]
132  HRESULT ScriptName([out, retval] BSTR *out_ScriptName);
133 
134  [id(IHOST_SCRIPTFULLNAME_DISPID), propget]
135  HRESULT ScriptFullName([out, retval] BSTR* out_ScriptFullName);
136 
137  [id(IHOST_ARGUMENTS_DISPID), propget]
138  HRESULT Arguments([out, retval] IArguments2 **out_Arguments);
139 
140  [id(IHOST_VERSION_DISPID), propget]
141  HRESULT Version([out, retval] BSTR *out_Version);
142 
143  [id(IHOST_BUILDVERSION_DISPID), propget]
144  HRESULT BuildVersion([out, retval] int *out_Build);
145 
146  [id(IHOST_TIMEOUT_DISPID), propget]
147  HRESULT Timeout([out, retval] LONG *out_Timeout);
148 
149  [id(IHOST_TIMEOUT_DISPID), propput]
150  HRESULT Timeout([in] LONG out_Timeout);
151 
153  HRESULT CreateObject(
154  [in] BSTR ProgID,
155  [in, optional, defaultvalue("")] BSTR Prefix,
156  [out, retval] IDispatch **out_Dispatch);
157 
158  [id(IHOST_ECHO_DISPID), vararg]
159  HRESULT Echo([in] SAFEARRAY(VARIANT) pArgs);
160 
163  [in] BSTR Pathname,
164  [in, optional, defaultvalue("")] BSTR ProgID,
165  [in, optional, defaultvalue("")] BSTR Prefix,
166  [out, retval] IDispatch **out_Dispatch);
167 
169  HRESULT DisconnectObject([in] IDispatch *Object);
170 
172  HRESULT Sleep([in] LONG Time);
173 
175  HRESULT ConnectObject(
176  [in] IDispatch *Object,
177  [in] BSTR Prefix);
178 
179  [id(IHOST_STDIN_DISPID), propget]
180  HRESULT StdIn([out, retval] ITextStream **out_ppts);
181 
182  [id(IHOST_STDOUT_DISPID), propget]
183  HRESULT StdOut([out, retval] ITextStream **ppts);
184 
185  [id(IHOST_STDERR_DISPID), propget]
186  HRESULT StdErr([out, retval] ITextStream **ppts);
187  }
188 }
_In_ BOOLEAN Read
Definition: strmini.h:479
#define ITEXTSTREAM_ATENDOFSTREAM_DISPID
Definition: ihost_dispid.h:48
#define IHOST_SCRIPTFULLNAME_DISPID
Definition: ihost_dispid.h:28
_In_ __drv_aliasesMem PSTRING Prefix
Definition: rtlfuncs.h:1631
coclass SHDocVw::ShellWindows odl
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
Definition: synch.c:736
IN PVOID IN PVOID IN USHORT Version
Definition: pci.h:359
#define IHOST_VERSION_DISPID
Definition: ihost_dispid.h:30
#define EOL
Definition: evtmsggen.c:23
#define EOS
Definition: fnmatch.c:74
coclass MSHTML::HTMLStyle oleautomation
coclass SHDocVw::ShellWindows dual
Definition: exdisp.idl:631
#define IARGUMENTS2_COUNT_DISPID
Definition: ihost_dispid.h:43
#define ITEXTSTREAM_SKIP_DISPID
Definition: ihost_dispid.h:56
#define IHOST_NAME_DISPID
Definition: ihost_dispid.h:21
#define IHOST_STDERR_DISPID
Definition: ihost_dispid.h:35
#define IHOST_PATH_DISPID
Definition: ihost_dispid.h:24
#define IHOST_QUIT_DISPID
Definition: ihost_dispid.h:26
_Inout_ __drv_aliasesMem PSLIST_ENTRY _Inout_ PSLIST_ENTRY _In_ ULONG Count
Definition: exfuncs.h:1015
#define ITEXTSTREAM_READLINE_DISPID
Definition: ihost_dispid.h:51
OLECHAR * BSTR
Definition: compat.h:1927
void WriteLine(char *pchLine, FILE *fileOut)
Definition: hpp.c:194
#define IARGUMENTS2_LENGTH_DISPID
Definition: ihost_dispid.h:44
static BOOL Write(PBYTE Address, PBYTE Data, SIZE_T Size)
Definition: vmhorizon.c:15
FT_Library library
Definition: cffdrivr.c:654
short VARIANT_BOOL
Definition: compat.h:1924
#define IHOST_STDOUT_DISPID
Definition: ihost_dispid.h:34
#define ITEXTSTREAM_COLUMN_DISPID
Definition: ihost_dispid.h:47
__u32 hidden
Definition: mkdosfs.c:371
struct tagSAFEARRAY SAFEARRAY
#define ITEXTSTREAM_WRITEBLANKLINES_DISPID
Definition: ihost_dispid.h:55
long LONG
Definition: pedump.c:60
importlib("stdole2.tlb")
Definition: ihost.idl:29
#define IHOST_CONNECTOBJECT_DISPID
Definition: ihost_dispid.h:41
struct NameRec_ * Name
Definition: cdprocs.h:464
static const WCHAR version[]
Definition: asmname.c:64
#define IHOST_ARGUMENTS_DISPID
Definition: ihost_dispid.h:29
#define ITEXTSTREAM_CLOSE_DISPID
Definition: ihost_dispid.h:58
#define ITEXTSTREAM_WRITE_DISPID
Definition: ihost_dispid.h:53
#define ITEXTSTREAM_READ_DISPID
Definition: ihost_dispid.h:50
Definition: msg.h:41
#define ITEXTSTREAM_ATENDOFLINE_DISPID
Definition: ihost_dispid.h:49
#define IHOST_STDIN_DISPID
Definition: ihost_dispid.h:33
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
#define d
Definition: ke_i.h:81
LONG HRESULT
Definition: typedefs.h:77
#define IHOST_BUILDVERSION_DISPID
Definition: ihost_dispid.h:31
GLenum GLuint GLenum GLsizei length
Definition: glext.h:5579
static const UCHAR Index[8]
Definition: usbohci.c:18
static FILE * out
Definition: regtests2xml.c:44
_In_ PSTRING FullName
Definition: rtlfuncs.h:1649
#define IHOST_CREATEOBJECT_DISPID
Definition: ihost_dispid.h:36
#define ITEXTSTREAM_READALL_DISPID
Definition: ihost_dispid.h:52
#define StdErr
Definition: stream.h:77
#define GetObject
Definition: wingdi.h:4445
static IUnknown Object
Definition: main.c:512
BOOL ReadLine(TCHAR *commandline, BOOL bMore)
Definition: cmd.c:1435
Definition: ncftp.h:79
GLfloat CONST GLvector4f * in
Definition: m_xform.h:122
#define IHOST_ECHO_DISPID
Definition: ihost_dispid.h:37
#define IHOST_SLEEP_DISPID
Definition: ihost_dispid.h:40
PRTL_UNICODE_STRING_BUFFER Path
static ULONG Timeout
Definition: ping.c:61
#define IHOST_FULLNAME_DISPID
Definition: ihost_dispid.h:23
#define IHOST_APPLICATION_DISPID
Definition: ihost_dispid.h:22
Definition: sacdrv.h:268
#define IHOST_DISCONNECTOBJECT_DISPID
Definition: ihost_dispid.h:39
#define ITEXTSTREAM_WRITELINE_DISPID
Definition: ihost_dispid.h:54
#define IHOST_GETOBJECT_DISPID
Definition: ihost_dispid.h:38
#define StdOut
Definition: stream.h:76
GLenum GLuint id
Definition: glext.h:5579
#define IHOST_TIMEOUT_DISPID
Definition: ihost_dispid.h:32
#define ITEXTSTREAM_LINE_DISPID
Definition: ihost_dispid.h:46
static PLARGE_INTEGER Time
Definition: time.c:105
#define IHOST_SCRIPTNAME_DISPID
Definition: ihost_dispid.h:27
struct Line Line
#define ITEXTSTREAM_SKIPLINE_DISPID
Definition: ihost_dispid.h:57
#define StdIn
Definition: stream.h:75
char * Text
Definition: combotst.c:136
Definition: telnetd.h:64
#define IHOST_INTERACTIVE_DISPID
Definition: ihost_dispid.h:25
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING Pathname
Definition: acpixf.h:703