ReactOS  0.4.13-dev-235-g7373cb3
netcon.h
Go to the documentation of this file.
1 #ifndef __NETCON_H__
2 #define __NETCON_H__
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 typedef enum
9 {
12 
13 typedef enum
14 {
15  NCCF_NONE = 0,
23  NCCF_BRANDED = 0x80,
24  NCCF_SHARED = 0x100,
25  NCCF_BRIDGED = 0x200,
26  NCCF_FIREWALLED = 0x400,
27  NCCF_DEFAULT = 0x800,
30  NCCF_QUARANTINED = 0x4000,
31  NCCF_RESERVED = 0x8000,
33  NCCF_LAN_MASK = 0xf00000
35 
36 
37 typedef enum
38 {
53 
54 typedef enum
55 {
64 
65 
66 typedef enum
67 {
68  NCM_NONE = 0,
79 
80 
81 typedef struct tagNETCON_PROPERTIES
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
130 DECLARE_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
156 DECLARE_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 
175 typedef enum
176 {
181 
182 #undef INTERFACE
183 #define INTERFACE INetConnectionConnectUi
184 DECLARE_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
207 DECLARE_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
231 DECLARE_INTERFACE_(INetConnectionPropertyUi2, IUnknown)
232 {
236  STDMETHOD_(HRESULT, SetConnection) (THIS_ INetConnection *pCon) 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
CLSID clsidThisObject
Definition: netcon.h:89
EXTERN_C const IID IID_INetConnectionManager
Definition: netcon.h:173
static HICON
Definition: imagelist.c:84
#define REFIID
Definition: guiddef.h:113
LPWSTR pszwDeviceName
Definition: netcon.h:85
CLSID clsidUiObject
Definition: netcon.h:90
#define THIS_
Definition: basetyps.h:65
_In_ PKSPIN_CONNECT Connect
Definition: ks.h:4565
_In_ BOOLEAN Release
Definition: classpnp.h:929
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
Definition: netcon.h:59
#define THIS
Definition: basetyps.h:66
struct tagNETCON_PROPERTIES NETCON_PROPERTIES
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
EXTERN_C const IID IID_IEnumNetConnection
Definition: netcon.h:139
BOOL(CALLBACK * LPFNADDPROPSHEETPAGE)(HPROPSHEETPAGE, LPARAM)
Definition: prsht.h:309
EXTERN_C const IID IID_INetConnectionPropertyUi2
Definition: netcon.h:252
NTSTATUS QueryInterface(IN PDEVICE_OBJECT DeviceObject, IN CONST GUID InterfaceType, IN LONG Size, IN LONG Version, OUT PVOID Interface)
Definition: fdo.c:532
#define STDMETHOD(m)
Definition: basetyps.h:62
EXTERN_C const CLSID CLSID_ConnectionManager
Definition: netcon.h:172
NETCON_MEDIATYPE
Definition: netcon.h:66
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
EXTERN_C const IID IID_INetConnectionPropertyUi
Definition: netcon.h:227
EXTERN_C const IID IID_INetConnectionConnectUi
Definition: netcon.h:203
NETCON_TYPE
Definition: netcon.h:54
static HWND hwndParent
Definition: cryptui.c:300
LONG_PTR LPARAM
Definition: windef.h:208
NETCON_CHARACTERISTIC_FLAGS
Definition: netcon.h:13
LONG HRESULT
Definition: typedefs.h:77
DECLARE_INTERFACE_(INetConnection, IUnknown)
Definition: netcon.h:96
#define WINAPI
Definition: msvc.h:8
Definition: netcon.h:71
unsigned long DWORD
Definition: ntddk_ex.h:95
NETCONMGR_ENUM_FLAGS
Definition: netcon.h:8
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
static int GetIcon(LPCITEMIDLIST lpi, UINT uFlags)
Definition: brsfolder.c:286
NETCONUI_CONNECT_FLAGS
Definition: netcon.h:175
NETCON_MEDIATYPE MediaType
Definition: netcon.h:87
#define PURE
Definition: basetyps.h:64
static ULONG WINAPI AddRef(IStream *iface)
Definition: clist.c:90
NETCON_STATUS
Definition: netcon.h:37
NETCON_STATUS Status
Definition: netcon.h:86
unsigned int ULONG
Definition: retypes.h:1
VOID WINAPI NcFreeNetconProperties(NETCON_PROPERTIES *pProps)
Definition: netshell.cpp:119
WCHAR * LPWSTR
Definition: xmlstorage.h:184
#define STDMETHOD_(t, m)
Definition: basetyps.h:63
#define EXTERN_C
Definition: basetyps.h:12
EXTERN_C const IID IID_INetConnection
Definition: netcon.h:125
BOOL Delete(LPCTSTR ServiceName)
Definition: delete.c:12
LPARAM lParam
Definition: combotst.c:139
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Definition: env.c:54