ReactOS 0.4.16-dev-2491-g3dc6630
netcfgn.h
Go to the documentation of this file.
1#ifndef _NETCFGN_H__
2#define _NETCFGN_H__
3
4typedef enum
5{
7 NCRL_TDI = 2
9
10#undef INTERFACE
11#define INTERFACE INetCfgPnpReconfigCallback
12DECLARE_INTERFACE_(INetCfgPnpReconfigCallback, IUnknown)
13{
17 STDMETHOD_(HRESULT,SendPnpReconfig)(THIS_ NCPNP_RECONFIG_LAYER Layer, LPCWSTR pszwUpper, LPCWSTR pszwLower, PVOID pvData, DWORD dwSizeOfData) PURE;
18};
19#undef INTERFACE
20
21#if !defined(__cplusplus) || defined(CINTERFACE)
22/*** IUnknown methods ***/
23#define INetCfgPnpReconfigCallback_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
24#define INetCfgPnpReconfigCallback_AddRef(p) (p)->lpVtbl->AddRef(p)
25#define INetCfgPnpReconfigCallback_Release(p) (p)->lpVtbl->Release(p)
26#define INetCfgPnpReconfigCallback_SendPnpReconfig(p,a,b,c,d,e) (p)->lpVtbl->SendPnpReconfig(p,a,b,c,d,e)
27#endif
28
30
31
32#undef INTERFACE
33#define INTERFACE INetCfgComponentControl
34DECLARE_INTERFACE_(INetCfgComponentControl, IUnknown)
35{
39 STDMETHOD_(HRESULT,Initialize) (THIS_ INetCfgComponent *pIComp, INetCfg *pINetCfg, BOOL fInstalling) PURE;
40 STDMETHOD_(HRESULT,ApplyRegistryChanges) (THIS) PURE;
41 STDMETHOD_(HRESULT,ApplyPnpChanges) (THIS_ INetCfgPnpReconfigCallback *pICallback) PURE;
42 STDMETHOD_(HRESULT,CancelChanges) (THIS) PURE;
43};
44#undef INTERFACE
45
46#if !defined(__cplusplus) || defined(CINTERFACE)
47/*** IUnknown methods ***/
48#define INetCfgComponentControl_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
49#define INetCfgComponentControl_AddRef(p) (p)->lpVtbl->AddRef(p)
50#define INetCfgComponentControl_Release(p) (p)->lpVtbl->Release(p)
51#define INetCfgComponentControl_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
52#define INetCfgComponentControl_ApplyRegistryChanges(p) (p)->lpVtbl->ApplyRegistryChanges(p)
53#define INetCfgComponentControl_ApplyPnpChanges(p,a) (p)->lpVtbl->ApplyRegistryChanges(p,a)
54#define INetCfgComponentControl_CancelChanges(p) (p)->lpVtbl->CancelChanges(p)
55#endif
56
58
59#undef INTERFACE
60#define INTERFACE INetCfgComponentPropertyUi
61DECLARE_INTERFACE_(INetCfgComponentPropertyUi, IUnknown)
62{
68 STDMETHOD_(HRESULT,MergePropPages)(THIS_ DWORD *pdwDefPages, BYTE **pahpspPrivate, UINT *pcPages, HWND hwndParent, LPCWSTR *pszStartPage) PURE;
69 STDMETHOD_(HRESULT,ValidateProperties)(THIS_ HWND hwndSheet) PURE;
70 STDMETHOD_(HRESULT,ApplyProperties)(THIS) PURE;
71 STDMETHOD_(HRESULT,CancelProperties)(THIS) PURE;
72};
73#undef INTERFACE
74
75#if !defined(__cplusplus) || defined(CINTERFACE)
76/*** IUnknown methods ***/
77#define INetCfgComponentPropertyUi_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
78#define INetCfgComponentPropertyUi_AddRef(p) (p)->lpVtbl->AddRef(p)
79#define INetCfgComponentPropertyUi_Release(p) (p)->lpVtbl->Release(p)
80#define INetCfgComponentPropertyUi_QueryPropertyUi(p,a) (p)->lpVtbl->QueryPropertyUi(p,a)
81#define INetCfgComponentPropertyUi_SetContext(p,a) (p)->lpVtbl->SetContext(p,a)
82#define INetCfgComponentPropertyUi_MergePropPages(p,a,b,c,d,e) (p)->lpVtbl->MergePropPages(p,a,b,c,d,e)
83#define INetCfgComponentPropertyUi_ValidateProperties(p,a) (p)->lpVtbl->ValidateProperties(p,a)
84#define INetCfgComponentPropertyUi_ApplyProperties(p) (p)->lpVtbl->ApplyProperties(p)
85#define INetCfgComponentPropertyUi_CancelProperties(p) (p)->lpVtbl->CancelProperties(p)
86#endif
87
89
90#undef INTERFACE
91#define INTERFACE INetCfgComponentNotifyBinding
92DECLARE_INTERFACE_(INetCfgComponentNotifyBinding, IUnknown)
93{
97 STDMETHOD_(HRESULT,QueryBindingPath) (THIS_ DWORD dwChangeFlag, INetCfgBindingPath *pncbpItem) PURE;
98 STDMETHOD_(HRESULT,NotifyBindingPath) (THIS_ DWORD dwChangeFlag, INetCfgBindingPath *pncbpItem) PURE;
99};
100#undef INTERFACE
101
102#if !defined(__cplusplus) || defined(CINTERFACE)
103/*** IUnknown methods ***/
104#define INetCfgComponentNotifyBinding_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
105#define INetCfgComponentNotifyBinding_AddRef(p) (p)->lpVtbl->AddRef(p)
106#define INetCfgComponentNotifyBinding_Release(p) (p)->lpVtbl->Release(p)
107#define INetCfgComponentNotifyBinding_QueryBindingPath(p,a,b) (p)->lpVtbl->QueryBindingPath(p,a,b)
108#define INetCfgComponentNotifyBinding_NotifyBindingPath(p,a,b) (p)->lpVtbl->NotifyBindingPath(p,a,b)
109#endif
110
112
113#undef INTERFACE
114#define INTERFACE INetCfgComponentNotifyGlobal
115DECLARE_INTERFACE_(INetCfgComponentNotifyGlobal, IUnknown)
116{
120 STDMETHOD_(HRESULT,GetSupportedNotifications) (THIS_ DWORD *pdwNotifications) PURE;
121 STDMETHOD_(HRESULT,SysQueryBindingPath) (THIS_ DWORD dwChangeFlag, INetCfgBindingPath *pncbpItem) PURE;
122 STDMETHOD_(HRESULT,SysNotifyBindingPath) (THIS_ DWORD dwChangeFlag, INetCfgBindingPath *pncbpItem) PURE;
123 STDMETHOD_(HRESULT,SysNotifyComponent) (THIS_ DWORD dwChangeFlag, INetCfgComponent *pnccItem) PURE;
124};
125#undef INTERFACE
126
127#if !defined(__cplusplus) || defined(CINTERFACE)
128/*** IUnknown methods ***/
129#define INetCfgComponentNotifyGlobal_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
130#define INetCfgComponentNotifyGlobal_AddRef(p) (p)->lpVtbl->AddRef(p)
131#define INetCfgComponentNotifyGlobal_Release(p) (p)->lpVtbl->Release(p)
132#define INetCfgComponentNotifyGlobal_GetSupportedNotifications(p,a) (p)->lpVtbl->GetSupportedNotifications(p,a)
133#define INetCfgComponentNotifyGlobal_SysQueryBindingPath(p,a,b) (p)->lpVtbl->SysQueryBindingPath(p,a,b)
134#define INetCfgComponentNotifyGlobal_SysNotifyBindingPath(p,a,b) (p)->lpVtbl->SysNotifyBindingPath(p,a,b)
135#define INetCfgComponentNotifyGlobal_SysNotifyComponent(p,a,b) (p)->lpVtbl->SysNotifyComponent(p,a,b)
136#endif
137
139
140#undef INTERFACE
141#define INTERFACE INetCfgComponentSetup
142DECLARE_INTERFACE_(INetCfgComponentSetup, IUnknown)
143{
147 STDMETHOD_(HRESULT,Install) (THIS_ DWORD dwSetupFlags) PURE;
148 STDMETHOD_(HRESULT,Upgrade) (THIS_ DWORD dwSetupFlags, DWORD dwUpgradeFromBuildNo) PURE;
149 STDMETHOD_(HRESULT,ReadAnswerFile) (THIS_ LPCWSTR pszwAnswerFile, LPCWSTR pszwAnswerSections) PURE;
150 STDMETHOD_(HRESULT,Removing) (THIS) PURE;
151};
152#undef INTERFACE
153
154#if !defined(__cplusplus) || defined(CINTERFACE)
155/*** IUnknown methods ***/
156#define INetCfgComponentControl_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
157#define INetCfgComponentControl_AddRef(p) (p)->lpVtbl->AddRef(p)
158#define INetCfgComponentControl_Release(p) (p)->lpVtbl->Release(p)
159#define INetCfgComponentControl_Install(p,a) (p)->lpVtbl->Initialize(p,a)
160#define INetCfgComponentControl_Upgrade(p,a,b) (p)->lpVtbl->Upgrade(p,a,b)
161#define INetCfgComponentControl_ReadAnswerFile(p,a,b) (p)->lpVtbl->ReadAnswerFile(p,a,b)
162#define INetCfgComponentControl_Removing(p) (p)->lpVtbl->Removing(p)
163#endif
164
166
167#undef INTERFACE
168#define INTERFACE INetLanConnectionUiInfo
169DECLARE_INTERFACE_(INetLanConnectionUiInfo, IUnknown)
170{
174 STDMETHOD_(HRESULT,GetDeviceGuid)(THIS_ GUID *pguid) PURE;
175};
176#undef INTERFACE
177
178#if !defined(__cplusplus) || defined(CINTERFACE)
179/*** IUnknown methods ***/
180#define INetLanConnectionUiInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
181#define INetLanConnectionUiInfo_AddRef(p) (p)->lpVtbl->AddRef(p)
182#define INetLanConnectionUiInfo_Release(p) (p)->lpVtbl->Release(p)
183#define INetLanConnectionUiInfo_GetDeviceGuid(p,a) (p)->lpVtbl->GetDeviceGuid(p,a)
184#endif
185
187
188#endif
#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
_In_ BOOLEAN Release
Definition: cdrom.h:920
static HWND hwndParent
Definition: cryptui.c:300
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
static IUnknown * pUnkReserved
Definition: asmenum.c:33
static HRESULT QueryInterface(REFIID, void **)
Definition: events.c:2587
static ULONG WINAPI AddRef(IStream *iface)
Definition: clist.c:83
unsigned int UINT
Definition: ndis.h:50
EXTERN_C const IID IID_INetCfgComponentPropertyUi
Definition: netcfgn.h:88
EXTERN_C const IID IID_INetCfgComponentNotifyBinding
Definition: netcfgn.h:111
EXTERN_C const IID IID_INetCfgComponentControl
Definition: netcfgn.h:57
EXTERN_C const IID IID_INetLanConnectionUiInfo
Definition: netcfgn.h:186
EXTERN_C const IID IID_INetCfgComponentNotifyGlobal
Definition: netcfgn.h:138
EXTERN_C const IID IID_INetCfgPnpReconfigCallback
Definition: netcfgn.h:29
NCPNP_RECONFIG_LAYER
Definition: netcfgn.h:5
@ NCRL_NDIS
Definition: netcfgn.h:6
@ NCRL_TDI
Definition: netcfgn.h:7
EXTERN_C const IID IID_INetCfgComponentSetup
Definition: netcfgn.h:165
_In_ LPWSTR _In_ DWORD _In_ LPCVOID pvData
Definition: netsh.h:116
#define REFIID
Definition: guiddef.h:118
Definition: xml2sdb.h:124
uint32_t ULONG
Definition: typedefs.h:59
static int Install(const char **args)
Definition: vfdcmd.c:535
static void Initialize()
Definition: xlate.c:212
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
unsigned char BYTE
Definition: xxhash.c:193