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.

52 lines
1.2 KiB

  1. //-----------------------------------------------------------------------------
  2. //
  3. // File: context.h
  4. // Copyright (C) 1994-1997 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. //
  8. //
  9. //-----------------------------------------------------------------------------
  10. #ifndef ESPUTIL_CONTEXT_H
  11. #define ESPUTIL_CONTEXT_H
  12. //
  13. // This class should NOT be used as a base class.
  14. //
  15. class LTAPIENTRY CContext
  16. {
  17. public:
  18. CContext();
  19. CContext(const CContext &);
  20. CContext(const CLString &);
  21. CContext(HINSTANCE, UINT uiStringId);
  22. CContext(const CLString &, const CLocation &);
  23. CContext(HINSTANCE, UINT uiStringId, const CLocation &);
  24. CContext(const CLString &, const DBID &, ObjectType, View,
  25. TabId = NullTabId, Component = cmpNone);
  26. CContext(HINSTANCE, UINT uiStringID, const DBID &, ObjectType, View,
  27. TabId = NullTabId, Component = cmpNone);
  28. void AssertValid(void) const;
  29. const CContext &operator=(const CContext &);
  30. const CLString &GetContext(void) const;
  31. const CLocation &GetLocation(void) const;
  32. BOOL operator==(const CContext &);
  33. private:
  34. CLString m_strContext;
  35. CLocation m_loc;
  36. };
  37. #if !defined(_DEBUG) || defined(IMPLEMENT)
  38. #include "context.inl"
  39. #endif
  40. #endif