xref: /reactos/dll/win32/shell32/precomp.h (revision d7fd62d4)
1 #ifndef _PRECOMP_H__
2 #define _PRECOMP_H__
3 
4 #include <stdarg.h>
5 #include <assert.h>
6 
7 #define COBJMACROS
8 #define WIN32_NO_STATUS
9 #define _INC_WINDOWS
10 #define COM_NO_WINDOWS_H
11 #define NTOS_MODE_USER
12 
13 #include <windef.h>
14 #include <winbase.h>
15 #include <winreg.h>
16 #include <winuser.h>
17 #include <wincon.h>
18 #include <commdlg.h>
19 #include <ddeml.h>
20 #include <userenv.h>
21 
22 #include <shlwapi.h>
23 #include <wininet.h>
24 #include <shlobj.h>
25 #include <shobjidl.h>
26 #include <ndk/rtlfuncs.h>
27 #include <fmifs/fmifs.h>
28 #include <tchar.h>
29 #include <strsafe.h>
30 #include <atlbase.h>
31 #include <atlcom.h>
32 #include <atlwin.h>
33 #include <atlstr.h>
34 #include <atlsimpcoll.h>
35 #include <powrprof.h>
36 #include <winnetwk.h>
37 #include <objsafe.h>
38 
39 #include <comctl32_undoc.h>
40 #include <shlguid_undoc.h>
41 #include <shlobj_undoc.h>
42 #include <shlwapi_undoc.h>
43 
44 #include <shellapi.h>
45 #undef ShellExecute
46 #include <undocshell.h>
47 
48 #include <browseui_undoc.h>
49 
50 #include <shellutils.h>
51 
52 #include "shellrecyclebin/recyclebin.h"
53 #include "wine/pidl.h"
54 #include "debughlp.h"
55 #include "wine/shell32_main.h"
56 #include "shresdef.h"
57 #include "wine/cpanel.h"
58 #include "CActiveDesktop.h"
59 #include "CEnumIDListBase.h"
60 #include "shfldr.h"
61 #include "CShellItem.h"
62 #include "CShellLink.h"
63 #include "CFolderItemVerbs.h"
64 #include "CFolderItems.h"
65 #include "CFolder.h"
66 #include "CShellDispatch.h"
67 #include "CDropTargetHelper.h"
68 #include "CFolderOptions.h"
69 #include "folders/CFSFolder.h"
70 #include "folders/CDrivesFolder.h"
71 #include "folders/CDesktopFolder.h"
72 #include "folders/CControlPanelFolder.h"
73 #include "folders/CMyDocsFolder.h"
74 #include "folders/CNetFolder.h"
75 #include "folders/CFontsFolder.h"
76 #include "folders/CPrinterFolder.h"
77 #include "folders/CAdminToolsFolder.h"
78 #include "folders/CRecycleBin.h"
79 #include "droptargets/CexeDropHandler.h"
80 #include "droptargets/CFSDropTarget.h"
81 #include "COpenWithMenu.h"
82 #include "CNewMenu.h"
83 #include "CSendToMenu.h"
84 #include "CCopyToMoveToMenu.h"
85 #include "dialogs/filedefext.h"
86 #include "dialogs/drvdefext.h"
87 #include "CQueryAssociations.h"
88 #include "shellmenu/CMenuBand.h"
89 #include "shellmenu/CMenuDeskBar.h"
90 #include "shellmenu/CMenuSite.h"
91 #include "shellmenu/CMergedFolder.h"
92 #include "shellmenu/shellmenu.h"
93 #include "CUserNotification.h"
94 #include "dialogs/folder_options.h"
95 #include "shelldesktop/CChangeNotifyServer.h"
96 
97 #include <wine/debug.h>
98 #include <wine/unicode.h>
99 
100 extern const GUID CLSID_AdminFolderShortcut;
101 extern const GUID CLSID_FontsFolderShortcut;
102 extern const GUID CLSID_StartMenu;
103 extern const GUID CLSID_MenuBandSite;
104 extern const GUID CLSID_OpenWith;
105 extern const GUID CLSID_UnixFolder;
106 extern const GUID CLSID_UnixDosFolder;
107 extern const GUID SHELL32_AdvtShortcutProduct;
108 extern const GUID SHELL32_AdvtShortcutComponent;
109 
110 #define MAX_PROPERTY_SHEET_PAGE 32
111 
112 extern inline
113 BOOL
114 CALLBACK
115 AddPropSheetPageCallback(HPROPSHEETPAGE hPage, LPARAM lParam)
116 {
117     PROPSHEETHEADERW *pHeader = (PROPSHEETHEADERW *)lParam;
118 
119     if (pHeader->nPages < MAX_PROPERTY_SHEET_PAGE)
120     {
121         pHeader->phpage[pHeader->nPages++] = hPage;
122         return TRUE;
123     }
124 
125     return FALSE;
126 }
127 
128 HRESULT WINAPI
129 Shell_DefaultContextMenuCallBack(IShellFolder *psf, IDataObject *pdtobj);
130 
131 // CStubWindow32 --- The owner window of file property sheets.
132 // This window hides taskbar button of property sheet.
133 class CStubWindow32 : public CWindowImpl<CStubWindow32>
134 {
135 public:
136     DECLARE_WND_CLASS_EX(_T("StubWindow32"), 0, COLOR_WINDOWTEXT)
137 
138     BEGIN_MSG_MAP(CStubWindow32)
139     END_MSG_MAP()
140 };
141 
142 #endif /* _PRECOMP_H__ */
143