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