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.

81 lines
2.4 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. PTOPOLOGY_NODE pTopologyNode;
  53. ULONG ulPinNumber;
  54. LIST_DESTROY_TOPOLOGY_CONNECTION lstTopologyConnection;
  55. DefineSignature(0x20205054); // TP
  56. } TOPOLOGY_PIN, *PTOPOLOGY_PIN;
  57. //---------------------------------------------------------------------------
  58. typedef ListSingleDestroy<TOPOLOGY_PIN> LIST_TOPOLOGY_PIN;
  59. //---------------------------------------------------------------------------
  60. typedef ListData<TOPOLOGY_PIN> LIST_DATA_TOPOLOGY_PIN;
  61. //---------------------------------------------------------------------------
  62. // Globals
  63. //---------------------------------------------------------------------------
  64. //---------------------------------------------------------------------------
  65. // Local prototypes
  66. //---------------------------------------------------------------------------
  67. //---------------------------------------------------------------------------