ReactOS 0.4.16-dev-106-g10b08aa
netcon.h
Go to the documentation of this file.
1#ifndef __NETCON_H__
2#define __NETCON_H__
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8typedef enum
9{
10 NCME_DEFAULT = 0
12
13typedef enum
14{
24 NCCF_SHARED = 0x100,
25 NCCF_BRIDGED = 0x200,
27 NCCF_DEFAULT = 0x800,
31 NCCF_RESERVED = 0x8000,
33 NCCF_LAN_MASK = 0xf00000
35
36
37typedef enum
38{
53
54typedef enum
55{
64
65
66typedef enum
67{
79
80
82{
92
93
94#undef INTERFACE
95#define INTERFACE INetConnection
97{
102 STDMETHOD_(HRESULT,Disconnect) (THIS) PURE;
104 STDMETHOD_(HRESULT,Duplicate)(THIS_ LPCWSTR pszwDuplicateName, INetConnection **ppCon) PURE;
105 STDMETHOD_(HRESULT,GetProperties) (THIS_ NETCON_PROPERTIES **ppProps) PURE;
106 STDMETHOD_(HRESULT,GetUiObjectClassId) (THIS_ CLSID *pclsid) PURE;
107 STDMETHOD_(HRESULT,Rename) (THIS_ LPCWSTR pszwNewName) PURE;
108};
109#undef INTERFACE
110
111#if !defined(__cplusplus) || defined(CINTERFACE)
112/*** IUnknown methods ***/
113#define INetConnection_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
114#define INetConnection_AddRef(p) (p)->lpVtbl->AddRef(p)
115#define INetConnection_Release(p) (p)->lpVtbl->Release(p)
116#define INetConnection_Connect(p) (p)->lpVtbl->Connect(p)
117#define INetConnection_Disconnect(p) (p)->lpVtbl->Disconnect(p)
118#define INetConnection_Delete(p) (p)->lpVtbl->Delete(p)
119#define INetConnection_Duplicate(p,a,b) (p)->lpVtbl->Duplicate(p,a,b)
120#define INetConnection_GetProperties(p,a) (p)->lpVtbl->GetProperties(p,a)
121#define INetConnection_GetUiObjectClassId(p,a) (p)->lpVtbl->GetUiObjectClassId(p,a)
122#define INetConnection_Rename(p,a) (p)->lpVtbl->Rename(p,a)
123#endif
124
126
127
128#undef INTERFACE
129#define INTERFACE IEnumNetConnection
130DECLARE_INTERFACE_(IEnumNetConnection, IUnknown)
131{
135 STDMETHOD(Next)(THIS_ ULONG celt, INetConnection **rgelt, ULONG *pceltFetched) PURE;
136 STDMETHOD(Skip) (THIS_ ULONG celt) PURE;
137 STDMETHOD(Reset) (THIS) PURE;
138 STDMETHOD(Clone) (THIS_ IEnumNetConnection **ppenum) PURE;
139};
140#undef INTERFACE
141
143
144#if !defined(__cplusplus) || defined(CINTERFACE)
145#define IEnumNetConnection_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
146#define IEnumNetConnection_AddRef(p) (p)->lpVtbl->AddRef(p)
147#define IEnumNetConnection_Release(p) (p)->lpVtbl->Release(p)
148#define IEnumNetConnection_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c)
149#define IEnumNetConnection_Skip(p,a) (p)->lpVtbl->Skip(p,a)
150#define IEnumNetConnection_Reset(p) (p)->lpVtbl->Reset(p)
151#define IEnumNetConnection_Clone(p,a) (p)->lpVtbl->Clone(p,a)
152#endif
153
154#undef INTERFACE
155#define INTERFACE INetConnectionManager
156DECLARE_INTERFACE_(INetConnectionManager, IUnknown)
157{
161 STDMETHOD_(HRESULT,EnumConnections) (THIS_ NETCONMGR_ENUM_FLAGS Flags, IEnumNetConnection **ppEnum) PURE;
162};
163#undef INTERFACE
164
165#if !defined(__cplusplus) || defined(CINTERFACE)
166#define INetConnectionManager_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
167#define INetConnectionManager_AddRef(p) (p)->lpVtbl->AddRef(p)
168#define INetConnectionManager_Release(p) (p)->lpVtbl->Release(p)
169#define INetConnectionManager_EnumConnections(p,a,b) (p)->lpVtbl->EnumConnections(p,a,b)
170#endif
171
174
175typedef enum
176{
181
182#undef INTERFACE
183#define INTERFACE INetConnectionConnectUi
184DECLARE_INTERFACE_(INetConnectionConnectUi, IUnknown)
185{
189 STDMETHOD_(HRESULT,SetConnection)(THIS_ INetConnection* pCon) PURE;
192};
193
194#if !defined(__cplusplus) || defined(CINTERFACE)
195#define INetConnectionConnectUi_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
196#define INetConnectionConnectUi_AddRef(p) (p)->lpVtbl->AddRef(p)
197#define INetConnectionConnectUi_Release(p) (p)->lpVtbl->Release(p)
198#define INetConnectionConnectUi_SetConnection(p,a) (p)->lpVtbl->SetConnection(p,a)
199#define INetConnectionConnectUi_Connect(p,a,b) (p)->lpVtbl->Connect(p,a,b)
200#define INetConnectionConnectUi_Disconnect(p,a,b) (p)->lpVtbl->Disconnect(p,a,b)
201#endif
202
204
205#undef INTERFACE
206#define INTERFACE INetConnectionPropertyUi
207DECLARE_INTERFACE_(INetConnectionPropertyUi, IUnknown)
208{
212 STDMETHOD_(HRESULT, SetConnection) (THIS_ INetConnection *pCon) PURE;
214
215
216};
217#undef INTERFACE
218
219#if !defined(__cplusplus) || defined(CINTERFACE)
220#define INetConnectionPropertyUi_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
221#define INetConnectionPropertyUi_AddRef(p) (p)->lpVtbl->AddRef(p)
222#define INetConnectionPropertyUi_Release(p) (p)->lpVtbl->Release(p)
223#define INetConnectionPropertyUi_SetConnection(p,a) (p)->lpVtbl->SetConnection(p,a)
224#define INetConnectionPropertyUi_AddPages(p,a,b,c) (p)->lpVtbl->AddPages(p,a,b,c)
225#endif
226
228
229#undef INTERFACE
230#define INTERFACE INetConnectionPropertyUi2
231DECLARE_INTERFACE_(INetConnectionPropertyUi2, IUnknown)
232{
236 STDMETHOD_(HRESULT, SetConnection) (THIS_ INetConnection *pCon) PURE;
238 STDMETHOD_(HRESULT, GetIcon) (THIS_ DWORD dwSize, HICON *phIcon) PURE;
239};
240#undef INTERFACE
241
242#if !defined(__cplusplus) || defined(CINTERFACE)
243#define INetConnectionPropertyUi2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
244#define INetConnectionPropertyUi2_AddRef(p) (p)->lpVtbl->AddRef(p)
245#define INetConnectionPropertyUi2_Release(p) (p)->lpVtbl->Release(p)
246#define INetConnectionPropertyUi2_SetConnection(p,a) (p)->lpVtbl->SetConnection(p,a)
247#define INetConnectionPropertyUi2_AddPages(p,a,b,c) (p)->lpVtbl->AddPages(p,a,b,c)
248#define INetConnectionPropertyUi2_GetIcon(p,a,b) (p)->lpVtbl->GetIcon(p,a,b)
249#endif
250
251
253
254
256
257#ifdef __cplusplus
258}
259#endif
260
261#endif
BOOL Delete(LPCTSTR ServiceName)
Definition: delete.c:12
#define DECLARE_INTERFACE_(i, b)
Definition: basetyps.h:78
#define PURE
Definition: basetyps.h:64
#define THIS_
Definition: basetyps.h:65
#define EXTERN_C
Definition: basetyps.h:12
#define THIS
Definition: basetyps.h:66
#define STDMETHOD_(t, m)
Definition: basetyps.h:63
#define STDMETHOD(m)
Definition: basetyps.h:62
_In_ BOOLEAN Release
Definition: cdrom.h:920
LPARAM lParam
Definition: combotst.c:139
static HWND hwndParent
Definition: cryptui.c:300
unsigned long DWORD
Definition: ntddk_ex.h:95
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
_In_ PKSPIN_CONNECT Connect
Definition: ks.h:4536
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Definition: env.c:56
static HICON
Definition: imagelist.c:80
static HRESULT QueryInterface(REFIID, void **)
Definition: events.c:2587
static ULONG WINAPI AddRef(IStream *iface)
Definition: clist.c:90
NETCON_CHARACTERISTIC_FLAGS
Definition: netcon.h:14
@ NCCF_FIREWALLED
Definition: netcon.h:26
@ NCCF_OUTGOING_ONLY
Definition: netcon.h:22
@ NCCF_ALLOW_DUPLICATION
Definition: netcon.h:17
@ NCCF_SHOW_ICON
Definition: netcon.h:20
@ NCCF_BLUETOOTH_MASK
Definition: netcon.h:32
@ NCCF_NONE
Definition: netcon.h:15
@ NCCF_BRIDGED
Definition: netcon.h:25
@ NCCF_RESERVED
Definition: netcon.h:31
@ NCCF_QUARANTINED
Definition: netcon.h:30
@ NCCF_DEFAULT
Definition: netcon.h:27
@ NCCF_SHARED_PRIVATE
Definition: netcon.h:29
@ NCCF_ALLOW_REMOVAL
Definition: netcon.h:18
@ NCCF_LAN_MASK
Definition: netcon.h:33
@ NCCF_INCOMING_ONLY
Definition: netcon.h:21
@ NCCF_ALLOW_RENAME
Definition: netcon.h:19
@ NCCF_HOMENET_CAPABLE
Definition: netcon.h:28
@ NCCF_BRANDED
Definition: netcon.h:23
@ NCCF_SHARED
Definition: netcon.h:24
@ NCCF_ALL_USERS
Definition: netcon.h:16
EXTERN_C const CLSID CLSID_ConnectionManager
Definition: netcon.h:172
EXTERN_C const IID IID_INetConnectionConnectUi
Definition: netcon.h:203
struct tagNETCON_PROPERTIES NETCON_PROPERTIES
NETCON_STATUS
Definition: netcon.h:38
@ NCS_AUTHENTICATION_FAILED
Definition: netcon.h:49
@ NCS_INVALID_ADDRESS
Definition: netcon.h:50
@ NCS_CONNECTING
Definition: netcon.h:40
@ NCS_DISCONNECTING
Definition: netcon.h:42
@ NCS_CREDENTIALS_REQUIRED
Definition: netcon.h:51
@ NCS_MEDIA_DISCONNECTED
Definition: netcon.h:46
@ NCS_CONNECTED
Definition: netcon.h:41
@ NCS_AUTHENTICATION_SUCCEEDED
Definition: netcon.h:48
@ NCS_HARDWARE_NOT_PRESENT
Definition: netcon.h:43
@ NCS_DISCONNECTED
Definition: netcon.h:39
@ NCS_HARDWARE_MALFUNCTION
Definition: netcon.h:45
@ NCS_HARDWARE_DISABLED
Definition: netcon.h:44
@ NCS_AUTHENTICATING
Definition: netcon.h:47
EXTERN_C const IID IID_IEnumNetConnection
Definition: netcon.h:142
NETCON_TYPE
Definition: netcon.h:55
@ NCT_LAN
Definition: netcon.h:59
@ NCT_INBOUND
Definition: netcon.h:57
@ NCT_PHONE
Definition: netcon.h:60
@ NCT_BRIDGE
Definition: netcon.h:62
@ NCT_TUNNEL
Definition: netcon.h:61
@ NCT_INTERNET
Definition: netcon.h:58
@ NCT_DIRECT_CONNECT
Definition: netcon.h:56
NETCON_MEDIATYPE
Definition: netcon.h:67
@ NCM_NONE
Definition: netcon.h:68
@ NCM_ISDN
Definition: netcon.h:70
@ NCM_BRIDGE
Definition: netcon.h:75
@ NCM_LAN
Definition: netcon.h:71
@ NCM_PPPOE
Definition: netcon.h:74
@ NCM_SHAREDACCESSHOST_RAS
Definition: netcon.h:77
@ NCM_TUNNEL
Definition: netcon.h:73
@ NCM_PHONE
Definition: netcon.h:72
@ NCM_SHAREDACCESSHOST_LAN
Definition: netcon.h:76
@ NCM_DIRECT
Definition: netcon.h:69
NETCONMGR_ENUM_FLAGS
Definition: netcon.h:9
@ NCME_DEFAULT
Definition: netcon.h:10
EXTERN_C const IID IID_INetConnectionPropertyUi2
Definition: netcon.h:252
EXTERN_C const IID IID_INetConnectionManager
Definition: netcon.h:173
NETCONUI_CONNECT_FLAGS
Definition: netcon.h:176
@ NCUC_NO_UI
Definition: netcon.h:178
@ NCUC_DEFAULT
Definition: netcon.h:177
@ NCUC_ENABLE_DISABLE
Definition: netcon.h:179
EXTERN_C const IID IID_INetConnection
Definition: netcon.h:125
VOID WINAPI NcFreeNetconProperties(NETCON_PROPERTIES *pProps)
Definition: netshell.cpp:119
EXTERN_C const IID IID_INetConnectionPropertyUi
Definition: netcon.h:227
BOOL(CALLBACK * LPFNADDPROPSHEETPAGE)(HPROPSHEETPAGE, LPARAM)
Definition: prsht.h:327
#define REFIID
Definition: guiddef.h:118
NETCON_STATUS Status
Definition: netcon.h:86
LPWSTR pszwDeviceName
Definition: netcon.h:85
CLSID clsidUiObject
Definition: netcon.h:90
CLSID clsidThisObject
Definition: netcon.h:89
NETCON_MEDIATYPE MediaType
Definition: netcon.h:87
uint32_t ULONG
Definition: typedefs.h:59
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1176
LONG_PTR LPARAM
Definition: windef.h:208
#define WINAPI
Definition: msvc.h:6
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185