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.

43 lines
1.0 KiB

  1. // stdafx.h : source file that includes just the standard includes
  2. #ifndef _stdafx_h_
  3. #define _stdafx_h_
  4. // Windows Header Files:
  5. #include <windows.h>
  6. #ifndef _WIN32_WINNT
  7. #define _WIN32_WINNT 0x0400
  8. #endif
  9. #include "shellapi.h" //for ExtractIcon
  10. #include "shlwapi.h"
  11. #include "commdlg.h"
  12. #include "ddeml.h"
  13. #include "winspool.h"
  14. #include "wraputl.h"
  15. #ifdef DBG
  16. //Be careful to use ANSI only APIs for ASSERT
  17. //It would be silly to recursively assert in a wrapped function
  18. //E.g if we used the Wrapped MessageBox and that had an assert...
  19. #define ASSERT( expr ) \
  20. if( !( expr ) ) \
  21. { \
  22. char tchAssertErr[ 80 ]; \
  23. wsprintfA( tchAssertErr , \
  24. "UNIWRAP ASSERT in expression ( %s )\nFile - %s\nLine - %d\n Debug?", \
  25. #expr , (__FILE__) , __LINE__ ); \
  26. if( MessageBoxA( NULL , tchAssertErr , "ASSERTION FAILURE" , \
  27. MB_YESNO | MB_ICONERROR ) == IDYES ) \
  28. {\
  29. DebugBreak( );\
  30. }\
  31. }
  32. #else
  33. #define ASSERT(x) ((void)0)
  34. #endif
  35. #endif //_stdafx_h_