ReactOS  0.4.13-dev-249-gcba1a2f
dmksctrl.h
Go to the documentation of this file.
1 
2 
3 ifndef _DMKSCTRL_
4 #define _DMKSCTRL_
5 
6 #if _MSC_VER >= 1200
7 #pragma warning(push)
8 #endif
9 
10 #include <pshpack8.h>
11 #include <objbase.h>
12 
13 DEFINE_GUID(IID_IKsControl, 0x28F54685, 0x06FD, 0x11D2, 0xB2, 0x7A, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96);
14 #ifndef _KSMEDIA_
15 DEFINE_GUID(KSDATAFORMAT_SUBTYPE_MIDI, 0x1D262760, 0xE957, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00);
16 DEFINE_GUID(KSDATAFORMAT_SUBTYPE_DIRECTMUSIC, 0x1A82F8BC, 0x3F8B, 0x11D2, 0xB7, 0x74, 0x00, 0x60, 0x08, 0x33, 0x16, 0xC1);
17 #endif
18 
19 #ifndef STATIC_IID_IKsControl
20  #define STATIC_IID_IKsControl 0x28F54685L, 0x06FD, 0x11D2, 0xB2, 0x7A, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96
21 #endif
22 
23 #if !defined(_NTRTL_)
24  #ifndef STATICGUIDOF
25  #define STATICGUIDOF(guid) STATIC_##guid
26  #endif
27  #ifndef DEFINE_GUIDEX
28  #define DEFINE_GUIDEX(name) EXTERN_C const CDECL GUID name
29  #endif
30 #endif
31 
32 #ifndef _KS_
33 #define _KS_
34 #define KSMETHOD_TYPE_NONE 0x00000000
35 #define KSMETHOD_TYPE_READ 0x00000001
36 #define KSMETHOD_TYPE_WRITE 0x00000002
37 #define KSMETHOD_TYPE_MODIFY 0x00000003
38 #define KSMETHOD_TYPE_SOURCE 0x00000004
39 #define KSMETHOD_TYPE_SEND 0x00000001
40 #define KSMETHOD_TYPE_SETSUPPORT 0x00000100
41 #define KSMETHOD_TYPE_BASICSUPPORT 0x00000200
42 #define KSPROPERTY_TYPE_GET 0x00000001
43 #define KSPROPERTY_TYPE_SET 0x00000002
44 #define KSPROPERTY_TYPE_SETSUPPORT 0x00000100
45 #define KSPROPERTY_TYPE_BASICSUPPORT 0x00000200
46 #define KSPROPERTY_TYPE_RELATIONS 0x00000400
47 #define KSPROPERTY_TYPE_SERIALIZESET 0x00000800
48 #define KSPROPERTY_TYPE_UNSERIALIZESET 0x00001000
49 #define KSPROPERTY_TYPE_SERIALIZERAW 0x00002000
50 #define KSPROPERTY_TYPE_UNSERIALIZERAW 0x00004000
51 #define KSPROPERTY_TYPE_SERIALIZESIZE 0x00008000
52 #define KSPROPERTY_TYPE_DEFAULTVALUES 0x00010000
53 #define KSPROPERTY_TYPE_TOPOLOGY 0x10000000
54 
55 #if (defined(_MSC_EXTENSIONS) || defined(__cplusplus)) && !defined(CINTERFACE)
56 typedef struct
57 {
58  union
59  {
60  struct
61  {
62  GUID Set;
63  ULONG Id;
64  ULONG Flags;
65  };
67  };
69 #else
70 typedef struct
71 {
72  union
73  {
74  struct
75  {
79  } Data;
81  };
83 #endif
84 #endif
85 
86 #ifndef _IKsControl_
87 #define _IKsControl_
88 
89 #ifdef DECLARE_INTERFACE_
90 
91 
92 #undef INTERFACE
93 #define INTERFACE IKsControl
95 {
99  STDMETHOD(KsProperty)(THIS_ IN PKSPROPERTY Property, IN ULONG PropertyLength, IN OUT LPVOID PropertyData,
101  STDMETHOD(KsMethod)(THIS_ IN PKSMETHOD Method, IN ULONG MethodLength, IN OUT LPVOID MethodData,
103  STDMETHOD(KsEvent)(THIS_ IN PKSEVENT Event OPTIONAL, IN ULONG EventLength, IN OUT LPVOID EventData,
105 };
106 #endif
107 #endif
108 
109 #include <poppack.h>
110 
111 #if _MSC_VER >= 1200
112 #pragma warning(pop)
113 #endif
114 
115 #endif
struct KSIDENTIFIER KSPROPERTY
#define IN
Definition: typedefs.h:38
#define REFIID
Definition: guiddef.h:113
LONGLONG Alignment
Definition: dmksctrl.h:80
struct KSIDENTIFIER * PKSIDENTIFIER
#define THIS_
Definition: basetyps.h:65
_In_ BOOLEAN Release
Definition: classpnp.h:929
DECLARE_INTERFACE_(IKsControl, IUnknown)
Definition: dmksctrl.h:69
const GUID IID_IKsControl
Definition: filter.c:44
#define THIS
Definition: basetyps.h:66
struct KSIDENTIFIER KSEVENT
#define _DMKSCTRL_
Definition: dmksctrl.h:4
NTSTATUS QueryInterface(IN PDEVICE_OBJECT DeviceObject, IN CONST GUID InterfaceType, IN LONG Size, IN LONG Version, OUT PVOID Interface)
Definition: fdo.c:532
struct KSIDENTIFIER * PKSEVENT
GUID Set
Definition: dmksctrl.h:76
static BOOL Set
Definition: pageheap.c:10
#define STDMETHOD(m)
Definition: basetyps.h:62
DWORD Id
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
#define FAR
Definition: guiddef.h:36
union Alignment_ Alignment
_In_ LPGUID _In_ PVOID Data
Definition: classpnp.h:778
#define KSDATAFORMAT_SUBTYPE_DIRECTMUSIC
Definition: dmusprop.h:9
int64_t LONGLONG
Definition: typedefs.h:66
ULONG Id
Definition: dmksctrl.h:77
struct KSIDENTIFIER * PKSMETHOD
const GUID KSDATAFORMAT_SUBTYPE_MIDI
Definition: sup.c:36
ULONG Flags
Definition: dmksctrl.h:78
DEFINE_GUID(IID_IKsControl, 0x28F54685, 0x06FD, 0x11D2, 0xB2, 0x7A, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96)
_In_ DWORD Property
Definition: setupapi.h:1545
_In_ FILTER_INFORMATION_CLASS _In_ ULONG _Out_ PULONG BytesReturned
Definition: fltkernel.h:1716
#define OPTIONAL
Definition: typedefs.h:40
#define PURE
Definition: basetyps.h:64
static ULONG WINAPI AddRef(IStream *iface)
Definition: clist.c:90
#define OUT
Definition: typedefs.h:39
unsigned int ULONG
Definition: retypes.h:1
struct KSIDENTIFIER * PKSPROPERTY
_Must_inspect_result_ _Out_writes_to_ DataLength PHIDP_DATA _Inout_ PULONG DataLength
Definition: hidpi.h:333
#define STDMETHOD_(t, m)
Definition: basetyps.h:63
struct KSIDENTIFIER KSMETHOD