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.

66 lines
1.8 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1999
  6. //
  7. // File: stdafx.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // stdafx.h : include file for standard system include files,
  11. // or project specific include files that are used frequently, but
  12. // are changed infrequently
  13. //
  14. #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
  15. // Include the template class(s)
  16. #include <afxtempl.h>
  17. #include <afxwin.h> // MFC core and standard components
  18. #include <afxext.h> // MFC extensions
  19. #ifndef _AFX_NO_OLE_SUPPORT
  20. #include <afxole.h> // MFC OLE classes
  21. #include <afxodlgs.h> // MFC OLE dialog classes
  22. #include <afxdisp.h> // MFC OLE automation classes
  23. #endif // _AFX_NO_OLE_SUPPORT
  24. #ifndef _AFX_NO_DB_SUPPORT
  25. #include <afxdb.h> // MFC ODBC database classes
  26. #endif // _AFX_NO_DB_SUPPORT
  27. #ifndef _AFX_NO_DAO_SUPPORT
  28. #include <afxdao.h> // MFC DAO database classes
  29. #endif // _AFX_NO_DAO_SUPPORT
  30. #ifndef _AFX_NO_AFXCMN_SUPPORT
  31. #include <afxcmn.h> // MFC support for Windows Common Controls
  32. #endif // _AFX_NO_AFXCMN_SUPPORT
  33. #include <atlbase.h>
  34. // Define local message for notification
  35. #ifndef _WM_READERSTATUSCHANGE
  36. #define WM_READERSTATUSCHANGE (WM_USER+1)
  37. #endif
  38. #ifdef ISOLATION_AWARE_ENABLED
  39. #include <shfusion.h>
  40. class CThemeContextActivator
  41. {
  42. public:
  43. CThemeContextActivator() : m_ulActivationCookie(0)
  44. { SHActivateContext (&m_ulActivationCookie); }
  45. ~CThemeContextActivator()
  46. { SHDeactivateContext (m_ulActivationCookie); }
  47. private:
  48. ULONG_PTR m_ulActivationCookie;
  49. };
  50. #endif