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.

89 lines
2.4 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Module: vnd.h
  4. //
  5. // Description: Virtual Node Data 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. #define MAX_NUM_CHANNELS 24
  29. //---------------------------------------------------------------------------
  30. // Classes
  31. //---------------------------------------------------------------------------
  32. typedef class CVirtualNodeData : public CListDoubleItem
  33. {
  34. public:
  35. CVirtualNodeData(
  36. PSTART_NODE_INSTANCE pStartNodeInstance,
  37. PVIRTUAL_SOURCE_DATA pVirtualSourceData
  38. );
  39. ~CVirtualNodeData();
  40. ENUMFUNC Destroy()
  41. {
  42. Assert(this);
  43. delete this;
  44. return(STATUS_CONTINUE);
  45. };
  46. #ifdef DEBUG
  47. ENUMFUNC Dump()
  48. {
  49. int i;
  50. dprintf(
  51. "VND: %08x VSD %08x SNI %08x FO %08x N# %08x\n",
  52. this,
  53. pVirtualSourceData,
  54. pStartNodeInstance,
  55. pFileObject,
  56. NodeId);
  57. dprintf(" Min %d Max %d Steps %d lLevel: ",
  58. MinimumValue,
  59. MaximumValue,
  60. Steps);
  61. for(i = 0; i < MAX_NUM_CHANNELS; i++) {
  62. dprintf("%d ", lLevel[i]);
  63. }
  64. dprintf("\n");
  65. return(STATUS_CONTINUE);
  66. };
  67. #endif
  68. PVIRTUAL_SOURCE_DATA pVirtualSourceData;
  69. PSTART_NODE_INSTANCE pStartNodeInstance;
  70. PFILE_OBJECT pFileObject;
  71. ULONG NodeId;
  72. LONG MinimumValue; // Range to convert to
  73. LONG MaximumValue; //
  74. LONG Steps; //
  75. LONG lLevel[MAX_NUM_CHANNELS]; // Local volume
  76. DefineSignature(0x20444e56); // VND
  77. } VIRTUAL_NODE_DATA, *PVIRTUAL_NODE_DATA;
  78. //---------------------------------------------------------------------------
  79. typedef ListDoubleDestroy<VIRTUAL_NODE_DATA> LIST_VIRTUAL_NODE_DATA;
  80. //---------------------------------------------------------------------------