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.

46 lines
1.5 KiB

  1. // stdafx.h : include file for standard system include files,
  2. // or project specific include files that are used frequently,
  3. // but are changed infrequently
  4. #if !defined(AFX_STDAFX_H__A8F3A149_99E9_11D2_8C7E_00C04F949D33__INCLUDED_)
  5. #define AFX_STDAFX_H__A8F3A149_99E9_11D2_8C7E_00C04F949D33__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #define STRICT
  10. #ifndef _WIN32_WINNT
  11. #define _WIN32_WINNT 0x0400
  12. #endif
  13. //#define _ATL_FREE_THREADED
  14. #define _ATL_APARTMENT_THREADED
  15. #include <atlbase.h>
  16. //You may derive a class from CComModule and use it if you want to override
  17. //something, but do not change the name of _Module
  18. extern CComModule _Module;
  19. #include <atlcom.h>
  20. #include <atlctl.h>
  21. ///////////////////////////////////////////////////////////////////////////////
  22. // Threading model of the Local Troubleshooter
  23. #ifdef LOCAL_TROUBLESHOOTER
  24. #ifdef _ATL_FREE_THREADED
  25. #define RUNNING_FREE_THREADED() true
  26. #define RUNNING_APARTMENT_THREADED() false
  27. #endif
  28. #ifdef _ATL_APARTMENT_THREADED
  29. #define RUNNING_FREE_THREADED() false
  30. #define RUNNING_APARTMENT_THREADED() true
  31. #endif
  32. #else
  33. #define RUNNING_FREE_THREADED() false
  34. #define RUNNING_APARTMENT_THREADED() false
  35. #endif
  36. ///////////////////////////////////////////////////////////////////////////////
  37. //{{AFX_INSERT_LOCATION}}
  38. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  39. #endif // !defined(AFX_STDAFX_H__A8F3A149_99E9_11D2_8C7E_00C04F949D33__INCLUDED)