Make acpi compile with Visual C++
[reactos.git] / dll / win32 / netshell / precomp.h
1 #ifndef _PRECOMP_H__
2 #define _PRECOMP_H__
3
4 #include "config.h"
5
6 #include <stdarg.h>
7 #include <stdlib.h>
8 #include <string.h>
9 #include <stdio.h>
10 #include <assert.h>
11 #include <ctype.h>
12 #include <malloc.h>
13
14 #define COBJMACROS
15 #define NONAMELESSUNION
16 #define NONAMELESSSTRUCT
17 #include <winsock2.h>
18 #include <windows.h>
19
20 #include <shlguid.h>
21 #include <shlwapi.h>
22 #include <shlobj.h>
23 #include <shldisp.h>
24 #include <cpl.h>
25 #include <objbase.h>
26 #include <ole2.h>
27 #include <ocidl.h>
28 #include <shobjidl.h>
29 #include <shellapi.h>
30 #include <olectl.h>
31 #include <iphlpapi.h>
32 #include <shtypes.h>
33 #include <setupapi.h>
34 #include <devguid.h>
35 #include <netcon.h>
36 #include <docobj.h>
37 #include <netcfgx.h>
38 #include <netcfgn.h>
39 #include <prsht.h>
40
41
42 #include "wine/debug.h"
43 #include "wine/unicode.h"
44 #include "resource.h"
45
46 #define NCF_VIRTUAL 0x1
47 #define NCF_SOFTWARE_ENUMERATED 0x2
48 #define NCF_PHYSICAL 0x4
49 #define NCF_HIDDEN 0x8
50 #define NCF_NO_SERVICE 0x10
51 #define NCF_NOT_USER_REMOVABLE 0x20
52 #define NCF_MULTIPORT_INSTANCED_ADAPTER 0x40
53 #define NCF_HAS_UI 0x80
54 #define NCF_FILTER 0x400
55 #define NCF_NDIS_PROTOCOL 0x4000
56
57 typedef struct {
58 int colnameid;
59 int pcsFlags;
60 int fmt;
61 int cxChar;
62 } shvheader;
63
64 typedef HRESULT (CALLBACK *LPFNCREATEINSTANCE)(IUnknown* pUnkOuter, REFIID riid, LPVOID* ppvObject);
65 typedef struct {
66 REFIID riid;
67 LPFNCREATEINSTANCE lpfnCI;
68 } INTERFACE_TABLE;
69
70 typedef struct tagVALUEStruct
71 {
72 BYTE dummy;
73 INetConnection * pItem;
74 }VALUEStruct;
75
76 /* globals */
77 extern HINSTANCE netshell_hInstance;
78 extern const GUID CLSID_NetworkConnections;
79 extern const GUID CLSID_LANConnectUI;
80 extern const GUID CLSID_LanConnectStatusUI;
81 extern const GUID GUID_DEVCLASS_NET;
82
83
84 /* shfldr_netconnect.c */
85 HRESULT ShowNetConnectionProperties(INetConnection * pNetConnect, HWND hwnd);
86 HRESULT WINAPI ISF_NetConnect_Constructor (IUnknown * pUnkOuter, REFIID riid, LPVOID * ppv);
87
88 /* enumlist.c */
89 IEnumIDList * IEnumIDList_Constructor(void);
90 LPITEMIDLIST _ILCreateNetConnect();
91 LPITEMIDLIST ILCreateNetConnectItem(INetConnection * pItem);
92 BOOL _ILIsNetConnect (LPCITEMIDLIST pidl);
93 BOOL AddToEnumList(IEnumIDList * iface, LPITEMIDLIST pidl);
94 VALUEStruct * _ILGetValueStruct(LPCITEMIDLIST pidl);
95
96 /* classfactory.c */
97 IClassFactory * IClassFactory_fnConstructor(LPFNCREATEINSTANCE lpfnCI, PLONG pcRefDll, REFIID riidInst);
98
99 /* connectmanager.c */
100 HRESULT WINAPI INetConnectionManager_Constructor (IUnknown * pUnkOuter, REFIID riid, LPVOID * ppv);
101 BOOL GetAdapterIndexFromNetCfgInstanceId(PIP_ADAPTER_INFO pAdapterInfo, LPWSTR szNetCfg, PDWORD pIndex);
102
103 /* lanconnectui.c */
104 HPROPSHEETPAGE InitializePropertySheetPage(LPWSTR resname, DLGPROC dlgproc, LPARAM lParam, LPWSTR szTitle);
105 HRESULT WINAPI LanConnectUI_Constructor (IUnknown * pUnkOuter, REFIID riid, LPVOID * ppv);
106
107 /* lanstatusui.c */
108 HRESULT WINAPI LanConnectStatusUI_Constructor (IUnknown * pUnkOuter, REFIID riid, LPVOID * ppv);
109
110 #define NCCF_NOTIFY_DISCONNECTED 0x100000
111
112 #endif