Counter Strike : Global Offensive Source Code
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.

166 lines
5.0 KiB

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