ReactOS  0.4.13-dev-66-gc714b7f
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 <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 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 31 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().

◆ IEnumNetCfgComponent_Constructor()

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

Definition at line 676 of file inetcfgcomp_iface.c.

677 {
679 
680  if (!ppv)
681  return E_POINTER;
682 
684  if (!This)
685  return E_OUTOFMEMORY;
686 
687  This->ref = 1;
688  This->lpVtbl = (const IEnumNetCfgComponent*)&vt_EnumNetCfgComponent;
689  This->pCurrent = pItem;
690  This->pHead = pItem;
691  This->pNCfg = pNCfg;
692 
693  if (!SUCCEEDED (IEnumNetCfgComponent_QueryInterface ((INetCfgComponent*)This, riid, ppv)))
694  {
696  return E_NOINTERFACE;
697  }
698 
699  IEnumNetCfgComponent_Release((IEnumNetCfgComponent*)This);
700  return S_OK;
701 }
#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 781 of file netcfg_iface.c.

782 {
783  INetCfgImpl *This;
784 
785  if (!ppv)
786  return E_POINTER;
787 
788  This = (INetCfgImpl *) CoTaskMemAlloc(sizeof (INetCfgImpl));
789  if (!This)
790  return E_OUTOFMEMORY;
791 
792  This->ref = 1;
793  This->lpVtbl = (const INetCfg*)&vt_NetCfg;
794  This->lpVtblLock = (const INetCfgLock*)&vt_NetCfgLock;
795  This->lpVtblPnpReconfigCallback = (const INetCfgPnpReconfigCallback*)&vt_NetCfgPnpReconfigCallback;
796  This->hMutex = NULL;
797  This->bInitialized = FALSE;
798  This->pNet = NULL;
799  This->pClient = NULL;
800  This->pService = NULL;
801  This->pProtocol = NULL;
802 
803  if (!SUCCEEDED (INetCfg_QueryInterface ((INetCfg*)This, riid, ppv)))
804  {
805  INetCfg_Release((INetCfg*)This);
806  return E_NOINTERFACE;
807  }
808 
809  INetCfg_Release((INetCfg*)This);
810  return S_OK;
811 }
#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:767
#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

◆ INetCfgComponent_Constructor()

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

Definition at line 517 of file inetcfgcomp_iface.c.

518 {
520 
521  if (!ppv)
522  return E_POINTER;
523 
525  if (!This)
526  return E_OUTOFMEMORY;
527 
528  This->ref = 1;
529  This->lpVtbl = (const INetCfgComponent*)&vt_NetCfgComponent;
530  This->pProperty = NULL;
531  This->pItem = pItem;
532  This->pNCfg = pNCfg;
533 
534  if (!SUCCEEDED (INetCfgComponent_QueryInterface ((INetCfgComponent*)This, riid, ppv)))
535  {
536  INetCfgComponent_Release((INetCfg*)This);
537  return E_NOINTERFACE;
538  }
539 
540  INetCfgComponent_Release((INetCfgComponent*)This);
541  return S_OK;
542 }
#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
#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 3446 of file tcpipconf_notify.c.

3447 {
3449 
3450  if (!ppv)
3451  return E_POINTER;
3452 
3454  if (!This)
3455  return E_OUTOFMEMORY;
3456 
3457  This->ref = 1;
3458  This->lpVtbl = (const INetCfgComponentPropertyUi*)&vt_NetCfgComponentPropertyUi;
3459  This->lpVtblCompControl = (const INetCfgComponentControl*)&vt_NetCfgComponentControl;
3460  This->pNCfg = NULL;
3461  This->pUnknown = NULL;
3462  This->pNComp = NULL;
3463  This->pCurrentConfig = NULL;
3464 
3465  if (!SUCCEEDED (INetCfgComponentPropertyUi_QueryInterface ((INetCfgComponentPropertyUi*)This, riid, ppv)))
3466  {
3467  INetCfgComponentPropertyUi_Release((INetCfgComponentPropertyUi*)This);
3468  return E_NOINTERFACE;
3469  }
3470 
3471  INetCfgComponentPropertyUi_Release((INetCfgComponentPropertyUi*)This);
3472  return S_OK;
3473 }
#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