Source code of Windows XP (NT5)
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.

51 lines
1.4 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Module: vnd.cpp
  4. //
  5. // Description:
  6. //
  7. // Virtual Node Data Class
  8. //
  9. //@@BEGIN_MSINTERNAL
  10. // Development Team:
  11. // Mike McLaughlin
  12. //
  13. // History: Date Author Comment
  14. //
  15. // To Do: Date Author Comment
  16. //
  17. //@@END_MSINTERNAL
  18. //
  19. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  20. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  21. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  22. // PURPOSE.
  23. //
  24. // Copyright (c) 1996-1999 Microsoft Corporation. All Rights Reserved.
  25. //
  26. //---------------------------------------------------------------------------
  27. #include "common.h"
  28. //---------------------------------------------------------------------------
  29. //---------------------------------------------------------------------------
  30. CVirtualNodeData::CVirtualNodeData(
  31. PSTART_NODE_INSTANCE pStartNodeInstance,
  32. PVIRTUAL_SOURCE_DATA pVirtualSourceData
  33. )
  34. {
  35. pStartNodeInstance->pVirtualNodeData = this;
  36. this->pVirtualSourceData = pVirtualSourceData;
  37. this->pStartNodeInstance = pStartNodeInstance;
  38. AddList(&pVirtualSourceData->lstVirtualNodeData);
  39. }
  40. CVirtualNodeData::~CVirtualNodeData(
  41. )
  42. {
  43. Assert(this);
  44. RemoveList();
  45. ASSERT(pStartNodeInstance->pVirtualNodeData == this);
  46. pStartNodeInstance->pVirtualNodeData = NULL;
  47. }