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.

47 lines
1.0 KiB

  1. #ifndef _INSTOBJ_H_
  2. #define _INSTOBJ_H_
  3. // Gives the count of elements in an array
  4. //
  5. #ifndef CElems
  6. #define CElems(_rg) (sizeof(_rg)/sizeof(_rg[0]))
  7. #endif // !CElems
  8. // ========================================================================
  9. //
  10. // CLASS CInstData
  11. //
  12. // Instance data for a single DAV instance (vserver x vroot combination).
  13. //
  14. class CInstData : public CMTRefCounted
  15. {
  16. // Data items describing this instance.
  17. //
  18. auto_heap_ptr<WCHAR> m_wszVRoot;
  19. LONG m_lServerID;
  20. auto_ptr<CChildVRCache> m_pChildVRootCache;
  21. // NOT IMPLEMENTED
  22. //
  23. CInstData& operator=( const CInstData& );
  24. CInstData( const CInstData& );
  25. public:
  26. CInstData( LPCWSTR pwszName );
  27. // ACCESSORS
  28. //
  29. // NOTE: These accessors do NOT give the caller ownership of the
  30. // data object. DO NOT put the returned objects into auto_ptrs
  31. // and DO NOT release/delete them yourself!
  32. //
  33. LPCWSTR GetNameW() { return m_wszVRoot; }
  34. LONG GetServerId() { return m_lServerID; }
  35. };
  36. #endif // _INSTOBJ_H_