Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
2.4 KiB

  1. #ifndef WIN16
  2. #endif // WIN16
  3. #define _SHELL32_ // specify import as defer loading (demand.cpp) makes them local
  4. #define _SHLWAPI_
  5. #include <windows.h>
  6. #define _MSOEACCTAPI_
  7. #define _MSOERT_
  8. #define _MIMEOLE_
  9. #define _IMNACCT_
  10. #include <msoert.h>
  11. #include <mimeole.h>
  12. #include <imnact.h>
  13. #define _OLEAUT32_ // we define these to change functions prototypes to not
  14. #include <oleauto.h>
  15. #ifndef WIN16
  16. #include <shlobj.h>
  17. #include <commctrl.h>
  18. #else // !WIN16
  19. #include <ver.h>
  20. #include <dlgs.h>
  21. #include <commdlg.h>
  22. #include <shfusion.h>
  23. #include <prsht.h>
  24. #include <shlobj.h>
  25. #include <shlwapi.h>
  26. #include <shellapi.h>
  27. #include <basetyps.h>
  28. #include "athena16.h"
  29. #endif // !WIN16
  30. #ifndef WIN16
  31. #include <shlguidp.h>
  32. #include <comctrlp.h>
  33. #endif
  34. #include <tchar.h>
  35. #include <shlobjp.h>
  36. #include <imnxport.h>
  37. #include <oledb.h>
  38. #include <mshtml.h>
  39. #include <msoeapi.h>
  40. #include <goptions.h>
  41. #include <resource.h>
  42. #include <error.h>
  43. #include <shlwapi.h>
  44. #include <ourguid.h>
  45. #include <fonts.h>
  46. #include <richedit.h>
  47. #include <wininet.h>
  48. #include <urlmon.h>
  49. #include <mimeutil.h>
  50. #include <thormsgs.h>
  51. #include <strconst.h>
  52. #include <oestore.h>
  53. #include <dllmain.h>
  54. #include <util.h>
  55. /////////////////////////////////////////////////////////////////////////////
  56. // ATL Includes
  57. //
  58. // Notes -
  59. // * Because Athena doesn't use the C Runtimes, we have to define
  60. // _ATL_NO_DEBUG_CRT to prevent ATL from trying to use the C Rutimes.
  61. // As a result, we need to redefine the _ASSERTE() macro to use our own
  62. // Assert() implementation since _ASSERTE() comes from the CRT.
  63. //
  64. // * If you include the ATL headers after windowsx.h, the SubclassWindow()
  65. // macro in windowsx.h interfers with the SubclassWindow() function in
  66. // ATL.
  67. //
  68. #define _ATL_APARTMENT_THREADED
  69. #define _ATL_NO_DEBUG_CRT
  70. //#define _ATL_DEBUG_QI
  71. #ifdef DEBUG
  72. // ATL uses _DEBUG instead of DEBUG
  73. // #define _DEBUG
  74. // ATL tries to use the CRT _ASSERTE implementation. Substitute our own
  75. // here.
  76. #define _ASSERTE(_exp) AssertSz(_exp, "Assert(" #_exp ")")
  77. #define ATLTRACE OEATLTRACE
  78. #else
  79. #define _ASSERTE(_exp) ((void)0)
  80. #endif // DEBUG
  81. #include <atlbase.h>
  82. extern CComModule _Module;
  83. #include <atlcom.h>
  84. #include <atlctl.h>
  85. #include <olectl.h>
  86. #include <windowsx.h>
  87. #include <BadStrFunctions.h>