VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/dmksctrl.h@ 78046

Last change on this file since 78046 was 53206, checked in by vboxsync, 10 years ago

Devices/vmsvga: header fixes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.5 KB
Line 
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/*
22 * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
23 * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
24 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
25 * a choice of LGPL license versions is made available with the language indicating
26 * that LGPLv2 or any later version may be used, or where a choice of which version
27 * of the LGPL is applied is otherwise unspecified.
28 */
29
30#ifndef _DMKSCTRL_
31#define _DMKSCTRL_
32
33#include <pshpack8.h>
34
35#include <objbase.h>
36
37#ifndef _KS_
38#define _KS_
39
40typedef struct {
41 union {
42 struct {
43 GUID Set;
44 ULONG Id;
45 ULONG Flags;
46 } DUMMYSTRUCTNAME;
47 LONGLONG Alignment;
48 } DUMMYUNIONNAME;
49} KSIDENTIFIER, *PKSIDENTIFIER;
50
51typedef KSIDENTIFIER KSPROPERTY, *PKSPROPERTY, KSMETHOD, *PKSMETHOD, KSEVENT, *PKSEVENT;
52
53#define KSMETHOD_TYPE_NONE 0x00000000
54#define KSMETHOD_TYPE_READ 0x00000001
55#define KSMETHOD_TYPE_WRITE 0x00000002
56#define KSMETHOD_TYPE_MODIFY 0x00000003
57#define KSMETHOD_TYPE_SOURCE 0x00000004
58
59#define KSMETHOD_TYPE_SEND 0x00000001
60#define KSMETHOD_TYPE_SETSUPPORT 0x00000100
61#define KSMETHOD_TYPE_BASICSUPPORT 0x00000200
62
63#define KSPROPERTY_TYPE_GET 0x00000001
64#define KSPROPERTY_TYPE_SET 0x00000002
65#define KSPROPERTY_TYPE_SETSUPPORT 0x00000100
66#define KSPROPERTY_TYPE_BASICSUPPORT 0x00000200
67#define KSPROPERTY_TYPE_RELATIONS 0x00000400
68#define KSPROPERTY_TYPE_SERIALIZESET 0x00000800
69#define KSPROPERTY_TYPE_UNSERIALIZESET 0x00001000
70#define KSPROPERTY_TYPE_SERIALIZERAW 0x00002000
71#define KSPROPERTY_TYPE_UNSERIALIZERAW 0x00004000
72#define KSPROPERTY_TYPE_SERIALIZESIZE 0x00008000
73#define KSPROPERTY_TYPE_DEFAULTVALUES 0x00010000
74
75#define KSPROPERTY_TYPE_TOPOLOGY 0x10000000
76
77#define INTERFACE IKsControl
78DECLARE_INTERFACE_(IKsControl,IUnknown)
79{
80 /*** IUnknown methods ***/
81 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
82 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
83 STDMETHOD_(ULONG,Release)(THIS) PURE;
84 /*** IKsControl methods ***/
85 STDMETHOD(KsProperty)(THIS_ PKSPROPERTY Property, ULONG PropertyLength, LPVOID PropertyData,
86 ULONG DataLength, ULONG* BytesReturned) PURE;
87 STDMETHOD(KsMethod)(THIS_ PKSMETHOD Method, ULONG MethodLength, LPVOID MethodData,
88 ULONG DataLength, ULONG* BytesReturned) PURE;
89 STDMETHOD(KsEvent)(THIS_ PKSEVENT Event, ULONG EventLength, LPVOID EventData,
90 ULONG DataLength, ULONG* BytesReturned) PURE;
91};
92#undef INTERFACE
93
94#if !defined(__cplusplus) || defined(CINTERFACE)
95/*** IUnknown methods ***/
96#define IKsControl_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
97#define IKsControl_AddRef(p) (p)->lpVtbl->AddRef(p)
98#define IKsControl_Release(p) (p)->lpVtbl->Release(p)
99/*** IKsControl methods ***/
100#define IKsControl_KsProperty(p,a,b,c,d,e) (p)->lpVtbl->KsProperty(p,a,b,c,d,e)
101#define IKsControl_KsMethod(p,a,b,c,d,e) (p)->lpVtbl->KsMethod(p,a,b,c,d,e)
102#define IKsControl_KsEvent(p,a,b,c,d,e) (p)->lpVtbl->KsEvent(p,a,b,c,d,e)
103#endif
104
105#endif /* _KS_ */
106
107#include <poppack.h>
108
109
110DEFINE_GUID(IID_IKsControl, 0x28f54685, 0x06fd, 0x11d2, 0xb2, 0x7a, 0x00, 0xa0, 0xc9, 0x22, 0x31, 0x96);
111
112#ifndef _KSMEDIA_
113
114DEFINE_GUID(KSDATAFORMAT_SUBTYPE_MIDI, 0x1d262760, 0xe957, 0x11cf, 0xa5, 0xd6, 0x28, 0xdb, 0x04, 0xc1, 0x00, 0x00);
115DEFINE_GUID(KSDATAFORMAT_SUBTYPE_DIRECTMUSIC, 0x1a82f8bc, 0x3f8b, 0x11d2, 0xb7, 0x74, 0x00, 0x60, 0x08, 0x33, 0x16, 0xc1);
116
117#endif
118
119#endif /* _DMKSCTRL_ */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette