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
941 B

  1. /*++
  2. Copyright (C) 1996-2001 Microsoft Corporation
  3. Module Name:
  4. ProvTree.cpp
  5. Abstract:
  6. History:
  7. --*/
  8. #include <precomp.h>
  9. #include <typeinfo.h>
  10. #include <provimex.h>
  11. #include <provexpt.h>
  12. #include <provtempl.h>
  13. #include <provmt.h>
  14. #include <typeinfo.h>
  15. #include <process.h>
  16. #include <stdio.h>
  17. #include <provcont.h>
  18. #include <provevt.h>
  19. #include <provlog.h>
  20. #include <provtree.h>
  21. WmiTreeNode *WmiTreeNode :: Copy ()
  22. {
  23. TypeId_TreeNode t_Type = m_Type ;
  24. void *t_DataCopy = m_Data ;
  25. WmiTreeNode *t_Parent = m_Parent ;
  26. WmiTreeNode *t_LeftCopy = m_Left ? m_Left->Copy () : NULL ;
  27. WmiTreeNode *t_RightCopy = m_Right ? m_Right->Copy () : NULL ;
  28. WmiTreeNode *t_Node = new WmiTreeNode ( t_Type , t_DataCopy , t_LeftCopy , t_RightCopy , t_Parent ) ;
  29. return t_Node ;
  30. } ;
  31. WmiTreeNode *WmiTreeNode :: CopyNode ()
  32. {
  33. WmiTreeNode *t_Node = new WmiTreeNode ( this ) ;
  34. return t_Node ;
  35. } ;