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.

67 lines
1.4 KiB

  1. #ifndef __DATL_H__
  2. #define __DATL_H__
  3. #ifndef DUMMYUNIONNAME
  4. #define DUMMYUNIONNAME
  5. #endif
  6. #include "warnings.h"
  7. #include <windows.h>
  8. #include <atlbase.h>
  9. extern CComModule _Module;
  10. #include <atlcom.h>
  11. #include <stdio.h>
  12. #include <malloc.h>
  13. #if _MSC_VER >= 1200
  14. # pragma warning(push)
  15. #endif
  16. #include <iostream>
  17. #include <string>
  18. #include <map>
  19. #include <vector>
  20. #include <algorithm>
  21. #include <exception>
  22. #if _MSC_VER >= 1200
  23. # pragma warning(pop)
  24. #endif
  25. // ARRAYSIZE
  26. //
  27. // Returns the number of elements in an array
  28. #ifndef ARRAYSIZE
  29. #define ARRAYSIZE(_A) (sizeof(_A) / sizeof(_A[0]))
  30. #endif
  31. // THROW_IF_FAILS
  32. //
  33. // Throws an exception if the HRESULT-returning function fails
  34. #define THROW_IF_FAILS(x) { HRESULT _hr = x; if (FAILED(_hr)) throw dexception(_hr); }
  35. // DECLARE_XXXXX_HANDLER
  36. //
  37. // Message declaration macros to make it easier to declare
  38. // handlers for ATL window classes
  39. #define DECLARE_WM_HANDLER( handler ) LRESULT handler( UINT, WPARAM, LPARAM, BOOL& )
  40. #define DECLARE_CM_HANDLER( handler ) LRESULT handler( WORD, WORD, HWND, BOOL& ) ;
  41. #define DECLARE_NM_HANDLER( handler ) LRESULT handler( int, LPNMHDR, BOOL& );
  42. #ifdef INCLUDE_SHTL_SOURCE
  43. #define __DATL_INLINE inline
  44. #include "cidl.cpp"
  45. #include "cshalloc.cpp"
  46. #include "shtl.cpp"
  47. #include "simreg.cpp"
  48. #include "tpath.cpp"
  49. #include "tstring.cpp"
  50. #include "autoptr.cpp"
  51. #else
  52. #define __DATL_INLINE
  53. #endif
  54. #endif // __DATL_H__