1 #ifndef _PRECOMP_H__ 2 #define _PRECOMP_H__ 3 4 #include <stdio.h> 5 6 #define WIN32_NO_STATUS 7 #define _INC_WINDOWS 8 #define COM_NO_WINDOWS_H 9 10 #define COBJMACROS 11 #define NONAMELESSUNION 12 #define NONAMELESSSTRUCT 13 14 #include <windef.h> 15 #include <winbase.h> 16 #include <winreg.h> 17 #include <windowsx.h> 18 #include <objbase.h> 19 #include <netcfgx.h> 20 #include <setupapi.h> 21 #include <netcfgn.h> 22 #include <devguid.h> 23 #include <commctrl.h> 24 #include <cfgmgr32.h> 25 26 #include <wine/debug.h> 27 28 #include "resource.h" 29 30 WINE_DEFAULT_DEBUG_CHANNEL(netcfgx); 31 32 typedef HRESULT (CALLBACK *LPFNCREATEINSTANCE)(IUnknown* pUnkOuter, REFIID riid, LPVOID* ppvObject); 33 typedef struct { 34 REFIID riid; 35 LPFNCREATEINSTANCE lpfnCI; 36 } INTERFACE_TABLE; 37 38 typedef struct tagNetCfgComponentItem 39 { 40 LPWSTR szDisplayName; //Y 41 LPWSTR szHelpText; //Y 42 LPWSTR szId; //Y 43 LPWSTR szBindName; //Y 44 LPWSTR szNodeId; //Y 45 CLSID InstanceId; //Y 46 CLSID ClassGUID; //Y 47 DWORD dwCharacteristics; //Y 48 ULONG Status; //Y 49 BOOL bChanged; //Y 50 LPWSTR pszBinding; 51 struct tagNetCfgComponentItem * pNext; 52 INetCfgComponentControl * pNCCC; 53 }NetCfgComponentItem; 54 55 /* netcfg_iface.c */ 56 HRESULT WINAPI INetCfg_Constructor (IUnknown * pUnkOuter, REFIID riid, LPVOID * ppv); 57 58 /* classfactory.c */ 59 IClassFactory * IClassFactory_fnConstructor(LPFNCREATEINSTANCE lpfnCI, PLONG pcRefDll, REFIID riidInst); 60 61 /* globals */ 62 extern HINSTANCE netcfgx_hInstance; 63 64 /* inetcfgcomp_iface.c */ 65 HRESULT WINAPI INetCfgComponent_Constructor (IUnknown * pUnkOuter, REFIID riid, LPVOID * ppv, NetCfgComponentItem * pItem,INetCfg * iface); 66 HRESULT WINAPI IEnumNetCfgComponent_Constructor (IUnknown * pUnkOuter, REFIID riid, LPVOID * ppv, NetCfgComponentItem * pItem, INetCfg * iface); 67 68 /* netcfgbindinginterface_iface.c */ 69 HRESULT WINAPI INetCfgBindingInterface_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv); 70 HRESULT WINAPI IEnumNetCfgBindingInterface_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv); 71 72 /* netcfgbindingpath_iface.c */ 73 HRESULT WINAPI INetCfgBindingPath_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv); 74 HRESULT WINAPI IEnumNetCfgBindingPath_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv, DWORD dwFlags); 75 76 /* tcpipconf_notify.c */ 77 HRESULT WINAPI TcpipConfigNotify_Constructor (IUnknown * pUnkOuter, REFIID riid, LPVOID * ppv); 78 79 extern const GUID CLSID_TcpipConfigNotifyObject; 80 81 #endif /* _PRECOMP_H__ */ 82