ReactOS  0.4.15-dev-1049-g1062a29
netcfgn.h
Go to the documentation of this file.
1 #ifndef _NETCFGN_H__
2 #define _NETCFGN_H__
3 
4 typedef enum
5 {
6  NCRL_NDIS = 1,
7  NCRL_TDI = 2
9 
10 #undef INTERFACE
11 #define INTERFACE INetCfgPnpReconfigCallback
12 DECLARE_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
34 DECLARE_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
61 DECLARE_INTERFACE_(INetCfgComponentPropertyUi, IUnknown)
62 {
66  STDMETHOD_(HRESULT,QueryPropertyUi)(THIS_ IUnknown *pUnkReserved) PURE;
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 INetLanConnectionUiInfo
92 DECLARE_INTERFACE_(INetLanConnectionUiInfo, IUnknown)
93 {
97  STDMETHOD_(HRESULT,GetDeviceGuid)(THIS_ GUID *pguid) PURE;
98 };
99 #undef INTERFACE
100 
101 #if !defined(__cplusplus) || defined(CINTERFACE)
102 /*** IUnknown methods ***/
103 #define INetLanConnectionUiInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
104 #define INetLanConnectionUiInfo_AddRef(p) (p)->lpVtbl->AddRef(p)
105 #define INetLanConnectionUiInfo_Release(p) (p)->lpVtbl->Release(p)
106 #define INetLanConnectionUiInfo_GetDeviceGuid(p,a) (p)->lpVtbl->GetDeviceGuid(p,a)
107 #endif
108 
110 
111 #endif
#define REFIID
Definition: guiddef.h:118
NCPNP_RECONFIG_LAYER
Definition: netcfgn.h:4
#define THIS_
Definition: basetyps.h:65
_In_ BOOLEAN Release
Definition: classpnp.h:1122
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
#define THIS
Definition: basetyps.h:66
REFIID riid
Definition: precomp.h:44
static HRESULT QueryInterface(REFIID, void **)
Definition: events.c:2587
REFIID LPVOID * ppv
Definition: atlbase.h:39
DECLARE_INTERFACE_(INetCfgPnpReconfigCallback, IUnknown)
Definition: netcfgn.h:12
EXTERN_C const IID IID_INetLanConnectionUiInfo
Definition: netcfgn.h:109
unsigned int BOOL
Definition: ntddk_ex.h:94
_In_ ULONG _In_opt_ PVOID pvData
Definition: winddi.h:3748
static HWND hwndParent
Definition: cryptui.c:300
EXTERN_C const IID IID_INetCfgComponentPropertyUi
Definition: netcfgn.h:88
LONG HRESULT
Definition: typedefs.h:79
unsigned long DWORD
Definition: ntddk_ex.h:95
static IUnknown * pUnkReserved
Definition: asmenum.c:33
unsigned char BYTE
Definition: xxhash.c:193
EXTERN_C const IID IID_INetCfgComponentControl
Definition: netcfgn.h:57
BOOL Initialize(HINSTANCE hInstance)
Definition: msconfig.c:341
#define PURE
Definition: basetyps.h:64
unsigned int UINT
Definition: ndis.h:50
static ULONG WINAPI AddRef(IStream *iface)
Definition: clist.c:90
EXTERN_C const IID IID_INetCfgPnpReconfigCallback
Definition: netcfgn.h:29
unsigned int ULONG
Definition: retypes.h:1
Definition: xml2sdb.h:110
#define STDMETHOD_(t, m)
Definition: basetyps.h:63
#define EXTERN_C
Definition: basetyps.h:12