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.

79 lines
2.1 KiB

  1. //
  2. // Mars precompiled header file.
  3. //
  4. // Only include files that don't change often or are include by most
  5. // project files.
  6. //
  7. #pragma warning(disable: 4100) // unreferenced formal parameter
  8. #define _ATL_APARTMENT_THREADED
  9. #define _NO_SYS_GUID_OPERATOR_EQ_
  10. #include <windows.h>
  11. //#include <marsleak.h>
  12. // Set some debug wrappers before we load atlbase.h to allow use of atl trace flags
  13. #ifdef _DEBUG
  14. extern DWORD g_dwAtlTraceFlags;
  15. #define ATL_TRACE_CATEGORY g_dwAtlTraceFlags
  16. // In _DEBUG mode atlbase.h uses _vsn?printf which we remap to wvnsprintf?
  17. // Atlbase.h will also pull in stdio.h. We must remap these functions
  18. // after stdio.h has been loaded.
  19. //
  20. // Why? You ask? Cuz we're not too inclined to pull in the C runtime library.
  21. // It's good enough for everyone but us.
  22. //
  23. // - The Faroukmaster (1999)
  24. //
  25. #include <stdio.h>
  26. #define _vsnprintf wvnsprintfA
  27. #define _vsnwprintf wvnsprintfW
  28. #endif //_DEBUG
  29. #define wcscmp StrCmpW // For CComBSTR
  30. #include <atlbase.h>
  31. extern CComModule _Module;
  32. #include <atlcom.h>
  33. #include <atlwin.h>
  34. #include <atlhost.h>
  35. #include <atlctl.h>
  36. #include <marsdev.h>
  37. #include <shlguid.h>
  38. #include <shlwapip.h>
  39. #include <mshtml.h>
  40. #include <mshtmdid.h>
  41. #include <hlink.h>
  42. #include <wininet.h>
  43. #include <commctrl.h>
  44. #include <comctrlp.h>
  45. #include <shlobj.h>
  46. #include <shlobjp.h>
  47. #include <htiframe.h> // IID_ITargetFrame2
  48. #include <msident.h>
  49. //
  50. // Taken from windowsx.h -- can't include windowsx.h since ATL won't compile
  51. //
  52. #define GET_X_LPARAM(lp) ((int)(short)LOWORD(lp))
  53. #define GET_Y_LPARAM(lp) ((int)(short)HIWORD(lp))
  54. // Flavors of refresh taken from mshtml\src\core\include\privcid.h
  55. #define IDM_REFRESH_TOP 6041 // Normal refresh, topmost doc
  56. #define IDM_REFRESH_THIS 6042 // Normal refresh, nearest doc
  57. #define IDM_REFRESH_TOP_FULL 6043 // Full refresh, topmost doc
  58. #define IDM_REFRESH_THIS_FULL 6044 // Full refresh, nearest doc