annotate lib/legacy_dx/dmksctrl.h @ 2575:a76d408c5132 tip

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