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.

55 lines
1.2 KiB

  1. /*++
  2. Copyright (C) 2000-2001 Microsoft Corporation
  3. Module Name:
  4. Abstract:
  5. History:
  6. --*/
  7. //***************************************************************************
  8. //
  9. // DYNASTY.H
  10. //
  11. // raymcc 24-Apr-00 Created
  12. //
  13. //***************************************************************************
  14. #ifndef _DYNASTY_H_
  15. #define _DYNASTY_H_
  16. class CDynasty
  17. {
  18. private:
  19. CDynasty();
  20. CDynasty(IWbemClassObject* pClassObj);
  21. public:
  22. LPWSTR m_wszClassName;
  23. IWbemClassObject* m_pClassObj; // AddRef'ed, Released
  24. CFlexArray m_Children; // Child classes
  25. LPWSTR m_wszKeyScope;
  26. BOOL m_bKeyed;
  27. BOOL m_bDynamic;
  28. BOOL m_bAbstract;
  29. BOOL m_bAmendment;
  30. ~CDynasty();
  31. BOOL IsKeyed() {return m_bKeyed;}
  32. BOOL IsDynamic() {return m_bDynamic;}
  33. BOOL IsAbstract() {return m_bAbstract;}
  34. BOOL IsAmendment() {return m_bAbstract;}
  35. LPCWSTR GetKeyScope() { return m_wszKeyScope; }
  36. void AddChild(CDynasty* pChild);
  37. void SetKeyScope(LPCWSTR wszKeyScope);
  38. static CDynasty * Create(IWbemClassObject * pObj);
  39. };
  40. #endif
  41.