Files
reactos/dll/win32/netcfgx/precomp.h
T
Eric Kohl 72c5ab502b [NETCFGX] Implement ITcpipProperties_fnUnknown2 partially
- Update internal IpAddress, Gateway and NameServer information
- Mark modified component
2026-06-23 17:27:22 +02:00

124 lines
3.7 KiB
C

#ifndef _PRECOMP_H__
#define _PRECOMP_H__
#include <stdio.h>
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#define COBJMACROS
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include <windef.h>
#include <winbase.h>
#include <winreg.h>
#include <winsvc.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 <netcfgx_undoc.h>
#include <netcfgn_undoc.h>
#include <wine/debug.h>
#include "resource.h"
WINE_DEFAULT_DEBUG_CHANNEL(netcfgx);
typedef HRESULT (CALLBACK *LPFNCREATEINSTANCE)(IUnknown* pUnkOuter, REFIID riid, LPVOID* ppvObject);
typedef struct {
REFIID riid;
LPFNCREATEINSTANCE lpfnCI;
} INTERFACE_TABLE;
typedef struct tagNetCfgComponentItem
{
LPWSTR szDisplayName; //Y
LPWSTR szHelpText; //Y
LPWSTR szId; //Y
LPWSTR szBindName; //Y
LPWSTR szNodeId; //Y
CLSID InstanceId; //Y
CLSID ClassGUID; //Y
DWORD dwCharacteristics; //Y
ULONG Status; //Y
BOOL bChanged; //Y
LPWSTR pszUpperRange;
LPWSTR pszLowerRange;
LPWSTR pszBinding;
DWORD dwSupportedNotifications;
INetCfgComponentControl *pControl;
INetCfgComponentPropertyUi *pPropertyUi;
INetCfgComponentSetup *pSetup;
INetCfgComponentNotifyBinding *pNotifyBinding;
INetCfgComponentNotifyGlobal *pNotifyGlobal;
INetCfgComponentUpperEdge *pUpperEdge;
struct tagNetCfgComponentItem *pNext;
} NetCfgComponentItem;
typedef struct
{
const INetCfg * lpVtbl;
const INetCfgLock * lpVtblLock;
const INetCfgPnpReconfigCallback *lpVtblPnpReconfigCallback;
LONG ref;
BOOL bInitialized;
HANDLE hMutex;
NetCfgComponentItem *pNet;
NetCfgComponentItem * pService;
NetCfgComponentItem * pClient;
NetCfgComponentItem * pProtocol;
} INetCfgImpl;
typedef struct
{
const INetCfgComponent *lpVtbl;
const INetCfgComponentBindings *lpVtblBindings;
const INetCfgComponentPrivate *lpVtblPrivate;
LONG ref;
NetCfgComponentItem * pItem;
INetCfg * pNCfg;
} INetCfgComponentImpl;
/* netcfg_iface.c */
HRESULT WINAPI INetCfg_Constructor (IUnknown * pUnkOuter, REFIID riid, LPVOID * ppv);
/* classfactory.c */
IClassFactory * IClassFactory_fnConstructor(LPFNCREATEINSTANCE lpfnCI, PLONG pcRefDll, REFIID riidInst);
/* globals */
extern HINSTANCE netcfgx_hInstance;
/* inetcfgcomp_iface.c */
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);
/* netcfgbindinginterface_iface.c */
HRESULT WINAPI INetCfgBindingInterface_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv);
HRESULT WINAPI IEnumNetCfgBindingInterface_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv);
/* netcfgbindingpath_iface.c */
HRESULT WINAPI INetCfgBindingPath_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv);
HRESULT WINAPI IEnumNetCfgBindingPath_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv, DWORD dwFlags);
/* netcfgclass_iface.c */
HRESULT WINAPI INetCfgClass_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv, const GUID *pguidClass, INetCfg *pNetCfg);
/* netinstall.c */
BOOL InstallNetworkComponent(_In_ PCWSTR pszComponentId);
/* tcpipconf_notify.c */
HRESULT WINAPI TcpipConfigNotify_Constructor (IUnknown * pUnkOuter, REFIID riid, LPVOID * ppv);
extern const GUID CLSID_TcpipConfigNotifyObject;
#endif /* _PRECOMP_H__ */