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.

66 lines
1.8 KiB

  1. /*
  2. * Common include for all stdafx.h project headers
  3. * This includes all common external headers that will be precompiled
  4. * All external headers must be available via the include path
  5. */
  6. #ifndef DUI_COMMONSTDAFX_H_INCLUDED
  7. #define DUI_COMMONSTDAFX_H_INCLUDED
  8. #pragma once
  9. // Engine warning pragmas
  10. #pragma warning (disable:4710) // W4: Compiler decided not to inline function
  11. #pragma warning (disable:4201) // W4: Nameless struct/union may not be compiler portable
  12. // Exclude rarely-used stuff from Windows headers
  13. #if !defined(WIN32_LEAN_AND_MEAN)
  14. #define WIN32_LEAN_AND_MEAN
  15. #endif
  16. // TODO: Remove this when updated headers are available
  17. #if !defined(_WIN32_WINNT)
  18. #define _WIN32_WINNT 0x0500
  19. #endif
  20. // Windows Header Files
  21. #ifndef WINVER
  22. #define WINVER 0x0500
  23. #endif
  24. #include <windows.h> // Windows
  25. #include <windowsx.h> // User macros
  26. // COM Header Files
  27. #include <objbase.h> // CoCreateInstance, IUnknown
  28. // Related services
  29. #ifdef GADGET_ENABLE_GDIPLUS
  30. #pragma warning(push, 3)
  31. #include <GdiPlus.h> // GDI+
  32. #pragma warning(pop)
  33. #endif // GADGET_ENABLE_GDIPLUS
  34. // C RunTime Header Files
  35. #include <stdlib.h> // Standard library
  36. #include <malloc.h> // Memory allocation
  37. #include <wchar.h> // Character routines
  38. #include <process.h> // Multi-threaded routines
  39. #define STRSAFE_NO_DEPRECATE
  40. #include <strsafe.h> // Safe string library (inline)
  41. // Themes support
  42. #include <uxtheme.h>
  43. // DirectUser headers
  44. #define GADGET_ENABLE_TRANSITIONS
  45. #define GADGET_ENABLE_CONTROLS
  46. #include <DUser.h> // DirectUser
  47. #include <DUserCtrl.h>
  48. #ifdef GADGET_ENABLE_GDIPLUS
  49. #include <RenderUtil.h>
  50. #endif
  51. #endif // DUI_COMMONSTDAFX_H_INCLUDED