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.

134 lines
4.4 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation.
  3. Module Name:
  4. SplMedia.h
  5. Abstract:
  6. Definitions for Sample Property, Method, and Events
  7. for the Generic Broadcast Driver Architecture Sample
  8. --*/
  9. #if !defined(_KSMEDIA_)
  10. #error KSMEDIA.H must be included before BDAMEDIA.H
  11. #endif // !defined(_KSMEDIA_)
  12. #if !defined(_BDATYPES_)
  13. #error BDATYPES.H must be included before BDAMEDIA.H
  14. #endif // !defined(_BDATYPES_)
  15. #if !defined(_BDAMEDIA_)
  16. #define _BDAMEDIA_
  17. #endif // !defined(_BDAMEDIA_)
  18. #if !defined(_SPLMEDIA_)
  19. #define _SPLMEDIA_
  20. #if defined(__cplusplus)
  21. extern "C" {
  22. #endif // defined(__cplusplus)
  23. //===========================================================================
  24. //
  25. // Implementation GUID for BDA Generic Sample Tuner
  26. //
  27. // This will match the implementation GUID in the BDA Generic Sample Capture
  28. //
  29. //===========================================================================
  30. // Define the implementation GUID. This GUID will be the same for all
  31. // drivers that are used to implement a single receiver implemenation.
  32. // In this case there will be a capture driver that must use the same
  33. // implementation GUID to insure that pins are correctly connected.
  34. //
  35. // If the driver set is used by only one implementation, as is the case here,
  36. // we can hard code the implementation GUID in the driver. If more than
  37. // one receiver implementation uses the same driver, then the implementation
  38. // GUID should be written into the registry by the INF that installs a
  39. // particular implementation.
  40. //
  41. // NOTE! DON'T USE THIS GUID FOR YOUR DRIVER!
  42. // Generate a new guid using guidgen.exe
  43. //
  44. // {7036ED35-881D-4c50-ADEC-710ECA227DB3}
  45. //
  46. #define STATIC_KSMEDIUMSETID_MyImplementation \
  47. 0x7036ed35L, 0x881d, 0x4c50, 0xad, 0xec, 0x71, 0x0e, 0xca, 0x22, 0x7d, 0xb3
  48. DEFINE_GUIDSTRUCT("7036ED35-881D-4c50-ADEC-710ECA227DB3", KSMEDIUMSETID_MyImplementation);
  49. #define KSMEDIUMSETID_MyImplementation DEFINE_GUIDNAMED(KSMEDIUMSETID_MyImplementation)
  50. //===========================================================================
  51. //
  52. // KSProperty Set Definitions for BDA Generic Sample
  53. //
  54. //===========================================================================
  55. //------------------------------------------------------------
  56. //
  57. //
  58. // BDA Sample Demodulator Node Extension Properties
  59. //
  60. // NOTE! DO NOT USE THIS GUID IN YOUR DRIVER!
  61. //
  62. // You need to create a unique GUID to prevent plugin CLSID collisions.
  63. // Do not use the following one for BDA Sample Property Set
  64. // {C8417B10-88FC-49d3-88DB-AD33260655D6}
  65. //
  66. #define STATIC_KSPROPSETID_BdaSampleDemodExtensionProperties \
  67. 0xc8417b10, 0x88fc, 0x49d3, 0x88, 0xdb, 0xad, 0x33, 0x26, 0x6, 0x55, 0xd6
  68. DEFINE_GUIDSTRUCT("C8417B10-88FC-49d3-88DB-AD33260655D6", KSPROPSETID_BdaSampleDemodExtensionProperties);
  69. #define KSPROPSETID_BdaSampleDemodExtensionProperties DEFINE_GUIDNAMED(KSPROPSETID_BdaSampleDemodExtensionProperties)
  70. typedef enum {
  71. KSPROPERTY_BDA_SAMPLE_DEMOD_EXTENSION_PROPERTY1 = 0,
  72. KSPROPERTY_BDA_SAMPLE_DEMOD_EXTENSION_PROPERTY2,
  73. KSPROPERTY_BDA_SAMPLE_DEMOD_EXTENSION_PROPERTY3
  74. } KSPROPERTY_BDA_SAMPLE_DEMOD_EXTENSION;
  75. // specify the sizeof the actual property to retrieve here
  76. #define DEFINE_KSPROPERTY_ITEM_BDA_SAMPLE_DEMOD_EXTENSION_PROPERTY1(GetHandler, SetHandler)\
  77. DEFINE_KSPROPERTY_ITEM(\
  78. KSPROPERTY_BDA_SAMPLE_DEMOD_EXTENSION_PROPERTY1,\
  79. (GetHandler),\
  80. sizeof(KSP_NODE),\
  81. sizeof(ULONG),\
  82. (SetHandler),\
  83. NULL, 0, NULL, NULL, 0)
  84. // specify the sizeof the actual property to retrieve here
  85. #define DEFINE_KSPROPERTY_ITEM_BDA_SAMPLE_DEMOD_EXTENSION_PROPERTY2(GetHandler, SetHandler)\
  86. DEFINE_KSPROPERTY_ITEM(\
  87. KSPROPERTY_BDA_SAMPLE_DEMOD_EXTENSION_PROPERTY2,\
  88. (GetHandler),\
  89. sizeof(KSP_NODE),\
  90. sizeof(ULONG),\
  91. (SetHandler),\
  92. NULL, 0, NULL, NULL, 0)
  93. // specify the sizeof the actual property to retrieve here
  94. #define DEFINE_KSPROPERTY_ITEM_BDA_SAMPLE_DEMOD_EXTENSION_PROPERTY3(GetHandler, SetHandler)\
  95. DEFINE_KSPROPERTY_ITEM(\
  96. KSPROPERTY_BDA_SAMPLE_DEMOD_EXTENSION_PROPERTY3,\
  97. (GetHandler),\
  98. sizeof(KSP_NODE),\
  99. sizeof(ULONG),\
  100. (SetHandler),\
  101. NULL, 0, NULL, NULL, 0)
  102. #if defined(__cplusplus)
  103. }
  104. #endif // defined(__cplusplus)
  105. #endif // !defined(_SPLMEDIA_)