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.

83 lines
2.3 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Module: tp.h
  4. //
  5. // Description: Topology Pin Class
  6. //
  7. //
  8. //@@BEGIN_MSINTERNAL
  9. // Development Team:
  10. // Mike McLaughlin
  11. //
  12. // History: Date Author Comment
  13. //
  14. //@@END_MSINTERNAL
  15. //---------------------------------------------------------------------------
  16. //
  17. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  18. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  19. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  20. // PURPOSE.
  21. //
  22. // Copyright (c) 1996-1999 Microsoft Corporation. All Rights Reserved.
  23. //
  24. //---------------------------------------------------------------------------
  25. //---------------------------------------------------------------------------
  26. // Constants and Macros
  27. //---------------------------------------------------------------------------
  28. //---------------------------------------------------------------------------
  29. // Classes
  30. //---------------------------------------------------------------------------
  31. typedef class CTopologyPin : public CListSingleItem
  32. {
  33. public:
  34. CTopologyPin(
  35. ULONG ulPinNumber,
  36. PTOPOLOGY_NODE pTopologyNode
  37. );
  38. ~CTopologyPin();
  39. static NTSTATUS
  40. Create(
  41. PTOPOLOGY_PIN *ppTopologyPin,
  42. ULONG ulPinNumber,
  43. PTOPOLOGY_NODE pTopologyNode
  44. );
  45. ENUMFUNC
  46. Destroy()
  47. {
  48. Assert(this);
  49. delete this;
  50. return(STATUS_CONTINUE);
  51. };
  52. #ifdef DEBUG
  53. ENUMFUNC Dump();
  54. #endif
  55. PTOPOLOGY_NODE pTopologyNode;
  56. ULONG ulPinNumber;
  57. LIST_DESTROY_TOPOLOGY_CONNECTION lstTopologyConnection;
  58. DefineSignature(0x20205054); // TP
  59. } TOPOLOGY_PIN, *PTOPOLOGY_PIN;
  60. //---------------------------------------------------------------------------
  61. typedef ListSingleDestroy<TOPOLOGY_PIN> LIST_TOPOLOGY_PIN;
  62. //---------------------------------------------------------------------------
  63. typedef ListData<TOPOLOGY_PIN> LIST_DATA_TOPOLOGY_PIN;
  64. //---------------------------------------------------------------------------
  65. // Globals
  66. //---------------------------------------------------------------------------
  67. //---------------------------------------------------------------------------
  68. // Local prototypes
  69. //---------------------------------------------------------------------------
  70. //---------------------------------------------------------------------------