setupapi: Implement SetupDiGetINFClassA on top of SetupDiGetINFClassW.
[wine] / include / amaudio.h
1 /*
2  * Copyright (C) 2010 Maarten Lankhorst for CodeWeavers
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
18
19 #ifndef __AMAUDIO__
20 #define __AMAUDIO__
21
22 #include <mmsystem.h>
23 #include <dsound.h>
24
25 #undef INTERFACE
26 #define INTERFACE IAMDirectSound
27
28 DECLARE_INTERFACE_(IAMDirectSound,IUnknown)
29 {
30     /*** IUnknown methods ***/
31     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
32     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
33     STDMETHOD_(ULONG,Release)(THIS) PURE;
34
35     /*** IAMDirectSound methods ***/
36     STDMETHOD(GetDirectSoundInterface)(THIS_ IDirectSound **ds) PURE;
37     STDMETHOD(GetPrimaryBufferInterface)(THIS_ IDirectSoundBuffer **buf) PURE;
38     STDMETHOD(GetSecondaryBufferInterface)(THIS_ IDirectSoundBuffer **buf) PURE;
39     STDMETHOD(ReleaseDirectSoundInterface)(THIS_ IDirectSound *ds) PURE;
40     STDMETHOD(ReleasePrimaryBufferInterface)(THIS_ IDirectSoundBuffer *buf) PURE;
41     STDMETHOD(ReleaseSecondaryBufferInterface)(THIS_ IDirectSoundBuffer *buf) PURE;
42     STDMETHOD(SetFocusWindow)(THIS_ HWND hwnd, BOOL bgsilent) PURE;
43     STDMETHOD(GetFocusWindow)(THIS_ HWND hwnd) PURE;
44 };
45
46 #endif