ReactOS  0.4.14-dev-41-g31d7680
precomp.h File Reference
#include <stdio.h>
#include <windef.h>
#include <winbase.h>
#include <winreg.h>
#include <windowsx.h>
#include <objbase.h>
#include <netcfgx.h>
#include <setupapi.h>
#include <netcfgn.h>
#include <devguid.h>
#include <commctrl.h>
#include <cfgmgr32.h>
#include <wine/debug.h>
#include "resource.h"
Include dependency graph for precomp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  INTERFACE_TABLE
 
struct  tagNetCfgComponentItem
 

Macros

#define WIN32_NO_STATUS
 
#define _INC_WINDOWS
 
#define COM_NO_WINDOWS_H
 
#define COBJMACROS
 
#define NONAMELESSUNION
 
#define NONAMELESSSTRUCT
 

Typedefs

typedef HRESULT(CALLBACKLPFNCREATEINSTANCE) (IUnknown *pUnkOuter, REFIID riid, LPVOID *ppvObject)
 
typedef struct tagNetCfgComponentItem NetCfgComponentItem
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (netcfgx)
 
HRESULT WINAPI INetCfg_Constructor (IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
 
IClassFactoryIClassFactory_fnConstructor (LPFNCREATEINSTANCE lpfnCI, PLONG pcRefDll, REFIID riidInst)
 
HRESULT WINAPI INetCfgComponent_Constructor (IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv, NetCfgComponentItem *pItem, INetCfg *iface)
 
HRESULT WINAPI IEnumNetCfgComponent_Constructor (IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv, NetCfgComponentItem *pItem, INetCfg *iface)
 
HRESULT WINAPI INetCfgBindingInterface_Constructor (IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
 
HRESULT WINAPI IEnumNetCfgBindingInterface_Constructor (IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
 
HRESULT WINAPI INetCfgBindingPath_Constructor (IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
 
HRESULT WINAPI IEnumNetCfgBindingPath_Constructor (IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv, DWORD dwFlags)
 
HRESULT WINAPI TcpipConfigNotify_Constructor (IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
 

Variables

HINSTANCE netcfgx_hInstance
 
const GUID CLSID_TcpipConfigNotifyObject
 

Macro Definition Documentation

◆ _INC_WINDOWS

#define _INC_WINDOWS

Definition at line 7 of file precomp.h.

◆ COBJMACROS

#define COBJMACROS

Definition at line 10 of file precomp.h.

◆ COM_NO_WINDOWS_H

#define COM_NO_WINDOWS_H

Definition at line 8 of file precomp.h.

◆ NONAMELESSSTRUCT

#define NONAMELESSSTRUCT

Definition at line 12 of file precomp.h.

◆ NONAMELESSUNION

#define NONAMELESSUNION

Definition at line 11 of file precomp.h.

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 6 of file precomp.h.

Typedef Documentation

◆ LPFNCREATEINSTANCE

typedef HRESULT(CALLBACK * LPFNCREATEINSTANCE) (IUnknown *pUnkOuter, REFIID riid, LPVOID *ppvObject)

Definition at line 32 of file precomp.h.

◆ NetCfgComponentItem

Function Documentation

◆ IClassFactory_fnConstructor()

IClassFactory* IClassFactory_fnConstructor ( LPFNCREATEINSTANCE  lpfnCI,
PLONG  pcRefDll,
REFIID  riidInst 
)

Definition at line 125 of file classfactory.c.

129 {
130  IClassFactoryImpl* lpclf;
131 
132  lpclf = CoTaskMemAlloc(sizeof(IClassFactoryImpl));
133  lpclf->ref = 1;
134  lpclf->lpVtbl = &dclfvt;
135  lpclf->lpfnCI = lpfnCI;
136 
137  if (pcRefDll)
138  InterlockedIncrement(pcRefDll);
139  lpclf->riidInst = riidInst;
140 
141  return (LPCLASSFACTORY)lpclf;
142 }
LPFNCREATEINSTANCE lpfnCI
Definition: classfactory.c:18
const IClassFactoryVtbl * lpVtbl
Definition: classfactory.c:15
LPFNCREATEINSTANCE lpfnCI
Definition: shellole.c:61
const IID * riidInst
Definition: classfactory.c:19
#define InterlockedIncrement
Definition: armddk.h:53
static const IClassFactoryVtbl dclfvt
Definition: classfactory.c:114
LPVOID WINAPI CoTaskMemAlloc(SIZE_T size)
Definition: ifs.c:406

Referenced by DllGetClassObject().

◆ IEnumNetCfgBindingInterface_Constructor()

HRESULT WINAPI IEnumNetCfgBindingInterface_Constructor ( IUnknown pUnkOuter,
REFIID  riid,
LPVOID ppv 
)

Definition at line 274 of file netcfgbindinginterface_iface.c.

275 {
277 
278  if (!ppv)
279  return E_POINTER;
280 
282  if (!This)
283  return E_OUTOFMEMORY;
284 
285  This->ref = 1;
286  This->lpVtbl = (const IEnumNetCfgBindingInterface*)&vt_EnumNetCfgBindingInterface;
287 #if 0
288  This->pCurrent = pItem;
289  This->pHead = pItem;
290  This->pNCfg = pNCfg;
291 #endif
292 
293  if (!SUCCEEDED (IEnumNetCfgBindingInterface_QueryInterface((INetCfgBindingInterface*)This, riid, ppv)))
294  {
296  return E_NOINTERFACE;
297  }
298 
299  IEnumNetCfgBindingInterface_Release((IEnumNetCfgBindingInterface*)This);
300  return S_OK;
301 }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
static const IEnumNetCfgBindingInterfaceVtbl vt_EnumNetCfgBindingInterface
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define IEnumNetCfgBindingInterface_Release(p)
Definition: netcfgx.h:124
#define IEnumNetCfgBindingInterface_QueryInterface(p, a, b)
Definition: netcfgx.h:122
#define S_OK
Definition: intsafe.h:59
#define E_POINTER
Definition: winerror.h:2365
LPVOID WINAPI CoTaskMemAlloc(SIZE_T size)
Definition: ifs.c:406
#define SUCCEEDED(hr)
Definition: intsafe.h:57

Referenced by INetCfgBindingPath_fnEnumBindingInterfaces().

◆ IEnumNetCfgBindingPath_Constructor()

HRESULT WINAPI IEnumNetCfgBindingPath_Constructor ( IUnknown pUnkOuter,
REFIID  riid,
LPVOID ppv,
DWORD  dwFlags 
)

Definition at line 323 of file netcfgbindingpath_iface.c.

324 {
326 
327  if (!ppv)
328  return E_POINTER;
329 
331  if (!This)
332  return E_OUTOFMEMORY;
333 
334  This->ref = 1;
335  This->lpVtbl = (const IEnumNetCfgBindingPath*)&vt_EnumNetCfgBindingPath;
336 #if 0
337  This->pCurrent = pItem;
338  This->pHead = pItem;
339  This->pNCfg = pNCfg;
340 #endif
341 
342  if (!SUCCEEDED (IEnumNetCfgBindingPath_QueryInterface((INetCfgBindingPath*)This, riid, ppv)))
343  {
345  return E_NOINTERFACE;
346  }
347 
348  IEnumNetCfgBindingPath_Release((IEnumNetCfgBindingPath*)This);
349  return S_OK;
350 }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define IEnumNetCfgBindingPath_QueryInterface(p, a, b)
Definition: netcfgx.h:183
#define S_OK
Definition: intsafe.h:59
#define IEnumNetCfgBindingPath_Release(p)
Definition: netcfgx.h:185
static const IEnumNetCfgBindingPathVtbl vt_EnumNetCfgBindingPath
#define E_POINTER
Definition: winerror.h:2365
LPVOID WINAPI CoTaskMemAlloc(SIZE_T size)
Definition: ifs.c:406
#define SUCCEEDED(hr)
Definition: intsafe.h:57

Referenced by INetCfgComponentBindings_fnEnumBindingPaths().

◆ IEnumNetCfgComponent_Constructor()

HRESULT WINAPI IEnumNetCfgComponent_Constructor ( IUnknown pUnkOuter,
REFIID  riid,
LPVOID ppv,
NetCfgComponentItem pItem,
INetCfg *  iface 
)

Definition at line 843 of file inetcfgcomp_iface.c.

844 {
846 
847  if (!ppv)
848  return E_POINTER;
849 
851  if (!This)
852  return E_OUTOFMEMORY;
853 
854  This->ref = 1;
855  This->lpVtbl = (const IEnumNetCfgComponent*)&vt_EnumNetCfgComponent;
856  This->pCurrent = pItem;
857  This->pHead = pItem;
858  This->pNCfg = pNCfg;
859 
860  if (!SUCCEEDED (IEnumNetCfgComponent_QueryInterface ((INetCfgComponent*)This, riid, ppv)))
861  {
863  return E_NOINTERFACE;
864  }
865 
866  IEnumNetCfgComponent_Release((IEnumNetCfgComponent*)This);
867  return S_OK;
868 }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define IEnumNetCfgComponent_Release(p)
Definition: netcfgx.h:259
static const IEnumNetCfgComponentVtbl vt_EnumNetCfgComponent
#define IEnumNetCfgComponent_QueryInterface(p, a, b)
Definition: netcfgx.h:257
#define S_OK
Definition: intsafe.h:59
#define E_POINTER
Definition: winerror.h:2365
LPVOID WINAPI CoTaskMemAlloc(SIZE_T size)
Definition: ifs.c:406
#define SUCCEEDED(hr)
Definition: intsafe.h:57

Referenced by INetCfg_fnEnumComponents().

◆ INetCfg_Constructor()

HRESULT WINAPI INetCfg_Constructor ( IUnknown pUnkOuter,
REFIID  riid,
LPVOID ppv 
)

Definition at line 818 of file netcfg_iface.c.

819 {
820  INetCfgImpl *This;
821 
822  if (!ppv)
823  return E_POINTER;
824 
825  This = (INetCfgImpl *) CoTaskMemAlloc(sizeof (INetCfgImpl));
826  if (!This)
827  return E_OUTOFMEMORY;
828 
829  This->ref = 1;
830  This->lpVtbl = (const INetCfg*)&vt_NetCfg;
831  This->lpVtblLock = (const INetCfgLock*)&vt_NetCfgLock;
832  This->lpVtblPnpReconfigCallback = (const INetCfgPnpReconfigCallback*)&vt_NetCfgPnpReconfigCallback;
833  This->hMutex = NULL;
834  This->bInitialized = FALSE;
835  This->pNet = NULL;
836  This->pClient = NULL;
837  This->pService = NULL;
838  This->pProtocol = NULL;
839 
840  if (!SUCCEEDED (INetCfg_QueryInterface ((INetCfg*)This, riid, ppv)))
841  {
842  INetCfg_Release((INetCfg*)This);
843  return E_NOINTERFACE;
844  }
845 
846  INetCfg_Release((INetCfg*)This);
847  return S_OK;
848 }
#define INetCfg_QueryInterface(p, a, b)
Definition: netcfgx.h:287
static const INetCfgLockVtbl vt_NetCfgLock
Definition: netcfg_iface.c:158
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
smooth NULL
Definition: ftsmooth.c:416
static const INetCfgVtbl vt_NetCfg
Definition: netcfg_iface.c:804
#define INetCfg_Release(p)
Definition: netcfgx.h:289
static const INetCfgPnpReconfigCallbackVtbl vt_NetCfgPnpReconfigCallback
Definition: netcfg_iface.c:216
#define S_OK
Definition: intsafe.h:59
#define E_POINTER
Definition: winerror.h:2365
LPVOID WINAPI CoTaskMemAlloc(SIZE_T size)
Definition: ifs.c:406
#define SUCCEEDED(hr)
Definition: intsafe.h:57

◆ INetCfgBindingInterface_Constructor()

HRESULT WINAPI INetCfgBindingInterface_Constructor ( IUnknown pUnkOuter,
REFIID  riid,
LPVOID ppv 
)

Definition at line 105 of file netcfgbindinginterface_iface.c.

109 {
111 
112  if (!ppv)
113  return E_POINTER;
114 
116  if (!This)
117  return E_OUTOFMEMORY;
118 
119  This->ref = 1;
120  This->lpVtbl = (const INetCfgBindingInterface*)&vt_NetCfgBindingInterface;
121 
122  if (!SUCCEEDED(INetCfgBindingInterface_QueryInterface((INetCfgBindingInterface*)This, riid, ppv)))
123  {
124  return E_NOINTERFACE;
125  }
126 
127  INetCfgBindingInterface_Release((INetCfgBindingInterface*)This);
128  return S_OK;
129 }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define INetCfgBindingInterface_Release(p)
Definition: netcfgx.h:97
#define INetCfgBindingInterface_QueryInterface(p, a, b)
Definition: netcfgx.h:95
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define S_OK
Definition: intsafe.h:59
static const INetCfgBindingInterfaceVtbl vt_NetCfgBindingInterface
#define E_POINTER
Definition: winerror.h:2365
LPVOID WINAPI CoTaskMemAlloc(SIZE_T size)
Definition: ifs.c:406
#define SUCCEEDED(hr)
Definition: intsafe.h:57

Referenced by IEnumNetCfgBindingInterface_fnNext().

◆ INetCfgBindingPath_Constructor()

HRESULT WINAPI INetCfgBindingPath_Constructor ( IUnknown pUnkOuter,
REFIID  riid,
LPVOID ppv 
)

Definition at line 154 of file netcfgbindingpath_iface.c.

158 {
160 
161  if (!ppv)
162  return E_POINTER;
163 
165  if (!This)
166  return E_OUTOFMEMORY;
167 
168  This->ref = 1;
169  This->lpVtbl = (const INetCfgBindingPath*)&vt_NetCfgBindingPath;
170 
171  if (!SUCCEEDED (INetCfgBindingPath_QueryInterface ((INetCfgBindingPath*)This, riid, ppv)))
172  {
173  return E_NOINTERFACE;
174  }
175 
176  INetCfgBindingPath_Release((INetCfgBindingPath*)This);
177  return S_OK;
178 }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static const INetCfgBindingPathVtbl vt_NetCfgBindingPath
#define S_OK
Definition: intsafe.h:59
#define INetCfgBindingPath_Release(p)
Definition: netcfgx.h:154
#define E_POINTER
Definition: winerror.h:2365
LPVOID WINAPI CoTaskMemAlloc(SIZE_T size)
Definition: ifs.c:406
#define SUCCEEDED(hr)
Definition: intsafe.h:57
#define INetCfgBindingPath_QueryInterface(p, a, b)
Definition: netcfgx.h:152

Referenced by IEnumNetCfgBindingPath_fnNext().

◆ INetCfgComponent_Constructor()

HRESULT WINAPI INetCfgComponent_Constructor ( IUnknown pUnkOuter,
REFIID  riid,
LPVOID ppv,
NetCfgComponentItem pItem,
INetCfg *  iface 
)

Definition at line 683 of file inetcfgcomp_iface.c.

684 {
686 
687  if (!ppv)
688  return E_POINTER;
689 
691  if (!This)
692  return E_OUTOFMEMORY;
693 
694  This->ref = 1;
695  This->lpVtbl = (const INetCfgComponent*)&vt_NetCfgComponent;
696  This->lpVtblComponentBindings = (const INetCfgComponentBindings*)&vt_NetCfgComponentBindings;
697  This->pProperty = NULL;
698  This->pItem = pItem;
699  This->pNCfg = pNCfg;
700 
701  if (!SUCCEEDED (INetCfgComponent_QueryInterface ((INetCfgComponent*)This, riid, ppv)))
702  {
703  INetCfgComponent_Release((INetCfg*)This);
704  return E_NOINTERFACE;
705  }
706 
707  INetCfgComponent_Release((INetCfgComponent*)This);
708  return S_OK;
709 }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
smooth NULL
Definition: ftsmooth.c:416
static const INetCfgComponentVtbl vt_NetCfgComponent
static const INetCfgComponentBindingsVtbl vt_NetCfgComponentBindings
#define INetCfgComponent_Release(p)
Definition: netcfgx.h:62
#define S_OK
Definition: intsafe.h:59
#define E_POINTER
Definition: winerror.h:2365
LPVOID WINAPI CoTaskMemAlloc(SIZE_T size)
Definition: ifs.c:406
#define INetCfgComponent_QueryInterface(p, a, b)
Definition: netcfgx.h:60
#define SUCCEEDED(hr)
Definition: intsafe.h:57

Referenced by FindNetworkComponent(), and IEnumNetCfgComponent_fnNext().

◆ TcpipConfigNotify_Constructor()

HRESULT WINAPI TcpipConfigNotify_Constructor ( IUnknown pUnkOuter,
REFIID  riid,
LPVOID ppv 
)

Definition at line 3439 of file tcpipconf_notify.c.

3440 {
3442 
3443  if (!ppv)
3444  return E_POINTER;
3445 
3447  if (!This)
3448  return E_OUTOFMEMORY;
3449 
3450  This->ref = 1;
3451  This->lpVtbl = (const INetCfgComponentPropertyUi*)&vt_NetCfgComponentPropertyUi;
3452  This->lpVtblCompControl = (const INetCfgComponentControl*)&vt_NetCfgComponentControl;
3453  This->pNCfg = NULL;
3454  This->pUnknown = NULL;
3455  This->pNComp = NULL;
3456  This->pCurrentConfig = NULL;
3457 
3458  if (!SUCCEEDED (INetCfgComponentPropertyUi_QueryInterface ((INetCfgComponentPropertyUi*)This, riid, ppv)))
3459  {
3460  INetCfgComponentPropertyUi_Release((INetCfgComponentPropertyUi*)This);
3461  return E_NOINTERFACE;
3462  }
3463 
3464  INetCfgComponentPropertyUi_Release((INetCfgComponentPropertyUi*)This);
3465  return S_OK;
3466 }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
static const INetCfgComponentPropertyUiVtbl vt_NetCfgComponentPropertyUi
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
smooth NULL
Definition: ftsmooth.c:416
#define INetCfgComponentPropertyUi_Release(p)
Definition: netcfgn.h:79
static const INetCfgComponentControlVtbl vt_NetCfgComponentControl
#define S_OK
Definition: intsafe.h:59
#define E_POINTER
Definition: winerror.h:2365
LPVOID WINAPI CoTaskMemAlloc(SIZE_T size)
Definition: ifs.c:406
#define SUCCEEDED(hr)
Definition: intsafe.h:57
#define INetCfgComponentPropertyUi_QueryInterface(p, a, b)
Definition: netcfgn.h:77

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( netcfgx  )

Variable Documentation

◆ CLSID_TcpipConfigNotifyObject

const GUID CLSID_TcpipConfigNotifyObject

Definition at line 16 of file netcfgx.c.

◆ netcfgx_hInstance