ReactOS 0.4.15-dev-7842-g558ab78
natupnp.idl
Go to the documentation of this file.
1/*
2 * Copyright 2018 Alistair Leslie-Hughes
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 */
18import "oaidl.idl";
19import "ocidl.idl";
20
21#if !defined(progid) && !defined(__WIDL__)
22#define threading(model)
23#define progid(str)
24#define vi_progid(str)
25#endif
26
27[
28 object,
29 uuid(6F10711F-729B-41E5-93B8-F21D0F818DF1),
30 dual,
32]
34{
35 [propget, id(1)]
38 [propget, id(2)]
39 HRESULT ExternalPort([out, retval] long *value);
40
41 [propget, id(3)]
42 HRESULT InternalPort([out, retval] long *value);
44 [propget, id(4)]
46
47 [propget, id(5)]
49
50 [propget, id(6)]
52
53 [propget, id(7)]
54 HRESULT Description([out, retval] BSTR *value);
55
56 [id(8)]
58
59 [id(9)]
61
62 [id(10)]
64
65 [id(11)]
67};
68
69[
70 object,
71 uuid(cd1f3e77-66d6-4664-82c7-36dbb641d0f1),
72 dual,
74]
76{
77 [propget, id(DISPID_NEWENUM), hidden, restricted]
78 HRESULT _NewEnum([out, retval] IUnknown **value);
80 [propget, id(DISPID_VALUE)]
82
83 [propget, id(1)]
84 HRESULT Count([out, retval] long *value);
85
86 [id(2)]
88
89 [id(3)]
90 HRESULT Add([in] long external, [in] BSTR protocol, [in] long internal, [in] BSTR client,
92};
93
94[
95 object,
96 uuid(4FC80282-23B6-4378-9A27-CD8F17C9400C),
97 dual,
99]
101{
102 [propget, id(1)]
105 [propget, id(2)]
107
108 [propget, id(3)]
109 HRESULT ExternalPort([out, retval] long *value);
111 [propget, id(4)]
113
114 [propget, id(5)]
115 HRESULT InternalPort([out, retval] long *value);
117 [propget, id(6)]
119
120 [propget, id(7)]
122
123 [propget, id(8)]
125
126 [propget, id(9)]
127 HRESULT LeaseDuration([out, retval] long *value);
128
129 [id(10)]
130 HRESULT RenewLease([in] long desired, [out, retval] long *duration);
131
132 [id(11)]
134
135 [id(12)]
137
138 [id(13)]
140
141 [id(14)]
143};
144
145[
146 object,
147 uuid(b60de00f-156e-4e8d-9ec1-3a2342c10899),
148 dual,
150]
152{
153 [propget, id(DISPID_NEWENUM), hidden, restricted]
154 HRESULT _NewEnum([out, retval] IUnknown **value);
156 [propget, id(DISPID_VALUE)]
157 HRESULT Item([in] BSTR host, [in] long port, [in] BSTR orotocol,
158 [out, retval] IDynamicPortMapping **mapping);
159
160 [propget, id(1)]
161 HRESULT Count([out, retval] long *value);
162
163 [id(2)]
164 HRESULT Remove([in] BSTR host, [in] long port, [in] BSTR protocol);
165
166 [id(3)]
167 HRESULT Add([in] BSTR host, [in] long port, [in] BSTR protocol, [in] long internal,
169 [in] long duration, [out, retval] IDynamicPortMapping **mapping);
170};
171
172[
173 object,
174 uuid(624bd588-9060-4109-b0b0-1adbbcac32df),
175 dual,
177]
179{
180 [id(1), propput]
183 [id(2), propput]
185};
186
187[
188 object,
189 uuid(b171c812-cc76-485a-94d8-b6b3a2794e99),
190 dual,
192]
194{
195 [propget, id(1)]
198 [propget, id(2)]
200
201 [propget, id(3)]
202 HRESULT NATEventManager ([out, retval] INATEventManager **manager);
203};
204
205[
206 id(2),
207 uuid(1c565858-f302-471e-b409-f180aa4abec6),
208 version(1.0)
209]
211{
212 importlib("stdole2.tlb");
213
214 [
215 vi_progid("HNetCfg.NATUPnP"),
216 progid("HNetCfg.NATUPnP.1"),
218 uuid(ae1e00aa-3fd5-403c-8a27-2bbdc30cd0e1)
219 ]
220 coclass UPnPNAT
221 {
222 [default] interface IUPnPNAT;
223 };
224};
FT_Library library
Definition: cffdrivr.c:654
Definition: ehthrow.cxx:54
coclass PSFactoryBuffer pointer_default(unique)] interface ObjectRpcBaseTypes
Definition: dcom.idl:35
static const WCHAR Description[]
Definition: oid.c:1266
OLECHAR * BSTR
Definition: compat.h:2293
short VARIANT_BOOL
Definition: compat.h:2290
static const WCHAR version[]
Definition: asmname.c:66
USHORT port
Definition: uri.c:228
GLenum GLenum GLsizei const GLuint GLboolean enabled
Definition: glext.h:7750
const GLubyte * c
Definition: glext.h:8905
GLuint in
Definition: glext.h:9616
GLenum GLenum GLenum GLenum mapping
Definition: glext.h:9031
GLboolean enable
Definition: glext.h:11120
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
GLuint id
Definition: glext.h:5910
const DISPID DISPID_NEWENUM
Definition: oaidl.idl:575
const DISPID DISPID_VALUE
Definition: oaidl.idl:573
HRESULT Add([in] BSTR host, [in] long port, [in] BSTR protocol, [in] long internal, [in] BSTR client, [in] VARIANT_BOOL enabled, [in] BSTR Description, [in] long duration, [out, retval] IDynamicPortMapping **mapping)
IDynamicPortMapping Item([in] BSTR host,[in] long port,[in] BSTR orotocol)
HRESULT EditInternalPort([in] long port)
HRESULT EditDescription([in] BSTR description)
VARIANT_BOOL Enabled
HRESULT RenewLease([in] long desired, [out, retval] long *duration)
HRESULT EditInternalClient([in] BSTR client)
IUnknown NumberOfEntriesCallback
IUnknown ExternalIPAddressCallback
IStaticPortMapping Item([in] long port,[in] BSTR protocol)
HRESULT Add([in] long external, [in] BSTR protocol, [in] long internal, [in] BSTR client, [in] VARIANT_BOOL enabled, [in] BSTR description, [out, retval] IStaticPortMapping **mapping)
HRESULT EditInternalPort([in] long port)
HRESULT EditDescription([in] BSTR description)
VARIANT_BOOL Enabled
HRESULT EditInternalClient([in] BSTR client)
IDynamicPortMappingCollection DynamicPortMappingCollection
IStaticPortMappingCollection StaticPortMappingCollection
INATEventManager NATEventManager
Definition: msctf.idl:550
int desired
Definition: jpeglib.h:1119
#define e
Definition: ke_i.h:82
__u32 hidden
Definition: mkdosfs.c:13
static ICollection collection
Definition: typelib.c:184
#define progid(str)
Definition: natupnp.idl:23
#define vi_progid(str)
Definition: natupnp.idl:24
#define threading(model)
Definition: natupnp.idl:22
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
Definition: ntddpcm.h:142
static FILE * out
Definition: regtests2xml.c:44
static FILE * client
Definition: client.c:41
Definition: pdh_main.c:94
char * host
Definition: whois.c:55
const char * description
Definition: directx.c:2497
_In_ BOOLEAN Remove
Definition: psfuncs.h:110