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.

54 lines
1.1 KiB

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