ReactOS 0.4.15-dev-7674-gc0b4db1
netcon.idl
Go to the documentation of this file.
1/*
2 * Copyright 2009 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#ifndef DO_NO_IMPORTS
20import "oaidl.idl";
21import "unknwn.idl";
22import "wtypes.idl";
23/* import "prsht.idl"; */
24#endif
25
26cpp_quote("DEFINE_GUID(CLSID_NetSharingManager,0x5c63c1ad,0x3956,0x4ff8,0x84,0x86,0x40,0x03,0x47,0x58,0x31,0x5b);")
27
28[
29 object,
30 uuid(c08956a1-1cd3-11d1-b1c5-00805fc1270e),
32]
34{
36 {
37 NCCF_NONE = 0x0000,
44 NCCF_BRANDED = 0x0080,
45 NCCF_SHARED = 0x0100,
46 NCCF_BRIDGED = 0x0200,
48 NCCF_DEFAULT = 0x0800,
52 NCCF_RESERVED = 0x8000,
53 NCCF_BLUETOOTH_MASK = 0x000F0000,
54 NCCF_LAN_MASK = 0x00F00000
56
57 typedef enum tagNETCON_STATUS
58 {
73
74 typedef enum tagNETCON_TYPE
75 {
84
86 {
98
99 typedef struct tagNETCON_PROPERTIES
100 {
110
112
114
116
118 [in, string] LPCWSTR pszwDuplicateName,
119 [out] INetConnection **ppCon);
120
122
124
125 HRESULT Rename([in, string] LPCWSTR pszwNewName);
126}
127
128[
129 object,
130 uuid(24b7e9b5-e38f-4685-851b-00892cf5f940),
131 oleautomation,
132 dual,
134]
136{
137 [propget, id(1)]
138 HRESULT Name([out, retval] BSTR *pbstrName);
140 [propget, id(2)]
141 HRESULT IPProtocol([out, retval] UCHAR *pucIPProt);
142
143 [propget, id(3)]
144 HRESULT ExternalPort([out, retval] long *pusPort);
146 [propget, id(4)]
147 HRESULT InternalPort([out, retval] long *pusPort);
148
149 [propget, id(5)]
150 HRESULT Options([out, retval] long *pdwOptions);
152 [propget, id(6)]
153 HRESULT TargetName([out, retval] BSTR *pbstrTargetName);
154
155 [propget, id(7)]
156 HRESULT TargetIPAddress([out, retval] BSTR *pbstrTargetIPAddress);
157
158 [propget, id(8)]
159 HRESULT Enabled([out, retval] VARIANT_BOOL *pbool);
160}
161
162[
163 object,
164 uuid(c08956b1-1cd3-11d1-b1c5-00805fc1270e),
165 oleautomation,
166 dual,
168]
170{
171 [id(1)]
173
174 [id(2)]
176
177 [propget, id(3)]
179
180 [id(4)]
181 HRESULT Delete();
182};
183[
184 object,
185 uuid(02e4a2de-da20-4e34-89c8-ac22275a010b),
186 oleautomation,
187 dual,
189]
191{
192 [propget, id(DISPID_NEWENUM), restricted]
193 HRESULT _NewEnum([out, retval] IUnknown **pVal);
195 [propget, id(1)]
196 HRESULT Count([out, retval] long *pVal);
197}
198
199[
200 object,
201 uuid(c08956b6-1cd3-11d1-b1c5-00805fc1270e),
202 oleautomation,
203 dual,
205]
207{
212
217
218 typedef enum tagICS_TARGETTYPE {
222
223 [propget, id(1)]
224 HRESULT SharingEnabled([out, retval] VARIANT_BOOL *pbEnabled);
226 [propget, id(2)]
229 [id(3)]
232 [id(4)]
234
235 [propget, id(5)]
237
238 [id(6)]
240
241 [id(7)]
243
244 [propget, id(8)]
247 [out, retval] INetSharingPortMappingCollection **ppColl);
248
249 [id(9)]
251 [in] BSTR bstrName,
252 [in] UCHAR ucIPProtocol,
253 [in] USHORT usExternalPort,
254 [in] USHORT usInternalPort,
256 [in] BSTR bstrTargetNameOrIPAddress,
257 [in] ICS_TARGETTYPE eTargetType,
258 [out, retval] INetSharingPortMapping **ppMapping );
259
260 [id(10)]
262}
263
264[
265 object,
266 uuid(c08956b4-1cd3-11d1-b1c5-00805fc1270e),
268]
270{
272 [in] ULONG celt,
273 [out, size_is(celt), length_is(*pceltFetched)] VARIANT *rgVar,
274 [out] ULONG *pceltFetched);
275
277
279
281}
282
283[
284 object,
285 uuid(c08956b5-1cd3-11d1-b1c5-00805fc1270e),
287]
289{
291 [in] ULONG celt,
292 [out, size_is(celt), length_is(*pCeltFetched)] VARIANT *rgVar,
293 [out] ULONG *pCeltFetched);
294
296
298
300}
301
302[
303 object,
304 uuid(f4277c95-ce5b-463d-8167-5662d9bcaa72),
305 oleautomation,
306 dual,
308]
310{
311 [propget, id(1)]
312 HRESULT Guid([out, retval] BSTR *pbstrGuid);
314 [propget, id(2)]
315 HRESULT Name([out, retval] BSTR *pbstrName);
316
317 [propget, id(3)]
318 HRESULT DeviceName([out, retval] BSTR *pbstrDeviceName);
320 [propget, id(4)]
322
323 [propget, id(5)]
324 HRESULT MediaType([out, retval] NETCON_MEDIATYPE *pMediaType);
325
326 [propget, id(6)]
327 HRESULT Characteristics([out, retval] DWORD *pdwFlags);
328}
329
330[
331 object,
332 uuid(7d7a6355-f372-4971-a149-bfc927be762a),
333 oleautomation,
334 dual,
336]
338{
339 [propget, id(DISPID_NEWENUM), restricted]
340 HRESULT _NewEnum([out, retval] IUnknown **pVal);
342 [propget, id(1)]
343 HRESULT Count([out, retval] long *pVal);
344}
345
346[
347 object,
348 uuid(33c4643c-7811-46fa-a89a-768597bd7223),
349 oleautomation,
350 dual,
352 ]
354{
355 [propget, id(DISPID_NEWENUM), restricted]
356 HRESULT _NewEnum([out, retval] IUnknown **pVal);
358 [propget, id(1)]
359 HRESULT Count([out, retval] long *pVal);
360}
361
362[
363 object,
364 uuid(38ae69e0-4409-402a-a2cb-e965c727f840),
365 oleautomation,
366 dual,
368 ]
370{
371 [propget, id(DISPID_NEWENUM), restricted]
372 HRESULT _NewEnum([out, retval] IUnknown **pVal);
374 [propget, id(1)]
375 HRESULT Count([out, retval] long *pVal);
376}
377
378[
379 object,
380 uuid(c08956b7-1cd3-11d1-b1c5-00805fc1270e),
381 oleautomation,
382 dual,
384]
386{
387 [propget, id(1)]
388 HRESULT SharingInstalled([out, retval] VARIANT_BOOL *pbInstalled);
390 [propget, id(2)]
392 [in] SHARINGCONNECTION_ENUM_FLAGS Flags,
394
395 [propget, id(3)]
397 [in] SHARINGCONNECTION_ENUM_FLAGS Flags,
399
400 [propget, id(6)]
402 [in] INetConnection *pNetConnection,
403 [out, retval] INetSharingConfiguration **ppNetSharingConfiguration);
404
405 [propget, id(7)]
407
408 [propget, id(8)]
410 [in] INetConnection *pNetConnection,
411 [out, retval] INetConnectionProps **ppProps);
412}
Type
Definition: Type.h:7
CD3D10_BUFFER_DESC D3D10_BUFFER_DESC cpp_quote(" ~CD3D10_BUFFER_DESC() {}") operator const D3D10_BUFFER_DESC &() const
Definition: d3d10.idl:491
coclass PSFactoryBuffer pointer_default(unique)] interface ObjectRpcBaseTypes
Definition: dcom.idl:35
OLECHAR * BSTR
Definition: compat.h:2293
short VARIANT_BOOL
Definition: compat.h:2290
unsigned long DWORD
Definition: ntddk_ex.h:95
__in WDFDMATRANSACTION __out NTSTATUS * pStatus
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
GLuint in
Definition: glext.h:9616
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
GLuint id
Definition: glext.h:5910
const DISPID DISPID_NEWENUM
Definition: oaidl.idl:575
HRESULT Clone([out] IEnumNetSharingPrivateConnection **ppenum)
HRESULT Skip([in] ULONG celt)
HRESULT Next([in] ULONG celt, [out, size_is(celt), length_is(*pCeltFetched)] VARIANT *rgVar, [out] ULONG *pCeltFetched)
HRESULT Next([in] ULONG celt, [out, size_is(celt), length_is(*pceltFetched)] VARIANT *rgVar, [out] ULONG *pceltFetched)
HRESULT Skip([in] ULONG celt)
HRESULT Clone([out] IEnumNetSharingPublicConnection **ppenum)
NETCON_STATUS Status
NETCON_MEDIATYPE MediaType
HRESULT Connect()
enum INetConnection::tagNETCON_TYPE NETCON_TYPE
@ NCM_SHAREDACCESSHOST_LAN
Definition: netcon.idl:95
@ NCM_SHAREDACCESSHOST_RAS
Definition: netcon.idl:96
HRESULT Delete()
@ NCS_HARDWARE_DISABLED
Definition: netcon.idl:64
@ NCS_DISCONNECTING
Definition: netcon.idl:62
@ NCS_AUTHENTICATING
Definition: netcon.idl:67
@ NCS_CREDENTIALS_REQUIRED
Definition: netcon.idl:71
@ NCS_HARDWARE_NOT_PRESENT
Definition: netcon.idl:63
@ NCS_AUTHENTICATION_SUCCEEDED
Definition: netcon.idl:68
@ NCS_HARDWARE_MALFUNCTION
Definition: netcon.idl:65
@ NCS_INVALID_ADDRESS
Definition: netcon.idl:70
@ NCS_MEDIA_DISCONNECTED
Definition: netcon.idl:66
@ NCS_DISCONNECTED
Definition: netcon.idl:59
@ NCS_AUTHENTICATION_FAILED
Definition: netcon.idl:69
HRESULT Disconnect()
enum INetConnection::tagNETCON_STATUS NETCON_STATUS
tagNETCON_CHARACTERISTIC_FLAGS
Definition: netcon.idl:36
@ NCCF_SHARED_PRIVATE
Definition: netcon.idl:50
@ NCCF_QUARANTINED
Definition: netcon.idl:51
@ NCCF_OUTGOING_ONLY
Definition: netcon.idl:43
@ NCCF_ALLOW_DUPLICATION
Definition: netcon.idl:39
@ NCCF_INCOMING_ONLY
Definition: netcon.idl:42
@ NCCF_ALLOW_REMOVAL
Definition: netcon.idl:40
@ NCCF_ALLOW_RENAME
Definition: netcon.idl:41
@ NCCF_BLUETOOTH_MASK
Definition: netcon.idl:53
@ NCCF_HOMENET_CAPABLE
Definition: netcon.idl:49
HRESULT GetProperties([out] NETCON_PROPERTIES **ppProps)
struct INetConnection::tagNETCON_PROPERTIES NETCON_PROPERTIES
HRESULT Rename([in, string] LPCWSTR pszwNewName)
@ NCT_DIRECT_CONNECT
Definition: netcon.idl:76
HRESULT Duplicate([in, string] LPCWSTR pszwDuplicateName, [out] INetConnection **ppCon)
enum INetConnection::tagNETCON_MEDIATYPE NETCON_MEDIATYPE
enum INetConnection::tagNETCON_CHARACTERISTIC_FLAGS NETCON_CHARACTERISTIC_FLAGS
HRESULT GetUiObjectClassId([out, ref] CLSID *pclsid)
SHARINGCONNECTIONTYPE SharingConnectionType
INetSharingPortMappingCollection EnumPortMappings([in] SHARINGCONNECTION_ENUM_FLAGS Flags)
enum INetSharingConfiguration::tagSHARINGCONNECTIONTYPE SHARINGCONNECTIONTYPE
HRESULT DisableInternetFirewall()
enum INetSharingConfiguration::tagSHARINGCONNECTIONTYPE * LPSHARINGCONNECTIONTYPE
enum INetSharingConfiguration::tagICS_TARGETTYPE ICS_TARGETTYPE
VARIANT_BOOL SharingEnabled
HRESULT RemovePortMapping([in] INetSharingPortMapping *pMapping)
HRESULT EnableInternetFirewall()
enum INetSharingConfiguration::tagSHARINGCONNECTION_ENUM_FLAGS SHARINGCONNECTION_ENUM_FLAGS
HRESULT AddPortMapping([in] BSTR bstrName, [in] UCHAR ucIPProtocol, [in] USHORT usExternalPort, [in] USHORT usInternalPort, [in] DWORD dwOptions, [in] BSTR bstrTargetNameOrIPAddress, [in] ICS_TARGETTYPE eTargetType, [out, retval] INetSharingPortMapping **ppMapping)
HRESULT EnableSharing([in] SHARINGCONNECTIONTYPE Type)
VARIANT_BOOL InternetFirewallEnabled
INetSharingPublicConnectionCollection EnumPublicConnections([in] SHARINGCONNECTION_ENUM_FLAGS Flags)
VARIANT_BOOL SharingInstalled
INetConnectionProps NetConnectionProps([in] INetConnection pNetConnection)
INetSharingEveryConnectionCollection EnumEveryConnection
INetSharingConfiguration INetSharingConfigurationForINetConnection([in] INetConnection pNetConnection)
INetSharingPrivateConnectionCollection EnumPrivateConnections([in] SHARINGCONNECTION_ENUM_FLAGS Flags)
INetSharingPortMappingProps Properties
Definition: msctf.idl:550
#define d
Definition: ke_i.h:81
char string[160]
Definition: util.h:11
NETCON_STATUS
Definition: netcon.h:38
NETCON_MEDIATYPE
Definition: netcon.h:67
unsigned short USHORT
Definition: pedump.c:61
static FILE * out
Definition: regtests2xml.c:44
f_args fa
Definition: format.c:280
DWORD dwOptions
Definition: solitaire.cpp:25
Definition: send.c:48
uint32_t ULONG
Definition: typedefs.h:59
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
unsigned char UCHAR
Definition: xmlstorage.h:181
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185