home *** CD-ROM | disk | FTP | other *** search
/ Microsoft DirectX SDK 6.1 / Dx6_1_Gold.iso / dxf / include / dmksctrl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-12-06  |  5.1 KB  |  160 lines

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