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.

121 lines
3.0 KiB

  1. /**INC+**********************************************************************/
  2. /* Header: stdafx.h */
  3. /* */
  4. /* Purpose : Include file for standard system include files, or project */
  5. /* specific include files that are used frequently, but are */
  6. /* changed infrequently */
  7. /* */
  8. /* Copyright(C) Microsoft Corporation 1999 */
  9. /* */
  10. /****************************************************************************/
  11. #if !defined(_STDAFX_H)
  12. #define _STDAFX_H
  13. //These are necessary to disable warnings in the ATL headers
  14. //see <atlbase.h>
  15. #if _MSC_VER >= 1000
  16. #pragma once
  17. #endif // _MSC_VER >= 1000
  18. #ifdef OS_WINCE
  19. //CE doesn't support StretchDiBits
  20. #undef SMART_SIZING
  21. #endif
  22. #define SIZEOF_WCHARBUFFER( x ) (sizeof( x ) / sizeof( WCHAR ))
  23. #define SIZEOF_TCHARBUFFER( x ) (sizeof( x ) / sizeof( TCHAR ))
  24. #define BEGIN_EXTERN_C extern "C" {
  25. #define END_EXTERN_C }
  26. #define VB_TRUE -1
  27. #define VB_FALSE 0
  28. #include <windows.h>
  29. //
  30. // BETA2
  31. // Timebomb expires on Jan 1, 2002
  32. //
  33. #define ECP_TIMEBOMB_YEAR 2002
  34. #define ECP_TIMEBOMB_MONTH 1
  35. #define ECP_TIMEBOMB_DAY 15
  36. #ifdef UNIWRAP
  37. //Certain ATL headers have conflicts with wrapped
  38. //functions so wrap those after we've been through ATL
  39. #define DONOT_INCLUDE_SECONDPHASE_WRAPS
  40. #include "uwrap.h"
  41. #endif
  42. #ifdef _DEBUG
  43. //
  44. // WARNING THIS MAKES THE BINARY GROW BY LIKE 60K
  45. //IT IS ALSO CURRENLTY BROKEN ON IA64 (ATL bugs)
  46. //
  47. //#define _ATL_DEBUG_INTERFACES
  48. //#define ATL_TRACE_LEVEL 4
  49. #endif
  50. #if defined (OS_WINCE) && (_WIN32_WCE <= 300)
  51. #define RDW_INVALIDATE 0x0001
  52. #define RDW_ERASE 0x0004
  53. #define RDW_UPDATENOW 0x0100
  54. #endif
  55. #include <atlbase.h>
  56. #include "tsaxmod.h"
  57. extern CMsTscAxModule _Module;
  58. #include <atlcom.h>
  59. #include <atlctl.h>
  60. #include <strsafe.h>
  61. #ifdef UNIWRAP
  62. //Second phase wrap functions
  63. //Must be included AFTER ATL headers
  64. #include "uwrap2.h"
  65. #endif
  66. #include <adcgbase.h>
  67. #define TRC_DBG(string)
  68. #define TRC_NRM(string)
  69. #define TRC_ALT(string)
  70. #define TRC_ERR(string)
  71. #define TRC_ASSERT(condition, string)
  72. #define TRC_ABORT(string)
  73. #define TRC_SYSTEM_ERROR(string)
  74. #define TRC_FN(string)
  75. #define TRC_ENTRY
  76. #define TRC_EXIT
  77. #define TRC_DATA_DBG
  78. #include "autil.h"
  79. #include "wui.h"
  80. #undef TRC_DBG
  81. #undef TRC_NRM
  82. #undef TRC_ALT
  83. #undef TRC_ERR
  84. #undef TRC_ASSERT
  85. #undef TRC_ABORT
  86. #undef TRC_SYSTEM_ERROR
  87. #undef TRC_FN
  88. #undef TRC_ENTRY
  89. #undef TRC_EXIT
  90. #undef TRC_DATA_DBG
  91. #define SIZECHAR(x) sizeof(x)/sizeof(TCHAR)
  92. #ifdef ECP_TIMEBOMB
  93. BOOL CheckTimeBomb();
  94. #endif
  95. #include "axresrc.h"
  96. #include "autreg.h"
  97. #endif // !defined(_STDAFX_H)