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.

163 lines
5.1 KiB

  1. /************************************************************************
  2. * *
  3. * dmksctrl.h -- Definition of IKsControl *
  4. * *
  5. * Copyright (c) 1998, Microsoft Corp. All rights reserved. *
  6. * *
  7. * *
  8. * This header file contains the definition of IKsControl, which *
  9. * duplicates definitions from ks.h and ksproxy.h. Your code should *
  10. * include ks.h and ksproxy.h directly if you have them (they are *
  11. * provided in the Windows 98 DDK and will be in the Windows NT 5 *
  12. * SDK). *
  13. * *
  14. ************************************************************************/
  15. #ifndef _DMKSCTRL_
  16. #define _DMKSCTRL_
  17. #pragma warning(push)
  18. #pragma warning(disable:4201) /* Disable warnings on anonymous unions */
  19. #include <pshpack8.h>
  20. #include <objbase.h>
  21. #if !defined(_NTRTL_)
  22. #ifndef DEFINE_GUIDEX
  23. #define DEFINE_GUIDEX(name) EXTERN_C const CDECL GUID name
  24. #endif /* !defined(DEFINE_GUIDEX) */
  25. #ifndef STATICGUIDOF
  26. #define STATICGUIDOF(guid) STATIC_##guid
  27. #endif /* !defined(STATICGUIDOF) */
  28. #endif /* !defined(_NTRTL_) */
  29. #ifndef STATIC_IID_IKsControl
  30. #define STATIC_IID_IKsControl\
  31. 0x28F54685L, 0x06FD, 0x11D2, 0xB2, 0x7A, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96
  32. #endif /* STATIC_IID_IKsControl */
  33. /*
  34. * Warning: This will prevent the rest of ks.h from being pulled in if ks.h is
  35. * included after dmksctrl.h. Make sure you do not include both headers in
  36. * the same source file.
  37. */
  38. #ifndef _KS_
  39. #define _KS_
  40. #if (defined(_MSC_EXTENSIONS) || defined(__cplusplus)) && !defined(CINTERFACE)
  41. typedef struct {
  42. union {
  43. struct {
  44. GUID Set;
  45. ULONG Id;
  46. ULONG Flags;
  47. };
  48. LONGLONG Alignment;
  49. };
  50. } KSIDENTIFIER, *PKSIDENTIFIER;
  51. #else
  52. typedef struct {
  53. union {
  54. struct {
  55. GUID Set;
  56. ULONG Id;
  57. ULONG Flags;
  58. } Data;
  59. LONGLONG Alignment;
  60. };
  61. } KSIDENTIFIER, *PKSIDENTIFIER;
  62. #endif
  63. typedef KSIDENTIFIER KSPROPERTY, *PKSPROPERTY, KSMETHOD, *PKSMETHOD, KSEVENT, *PKSEVENT;
  64. #define KSMETHOD_TYPE_NONE 0x00000000
  65. #define KSMETHOD_TYPE_READ 0x00000001
  66. #define KSMETHOD_TYPE_WRITE 0x00000002
  67. #define KSMETHOD_TYPE_MODIFY 0x00000003
  68. #define KSMETHOD_TYPE_SOURCE 0x00000004
  69. #define KSMETHOD_TYPE_SEND 0x00000001
  70. #define KSMETHOD_TYPE_SETSUPPORT 0x00000100
  71. #define KSMETHOD_TYPE_BASICSUPPORT 0x00000200
  72. #define KSPROPERTY_TYPE_GET 0x00000001
  73. #define KSPROPERTY_TYPE_SET 0x00000002
  74. #define KSPROPERTY_TYPE_SETSUPPORT 0x00000100
  75. #define KSPROPERTY_TYPE_BASICSUPPORT 0x00000200
  76. #define KSPROPERTY_TYPE_RELATIONS 0x00000400
  77. #define KSPROPERTY_TYPE_SERIALIZESET 0x00000800
  78. #define KSPROPERTY_TYPE_UNSERIALIZESET 0x00001000
  79. #define KSPROPERTY_TYPE_SERIALIZERAW 0x00002000
  80. #define KSPROPERTY_TYPE_UNSERIALIZERAW 0x00004000
  81. #define KSPROPERTY_TYPE_SERIALIZESIZE 0x00008000
  82. #define KSPROPERTY_TYPE_DEFAULTVALUES 0x00010000
  83. #define KSPROPERTY_TYPE_TOPOLOGY 0x10000000
  84. #endif /* _KS_ */
  85. #ifndef _IKsControl_
  86. #define _IKsControl_
  87. #ifdef DECLARE_INTERFACE_
  88. #undef INTERFACE
  89. #define INTERFACE IKsControl
  90. DECLARE_INTERFACE_(IKsControl, IUnknown)
  91. {
  92. /* IUnknown */
  93. STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
  94. STDMETHOD_(ULONG,AddRef) (THIS) PURE;
  95. STDMETHOD_(ULONG,Release) (THIS) PURE;
  96. /*IKsControl*/
  97. STDMETHOD(KsProperty)(
  98. THIS_
  99. IN PKSPROPERTY Property,
  100. IN ULONG PropertyLength,
  101. IN OUT LPVOID PropertyData,
  102. IN ULONG DataLength,
  103. OUT ULONG* BytesReturned
  104. ) PURE;
  105. STDMETHOD(KsMethod)(
  106. THIS_
  107. IN PKSMETHOD Method,
  108. IN ULONG MethodLength,
  109. IN OUT LPVOID MethodData,
  110. IN ULONG DataLength,
  111. OUT ULONG* BytesReturned
  112. ) PURE;
  113. STDMETHOD(KsEvent)(
  114. THIS_
  115. IN PKSEVENT Event OPTIONAL,
  116. IN ULONG EventLength,
  117. IN OUT LPVOID EventData,
  118. IN ULONG DataLength,
  119. OUT ULONG* BytesReturned
  120. ) PURE;
  121. };
  122. #endif /* DECLARE_INTERFACE_ */
  123. #endif /* _IKsControl_ */
  124. #include <poppack.h>
  125. DEFINE_GUID(IID_IKsControl, 0x28F54685, 0x06FD, 0x11D2, 0xB2, 0x7A, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96);
  126. /* These formats are in ksmedia.h
  127. */
  128. #ifndef _KSMEDIA_
  129. DEFINE_GUID(KSDATAFORMAT_SUBTYPE_MIDI, 0x1D262760L, 0xE957, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00);
  130. DEFINE_GUID(KSDATAFORMAT_SUBTYPE_DIRECTMUSIC, 0x1a82f8bc, 0x3f8b, 0x11d2, 0xb7, 0x74, 0x00, 0x60, 0x08, 0x33, 0x16, 0xc1);
  131. #endif
  132. #pragma warning(pop)
  133. #endif /* _DMKSCTRL */