2008-09-06 17:22:32 +00:00
|
|
|
#ifndef _PRECOMP_H__
|
|
|
|
#define _PRECOMP_H__
|
|
|
|
|
2014-01-25 10:45:26 +00:00
|
|
|
#include <stdio.h>
|
2008-09-06 17:22:32 +00:00
|
|
|
|
2010-07-22 18:29:35 +00:00
|
|
|
#define WIN32_NO_STATUS
|
2013-01-24 23:00:42 +00:00
|
|
|
#define _INC_WINDOWS
|
|
|
|
#define COM_NO_WINDOWS_H
|
2014-01-25 10:45:26 +00:00
|
|
|
|
|
|
|
#define COBJMACROS
|
|
|
|
#define NONAMELESSUNION
|
|
|
|
#define NONAMELESSSTRUCT
|
|
|
|
|
2013-01-24 23:00:42 +00:00
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
2014-01-25 10:45:26 +00:00
|
|
|
#include <winreg.h>
|
2013-01-24 23:00:42 +00:00
|
|
|
#include <objbase.h>
|
2008-09-06 17:22:32 +00:00
|
|
|
#include <netcfgx.h>
|
|
|
|
#include <setupapi.h>
|
2008-09-09 14:29:25 +00:00
|
|
|
#include <netcfgn.h>
|
2011-08-11 15:17:39 +00:00
|
|
|
#include <devguid.h>
|
2015-07-12 17:16:35 +00:00
|
|
|
#include <commctrl.h>
|
2011-08-11 15:17:39 +00:00
|
|
|
|
2014-01-25 10:45:26 +00:00
|
|
|
#include "resource.h"
|
|
|
|
|
2008-09-06 17:22:32 +00:00
|
|
|
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
|
|
|
|
struct tagNetCfgComponentItem * pNext;
|
2008-10-28 09:06:24 +00:00
|
|
|
INetCfgComponentControl * pNCCC;
|
2008-09-06 17:22:32 +00:00
|
|
|
}NetCfgComponentItem;
|
|
|
|
|
|
|
|
/* 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 */
|
2008-11-30 11:42:05 +00:00
|
|
|
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);
|
2008-09-06 17:22:32 +00:00
|
|
|
|
2008-09-10 00:13:39 +00:00
|
|
|
/* tcpipconf_notify.c */
|
|
|
|
HRESULT WINAPI TcpipConfigNotify_Constructor (IUnknown * pUnkOuter, REFIID riid, LPVOID * ppv);
|
|
|
|
|
|
|
|
extern const GUID CLSID_TcpipConfigNotifyObject;
|
|
|
|
|
2014-01-25 10:45:26 +00:00
|
|
|
#endif /* _PRECOMP_H__ */
|