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.

40 lines
990 B

  1. // stdafx.h : include file for standard system include files,
  2. // or project specific include files that are used frequently, but
  3. // are changed infrequently
  4. //
  5. #if !defined(SLBCSP_STDAFX_H)
  6. #define SLBCSP_STDAFX_H
  7. #include "NoWarning.h"
  8. // Avoid the compiler's redefine warning message when afxv_w32.h is included
  9. #if defined(_WIN32_WINDOWS)
  10. #undef _WIN32_WINDOWS
  11. #endif
  12. #include <afxwin.h> // MFC core and standard components
  13. #include <afxext.h> // MFC extensions
  14. // Include the template class(s)
  15. #include <afxtempl.h>
  16. #include <afxmt.h>
  17. #ifdef ISOLATION_AWARE_ENABLED
  18. #include <shfusion.h>
  19. class CThemeContextActivator
  20. {
  21. public:
  22. CThemeContextActivator() : m_ulActivationCookie(0)
  23. { SHActivateContext (&m_ulActivationCookie); }
  24. ~CThemeContextActivator()
  25. { SHDeactivateContext (m_ulActivationCookie); }
  26. private:
  27. ULONG_PTR m_ulActivationCookie;
  28. };
  29. #endif
  30. #endif // !defined(SLBCSP_STDAFX_H)