xref: /reactos/dll/shellext/netshell/precomp.h (revision 845faec4)
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 <wingdi.h>
13 #include <wincon.h>
14 #include <winreg.h>
15 #include <winnls.h>
16 #include <shlwapi.h>
17 #include <shlobj.h>
18 #include <shellapi.h>
19 #include <iphlpapi.h>
20 #include <setupapi.h>
21 #include <devguid.h>
22 #include <netcon.h>
23 #include <shlguid_undoc.h>
24 #include <prsht.h>
25 
26 #include <wine/debug.h>
27 WINE_DEFAULT_DEBUG_CHANNEL(shell);
28 
29 #include "resource.h"
30 
31 #if defined(_MSC_VER) && _MSC_VER < 1700
32 #define final sealed
33 #endif
34 
35 #define NCF_VIRTUAL                     0x1
36 #define NCF_SOFTWARE_ENUMERATED         0x2
37 #define NCF_PHYSICAL                    0x4
38 #define NCF_HIDDEN                      0x8
39 #define NCF_NO_SERVICE                  0x10
40 #define NCF_NOT_USER_REMOVABLE          0x20
41 #define NCF_MULTIPORT_INSTANCED_ADAPTER 0x40
42 #define NCF_HAS_UI                      0x80
43 #define NCF_FILTER                      0x400
44 #define NCF_NDIS_PROTOCOL               0x4000
45 
46 typedef struct {
47     int colnameid;
48     int pcsFlags;
49     int fmt;
50     int cxChar;
51 } shvheader;
52 
53 typedef struct tagVALUEStruct
54 {
55     BYTE dummy;
56     INetConnection * pItem;
57 } VALUEStruct;
58 
59 /* globals */
60 extern HINSTANCE netshell_hInstance;
61 
62 /* shfldr_netconnect.c */
63 HRESULT ShowNetConnectionProperties(INetConnection * pNetConnect, HWND hwnd);
64 HRESULT WINAPI ISF_NetConnect_Constructor(IUnknown * pUnkOuter, REFIID riid, LPVOID * ppv);
65 
66 /* enumlist.c */
67 PITEMID_CHILD _ILCreateNetConnect(void);
68 PITEMID_CHILD ILCreateNetConnectItem(INetConnection *pItem);
69 BOOL _ILIsNetConnect(LPCITEMIDLIST pidl);
70 const 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__ */
91