xref: /reactos/dll/shellext/netshell/precomp.h (revision 7eead935)
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 <atlbase.h>
20 #include <atlcom.h>
21 #include <atlcoll.h>
22 #include <atlstr.h>
23 #include <iphlpapi.h>
24 #include <setupapi.h>
25 #include <devguid.h>
26 #include <netcon.h>
27 #include <shlguid_undoc.h>
28 #include <prsht.h>
29 #include <undocshell.h>
30 #include <shellutils.h>
31 
32 #include <netcfgx.h>
33 #include <netcfgn.h>
34 #include <strsafe.h>
35 
36 #include <wine/debug.h>
37 WINE_DEFAULT_DEBUG_CHANNEL(shell);
38 
39 #include "resource.h"
40 
41 #define NCF_VIRTUAL                     0x1
42 #define NCF_SOFTWARE_ENUMERATED         0x2
43 #define NCF_PHYSICAL                    0x4
44 #define NCF_HIDDEN                      0x8
45 #define NCF_NO_SERVICE                  0x10
46 #define NCF_NOT_USER_REMOVABLE          0x20
47 #define NCF_MULTIPORT_INSTANCED_ADAPTER 0x40
48 #define NCF_HAS_UI                      0x80
49 #define NCF_FILTER                      0x400
50 #define NCF_NDIS_PROTOCOL               0x4000
51 
52 #define USE_CUSTOM_CONMGR 1
53 
54 /* globals */
55 extern HINSTANCE netshell_hInstance;
56 
57 /* enumlist.c */
58 typedef struct tagNETCONIDSTRUCT
59 {
60     BYTE             type;
61     GUID             guidId;
62     NETCON_STATUS    Status;
63     NETCON_MEDIATYPE MediaType;
64     DWORD            dwCharacter;
65     ULONG_PTR        uNameOffset;
66     ULONG_PTR        uDeviceNameOffset;
67 } NETCONIDSTRUCT, *PNETCONIDSTRUCT;
68 
69 PNETCONIDSTRUCT ILGetConnData(PCITEMID_CHILD pidl);
70 PWCHAR ILGetConnName(PCITEMID_CHILD pidl);
71 PWCHAR ILGetDeviceName(PCITEMID_CHILD pidl);
72 PITEMID_CHILD ILCreateNetConnectItem(INetConnection * pItem);
73 HRESULT ILGetConnection(PCITEMID_CHILD pidl, INetConnection ** pItem);
74 HRESULT CEnumIDList_CreateInstance(HWND hwndOwner, DWORD dwFlags, REFIID riid, LPVOID * ppv);
75 
76 #define NCCF_NOTIFY_DISCONNECTED 0x100000
77 
78 HPROPSHEETPAGE InitializePropertySheetPage(LPWSTR resname, DLGPROC dlgproc, LPARAM lParam, LPWSTR szTitle);
79 
80 #include "connectmanager.h"
81 #include "lanconnectui.h"
82 #include "lanstatusui.h"
83 #include "shfldr_netconnect.h"
84 
85 
86 #endif /* _PRECOMP_H__ */
87