Source code of Windows XP (NT5)
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.

82 lines
2.4 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1999.
  5. //
  6. // File: stdafx.h : include file for standard system include files,
  7. // or project specific include files that are used
  8. // frequently, but are changed infrequently
  9. //
  10. // History: 19-Feb-2000 Davepl
  11. //
  12. //--------------------------------------------------------------------------
  13. #if !defined(AFX_STDAFX_H__9FA15269_83BE_4D90_98EB_2B3BC53694DD__INCLUDED_)
  14. #define AFX_STDAFX_H__9FA15269_83BE_4D90_98EB_2B3BC53694DD__INCLUDED_
  15. #if _MSC_VER > 1000
  16. #pragma once
  17. #endif // _MSC_VER > 1000
  18. #define STRICT
  19. #ifndef _WIN32_WINNT
  20. #define _WIN32_WINNT 0x0400
  21. #endif
  22. #define _ATL_APARTMENT_THREADED
  23. #include <atlbase.h>
  24. //You may derive a class from CComModule and use it if you want to override
  25. //something, but do not change the name of _Module
  26. extern CComModule _Module;
  27. #include <atlcom.h>
  28. #define INCLUDE_SHTL_SOURCE 1
  29. #define USE_SHELL_AUTOPTR 1
  30. #define _LOCALE_ // isdigit is redefined, I don't know why
  31. #include <winuser.h>
  32. #include <ccstock.h>
  33. #include <shtl.h>
  34. #include <autoptr.h>
  35. #include <shlwapip.h>
  36. #include <debug.h>
  37. #include <shlobjp.h>
  38. #undef max // stl doesn't want the old C version of this
  39. #include <map>
  40. #include <limits>
  41. //
  42. // These operators allow me to mix int64 types with the old LARGE_INTEGER
  43. // unions without messing with the QuadPart members in the code.
  44. //
  45. inline ULONGLONG operator + (const ULARGE_INTEGER i, const ULARGE_INTEGER j)
  46. {
  47. return i.QuadPart + j.QuadPart;
  48. }
  49. inline ULONGLONG operator + (const ULONGLONG i, const ULARGE_INTEGER j)
  50. {
  51. return i + j.QuadPart;
  52. }
  53. //inline ULONGLONG operator = (const ULONGLONG i, const ULARGE_INTEGER j)
  54. //{
  55. // return i = j.QuadPart;
  56. //}
  57. #define TF_DLGDISPLAY 0x00010000 // messages related to display of the confirmation dialog
  58. #define TF_DLGSTORAGE 0x00020000 // messages related to using the legacy IStorage to get dialog info
  59. #define TF_DLGISF 0x00040000 // messages related to using IShellFolder to get dialog info
  60. #define RECT_WIDTH(rc) ((rc).right - (rc).left)
  61. #define RECT_HEIGHT(rc) ((rc).bottom - (rc).top)
  62. //{{AFX_INSERT_LOCATION}}
  63. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  64. #endif // !defined(AFX_STDAFX_H__9FA15269_83BE_4D90_98EB_2B3BC53694DD__INCLUDED)