annotate lib/legacy_dx/dmksctrl.h @ 70:47736b43558d

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