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.

167 lines
5.1 KiB

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