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.

42 lines
1.4 KiB

  1. // --------------------------------------------------------------------------
  2. // Module Name: ContextActivation.h
  3. //
  4. // Copyright (c) 2000, Microsoft Corporation
  5. //
  6. // Class to implement creating, destroy and scoping a fusion activation
  7. // context.
  8. //
  9. // History: 2000-10-09 vtan created
  10. // 2000-11-04 vtan copied from winlogon
  11. // --------------------------------------------------------------------------
  12. #ifndef _ContextActivation_
  13. #define _ContextActivation_
  14. // --------------------------------------------------------------------------
  15. // CContextActivation
  16. //
  17. // Purpose: A class that handles activation context management. The
  18. // static functions managing context creation and destruction.
  19. // The member function manage context activation and
  20. // deactivation.
  21. //
  22. // History: 2000-10-09 vtan created
  23. // --------------------------------------------------------------------------
  24. class CContextActivation
  25. {
  26. public:
  27. CContextActivation (void);
  28. ~CContextActivation (void);
  29. static void Create (const TCHAR *pszPath);
  30. static void Destroy (void);
  31. static bool HasContext (void);
  32. private:
  33. static HANDLE s_hActCtx;
  34. ULONG ulCookie;
  35. };
  36. #endif /* _ContextActivation_ */