ReactOS  0.4.15-dev-1389-g828d5fa
precomp.h
Go to the documentation of this file.
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 /*
49  * For versions < Vista+, redefine ShellMessageBoxW to ShellMessageBoxWrapW
50  * (this is needed to avoid a linker error). On Vista+ onwards, shell32.ShellMessageBoxW
51  * redirects to shlwapi.ShellMessageBoxW so the #define should not be needed.
52  *
53  * However our shell32 is built with _WIN32_WINNT set to 0x600 (Vista+),
54  * yet its exports (especially regarding ShellMessageBoxA/W) are Win2003
55  * compatible. So the #define is still needed, and the check be disabled.
56  */
57 // #if (_WIN32_WINNT < 0x0600)
58 #define ShellMessageBoxW ShellMessageBoxWrapW
59 // #endif
60 
61 #include <browseui_undoc.h>
62 
63 #include <shellutils.h>
64 
66 #include "wine/pidl.h"
67 #include "debughlp.h"
68 #include "wine/shell32_main.h"
69 #include "shresdef.h"
70 #include "wine/cpanel.h"
71 #include "CActiveDesktop.h"
72 #include "CEnumIDListBase.h"
73 #include "shfldr.h"
74 #include "CShellItem.h"
75 #include "CShellLink.h"
76 #include "CFolderItemVerbs.h"
77 #include "CFolderItems.h"
78 #include "CFolder.h"
79 #include "CShellDispatch.h"
80 #include "CDropTargetHelper.h"
81 #include "CFolderOptions.h"
82 #include "folders/CFSFolder.h"
83 #include "folders/CDrivesFolder.h"
84 #include "folders/CDesktopFolder.h"
86 #include "folders/CMyDocsFolder.h"
87 #include "folders/CNetFolder.h"
88 #include "folders/CFontsFolder.h"
89 #include "folders/CPrinterFolder.h"
91 #include "folders/CRecycleBin.h"
94 #include "COpenWithMenu.h"
95 #include "CNewMenu.h"
96 #include "CSendToMenu.h"
97 #include "CCopyToMoveToMenu.h"
98 #include "dialogs/filedefext.h"
99 #include "dialogs/drvdefext.h"
100 #include "CQueryAssociations.h"
101 #include "shellmenu/CMenuBand.h"
102 #include "shellmenu/CMenuDeskBar.h"
103 #include "shellmenu/CMenuSite.h"
104 #include "shellmenu/CMergedFolder.h"
105 #include "shellmenu/shellmenu.h"
106 #include "CUserNotification.h"
107 #include "dialogs/folder_options.h"
109 
110 #include <wine/debug.h>
111 #include <wine/unicode.h>
112 
113 extern const GUID CLSID_AdminFolderShortcut;
114 extern const GUID CLSID_FontsFolderShortcut;
115 extern const GUID CLSID_StartMenu;
116 extern const GUID CLSID_MenuBandSite;
117 extern const GUID CLSID_OpenWith;
118 extern const GUID CLSID_UnixFolder;
119 extern const GUID CLSID_UnixDosFolder;
120 extern const GUID SHELL32_AdvtShortcutProduct;
122 
123 #define MAX_PROPERTY_SHEET_PAGE 32
124 
125 extern inline
126 BOOL
127 CALLBACK
129 {
131 
132  if (pHeader->nPages < MAX_PROPERTY_SHEET_PAGE)
133  {
134  pHeader->phpage[pHeader->nPages++] = hPage;
135  return TRUE;
136  }
137 
138  return FALSE;
139 }
140 
143 
144 // CStubWindow32 --- The owner window of file property sheets.
145 // This window hides taskbar button of property sheet.
146 class CStubWindow32 : public CWindowImpl<CStubWindow32>
147 {
148 public:
149  DECLARE_WND_CLASS_EX(_T("StubWindow32"), 0, COLOR_WINDOWTEXT)
150 
152  END_MSG_MAP()
153 };
154 
155 #endif /* _PRECOMP_H__ */
const GUID CLSID_AdminFolderShortcut
const GUID CLSID_UnixDosFolder
const GUID CLSID_UnixFolder
BOOL CALLBACK AddPropSheetPageCallback(HPROPSHEETPAGE hPage, LPARAM lParam)
Definition: precomp.h:128
#define TRUE
Definition: types.h:120
HRESULT WINAPI Shell_DefaultContextMenuCallBack(IShellFolder *psf, IDataObject *pdtobj)
Definition: shlfolder.cpp:450
#define CALLBACK
Definition: compat.h:35
#define DECLARE_WND_CLASS_EX(WndClassName, style, bkgnd)
Definition: atlwin.h:1886
const GUID SHELL32_AdvtShortcutComponent
const GUID CLSID_FontsFolderShortcut
#define FALSE
Definition: types.h:117
unsigned int BOOL
Definition: ntddk_ex.h:94
struct _PSP * HPROPSHEETPAGE
Definition: mstask.idl:90
FxContextHeader * pHeader
Definition: handleapi.cpp:604
const GUID SHELL32_AdvtShortcutProduct
LONG_PTR LPARAM
Definition: windef.h:208
#define _T(x)
Definition: vfdio.h:22
const GUID CLSID_StartMenu
LONG HRESULT
Definition: typedefs.h:79
#define END_MSG_MAP()
Definition: atlwin.h:1799
#define COLOR_WINDOWTEXT
Definition: winuser.h:911
#define WINAPI
Definition: msvc.h:6
#define MAX_PROPERTY_SHEET_PAGE
Definition: precomp.h:123
const GUID CLSID_OpenWith
const GUID CLSID_MenuBandSite
#define BEGIN_MSG_MAP(theClass)
Definition: atlwin.h:1780
LPARAM lParam
Definition: combotst.c:139