Added LGPL standard comment, and copyright notices where necessary.
[wine] / include / wine / obj_ksproperty.h
1 /*
2  * Copyright (C) 2001 Hidenori Takeshima
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  */
18
19 #ifndef WINE_WINE_OBJ_KSPROPERTY_H
20 #define WINE_WINE_OBJ_KSPROPERTY_H
21
22 /* NOTE: IKsPropertySet is declared in both dsound.h and strmif.h */
23
24 DEFINE_GUID(IID_IKsPropertySet,         0x31EFAC30,0x515C,0x11D0,0xA9,0xAA,0x00,0xAA,0x00,0x61,0xBE,0x93);
25 typedef struct IKsPropertySet IKsPropertySet,*LPKSPROPERTYSET;
26
27 /*****************************************************************************
28  * IKsPropertySet interface
29  */
30 #define KSPROPERTY_SUPPORT_GET  1
31 #define KSPROPERTY_SUPPORT_SET  2
32
33 #define ICOM_INTERFACE IKsPropertySet
34 #define IKsPropertySet_METHODS \
35     ICOM_METHOD7(HRESULT,Get,REFGUID,rgid,ULONG,x1,LPVOID,p1,ULONG,x2,LPVOID,p2,ULONG,x3,ULONG*,px4);\
36     ICOM_METHOD6(HRESULT,Set,REFGUID,rgid,ULONG,x1,LPVOID,p1,ULONG,x2,LPVOID,p2,ULONG,x3);\
37     ICOM_METHOD3(HRESULT,QuerySupport,REFGUID,rgid,ULONG,x1,ULONG*,px2);
38 #define IKsPropertySet_IMETHODS \
39         IUnknown_IMETHODS \
40         IKsPropertySet_METHODS
41 ICOM_DEFINE(IKsPropertySet,IUnknown)
42 #undef ICOM_INTERFACE
43
44 #define IKsPropertySet_QueryInterface(p,a,b)    ICOM_CALL2(QueryInterface,p,a,b)
45 #define IKsPropertySet_AddRef(p)                ICOM_CALL (AddRef,p)
46 #define IKsPropertySet_Release(p)               ICOM_CALL (Release,p)
47 #define IKsPropertySet_Get(p,a,b,c,d,e,f,g)     ICOM_CALL7(Get,p,a,b,c,d,e,f,g)
48 #define IKsPropertySet_Set(p,a,b,c,d,e,f)       ICOM_CALL6(Set,p,a,b,c,d,e,f)
49 #define IKsPropertySet_QuerySupport(p,a,b,c)    ICOM_CALL3(QuerySupport,p,a,b,c)
50 /* The real windows header declares 'QuerySupport' in dsound.h */
51 /* but 'QuerySupported' in strmif.h ! */
52 #define IKsPropertySet_QuerySupported(p,a,b,c)  ICOM_CALL3(QuerySupport,p,a,b,c)
53
54
55 #endif /* WINE_WINE_OBJ_KSPROPERTY_H */