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