ReactOS  0.4.15-dev-439-g292f67a
dmksctrl.h
Go to the documentation of this file.
1 /*
2  * Definition of IKsControl
3  *
4  * Copyright (C) 2012 Christian Costa
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20 
21 #ifndef _DMKSCTRL_
22 #define _DMKSCTRL_
23 
24 #include <pshpack8.h>
25 
26 #include <objbase.h>
27 
28 #ifndef _KS_
29 #define _KS_
30 
31 typedef struct {
32  union {
33  struct {
34  GUID Set;
35  ULONG Id;
36  ULONG Flags;
41 
43 
44 #define KSMETHOD_TYPE_NONE 0x00000000
45 #define KSMETHOD_TYPE_READ 0x00000001
46 #define KSMETHOD_TYPE_WRITE 0x00000002
47 #define KSMETHOD_TYPE_MODIFY 0x00000003
48 #define KSMETHOD_TYPE_SOURCE 0x00000004
49 
50 #define KSMETHOD_TYPE_SEND 0x00000001
51 #define KSMETHOD_TYPE_SETSUPPORT 0x00000100
52 #define KSMETHOD_TYPE_BASICSUPPORT 0x00000200
53 
54 #define KSPROPERTY_TYPE_GET 0x00000001
55 #define KSPROPERTY_TYPE_SET 0x00000002
56 #define KSPROPERTY_TYPE_SETSUPPORT 0x00000100
57 #define KSPROPERTY_TYPE_BASICSUPPORT 0x00000200
58 #define KSPROPERTY_TYPE_RELATIONS 0x00000400
59 #define KSPROPERTY_TYPE_SERIALIZESET 0x00000800
60 #define KSPROPERTY_TYPE_UNSERIALIZESET 0x00001000
61 #define KSPROPERTY_TYPE_SERIALIZERAW 0x00002000
62 #define KSPROPERTY_TYPE_UNSERIALIZERAW 0x00004000
63 #define KSPROPERTY_TYPE_SERIALIZESIZE 0x00008000
64 #define KSPROPERTY_TYPE_DEFAULTVALUES 0x00010000
65 
66 #define KSPROPERTY_TYPE_TOPOLOGY 0x10000000
67 
68 #define INTERFACE IKsControl
70 {
71  /*** IUnknown methods ***/
75  /*** IKsControl methods ***/
76  STDMETHOD(KsProperty)(THIS_ PKSPROPERTY Property, ULONG PropertyLength, LPVOID PropertyData,
78  STDMETHOD(KsMethod)(THIS_ PKSMETHOD Method, ULONG MethodLength, LPVOID MethodData,
80  STDMETHOD(KsEvent)(THIS_ PKSEVENT Event, ULONG EventLength, LPVOID EventData,
82 };
83 #undef INTERFACE
84 
85 #if !defined(__cplusplus) || defined(CINTERFACE)
86 /*** IUnknown methods ***/
87 #define IKsControl_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
88 #define IKsControl_AddRef(p) (p)->lpVtbl->AddRef(p)
89 #define IKsControl_Release(p) (p)->lpVtbl->Release(p)
90 /*** IKsControl methods ***/
91 #define IKsControl_KsProperty(p,a,b,c,d,e) (p)->lpVtbl->KsProperty(p,a,b,c,d,e)
92 #define IKsControl_KsMethod(p,a,b,c,d,e) (p)->lpVtbl->KsMethod(p,a,b,c,d,e)
93 #define IKsControl_KsEvent(p,a,b,c,d,e) (p)->lpVtbl->KsEvent(p,a,b,c,d,e)
94 #endif
95 
96 #endif /* _KS_ */
97 
98 #include <poppack.h>
99 
100 
101 DEFINE_GUID(IID_IKsControl, 0x28f54685, 0x06fd, 0x11d2, 0xb2, 0x7a, 0x00, 0xa0, 0xc9, 0x22, 0x31, 0x96);
102 
103 #ifndef _KSMEDIA_
104 
105 DEFINE_GUID(KSDATAFORMAT_SUBTYPE_MIDI, 0x1d262760, 0xe957, 0x11cf, 0xa5, 0xd6, 0x28, 0xdb, 0x04, 0xc1, 0x00, 0x00);
106 DEFINE_GUID(KSDATAFORMAT_SUBTYPE_DIRECTMUSIC, 0x1a82f8bc, 0x3f8b, 0x11d2, 0xb7, 0x74, 0x00, 0x60, 0x08, 0x33, 0x16, 0xc1);
107 
108 #endif
109 
110 #endif /* _DMKSCTRL_ */
struct KSIDENTIFIER KSPROPERTY
#define REFIID
Definition: guiddef.h:118
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
REFIID riid
Definition: precomp.h:44
struct KSIDENTIFIER KSEVENT
static HRESULT QueryInterface(REFIID, void **)
Definition: events.c:2587
struct KSIDENTIFIER * PKSEVENT
#define DUMMYUNIONNAME
Definition: ntbasedef.h:32
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
_In_ PVOID _In_ ULONG Event
Definition: iotypes.h:435
union Alignment_ Alignment
#define KSDATAFORMAT_SUBTYPE_DIRECTMUSIC
Definition: dmusprop.h:9
int64_t LONGLONG
Definition: typedefs.h:67
LONG HRESULT
Definition: typedefs.h:78
struct KSIDENTIFIER * PKSMETHOD
const GUID KSDATAFORMAT_SUBTYPE_MIDI
Definition: sup.c:36
REFIID LPVOID * ppvObject
Definition: precomp.h:44
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 PURE
Definition: basetyps.h:64
static ULONG WINAPI AddRef(IStream *iface)
Definition: clist.c:90
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
#define DUMMYSTRUCTNAME
Definition: ntbasedef.h:58
struct KSIDENTIFIER KSMETHOD