xref: /reactos/dll/shellext/netshell/precomp.h (revision ea608909)
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 #include <pshpack1.h>
59 #define NETCONIDSTRUCT_SIG 0x4EFF
60 typedef struct tagNETCONIDSTRUCT
61 {
62     WORD             Signature;
63     BYTE             Unknown[8];
64     CLSID            clsidThisObject;
65     GUID             guidId;
66     DWORD            dwCharacter;
67     NETCON_MEDIATYPE MediaType;
68     NETCON_STATUS    Status;
69     ULONG            uNameOffset;
70     ULONG            uDeviceNameOffset;
71 } NETCONIDSTRUCT, *PNETCONIDSTRUCT;
72 #include <poppack.h>
73 
74 C_ASSERT(2 + FIELD_OFFSET(NETCONIDSTRUCT, clsidThisObject) == 2 + (2 + 8));
75 C_ASSERT(2 + FIELD_OFFSET(NETCONIDSTRUCT, guidId) == 2 + (2 + 8 + 16));
76 C_ASSERT(2 + FIELD_OFFSET(NETCONIDSTRUCT, dwCharacter) == 2 + (2 + 8 + 32));
77 C_ASSERT(2 + FIELD_OFFSET(NETCONIDSTRUCT, MediaType) == 2 + (2 + 8 + 36));
78 
79 PNETCONIDSTRUCT ILGetConnData(PCITEMID_CHILD pidl);
80 PWCHAR ILGetConnName(PCITEMID_CHILD pidl);
81 PWCHAR ILGetDeviceName(PCITEMID_CHILD pidl);
82 PITEMID_CHILD ILCreateNetConnectItem(INetConnection * pItem);
83 HRESULT ILGetConnection(PCITEMID_CHILD pidl, INetConnection ** pItem);
84 HRESULT CEnumIDList_CreateInstance(HWND hwndOwner, DWORD dwFlags, REFIID riid, LPVOID * ppv);
85 
86 #define NCCF_NOTIFY_DISCONNECTED 0x100000
87 
88 HPROPSHEETPAGE InitializePropertySheetPage(LPWSTR resname, DLGPROC dlgproc, LPARAM lParam, LPWSTR szTitle);
89 
90 #include "connectmanager.h"
91 #include "lanconnectui.h"
92 #include "lanstatusui.h"
93 #include "shfldr_netconnect.h"
94 
95 
96 #endif /* _PRECOMP_H__ */
97