032f318862935070230b525324a440b5ece18af9
[reactos.git] / reactos / dll / win32 / netshell / precomp.h
1 #ifndef _PRECOMP_H__
2 #define _PRECOMP_H__
3
4 #define WIN32_NO_STATUS
5 #define _INC_WINDOWS
6 #define COM_NO_WINDOWS_H
7
8 #include <stdio.h>
9 #include <windef.h>
10 #include <winreg.h>
11 #include <winbase.h>
12 #include <winnls.h>
13 #include <winsock2.h>
14 #include <shlwapi.h>
15 #include <shlobj.h>
16 #include <shellapi.h>
17 #include <olectl.h>
18 #include <iphlpapi.h>
19 #include <setupapi.h>
20 #include <devguid.h>
21 #include <netcon.h>
22 #include <netcfgx.h>
23 #include <netcfgn.h>
24 #include <wine/debug.h>
25
26 #include "resource.h"
27
28 #define NCF_VIRTUAL 0x1
29 #define NCF_SOFTWARE_ENUMERATED 0x2
30 #define NCF_PHYSICAL 0x4
31 #define NCF_HIDDEN 0x8
32 #define NCF_NO_SERVICE 0x10
33 #define NCF_NOT_USER_REMOVABLE 0x20
34 #define NCF_MULTIPORT_INSTANCED_ADAPTER 0x40
35 #define NCF_HAS_UI 0x80
36 #define NCF_FILTER 0x400
37 #define NCF_NDIS_PROTOCOL 0x4000
38
39 typedef struct {
40 int colnameid;
41 int pcsFlags;
42 int fmt;
43 int cxChar;
44 } shvheader;
45
46 typedef struct tagVALUEStruct
47 {
48 BYTE dummy;
49 INetConnection * pItem;
50 } VALUEStruct;
51
52 /* globals */
53 extern HINSTANCE netshell_hInstance;
54 extern const GUID CLSID_NetworkConnections;
55 extern const GUID CLSID_LANConnectUI;
56 extern const GUID CLSID_LanConnectStatusUI;
57 extern const GUID GUID_DEVCLASS_NET;
58
59 /* shfldr_netconnect.c */
60 HRESULT ShowNetConnectionProperties(INetConnection * pNetConnect, HWND hwnd);
61 HRESULT WINAPI ISF_NetConnect_Constructor(IUnknown * pUnkOuter, REFIID riid, LPVOID * ppv);
62
63 /* enumlist.c */
64 LPITEMIDLIST _ILCreateNetConnect(void);
65 LPITEMIDLIST ILCreateNetConnectItem(INetConnection *pItem);
66 BOOL _ILIsNetConnect(LPCITEMIDLIST pidl);
67 //BOOL AddToEnumList(IEnumIDList *iface, LPITEMIDLIST pidl);
68 VALUEStruct * _ILGetValueStruct(LPCITEMIDLIST pidl);
69
70 /* classfactory.c */
71 HRESULT IClassFactory_fnConstructor(REFCLSID rclsid, REFIID riid, LPVOID *ppvOut);
72
73 /* connectmanager.c */
74 HRESULT WINAPI INetConnectionManager_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv);
75 BOOL GetAdapterIndexFromNetCfgInstanceId(PIP_ADAPTER_INFO pAdapterInfo, LPWSTR szNetCfg, PDWORD pIndex);
76
77 /* lanconnectui.c */
78 HPROPSHEETPAGE InitializePropertySheetPage(LPWSTR resname, DLGPROC dlgproc, LPARAM lParam, LPWSTR szTitle);
79 HRESULT WINAPI LanConnectUI_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv);
80
81 /* lanstatusui.c */
82 HRESULT WINAPI LanConnectStatusUI_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv);
83
84 #define NCCF_NOTIFY_DISCONNECTED 0x100000
85
86 #include "enumlist.h"
87
88 #endif