Make the DllRegisterServer, DllRegisterServerEx, DllUnregisterServer,
[wine/wine64.git] / dlls / dmusic / download.c
blobe19574e5eb35f3e9ffbd8bfd7d89a2faa92c4c25
1 /* IDirectMusicDownload Implementation
3 * Copyright (C) 2003 Rok Mandeljc
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Library General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #include "windef.h"
21 #include "winbase.h"
22 #include "winreg.h"
23 #include "winuser.h"
24 #include "wingdi.h"
25 #include "winuser.h"
26 #include "winerror.h"
27 #include "mmsystem.h"
28 #include "winternl.h"
29 #include "mmddk.h"
30 #include "wine/windef16.h"
31 #include "wine/winbase16.h"
32 #include "wine/debug.h"
33 #include "dsound.h"
35 #include "dmusic_private.h"
37 WINE_DEFAULT_DEBUG_CHANNEL(dmusic);
39 /* IDirectMusicDownload IUnknown parts follow: */
40 HRESULT WINAPI IDirectMusicDownloadImpl_QueryInterface (LPDIRECTMUSICDOWNLOAD iface, REFIID riid, LPVOID *ppobj)
42 ICOM_THIS(IDirectMusicDownloadImpl,iface);
44 if (IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_IDirectMusicDownload))
46 IDirectMusicDownloadImpl_AddRef(iface);
47 *ppobj = This;
48 return S_OK;
50 WARN("(%p)->(%s,%p),not found\n",This,debugstr_guid(riid),ppobj);
51 return E_NOINTERFACE;
54 ULONG WINAPI IDirectMusicDownloadImpl_AddRef (LPDIRECTMUSICDOWNLOAD iface)
56 ICOM_THIS(IDirectMusicDownloadImpl,iface);
57 TRACE("(%p) : AddRef from %ld\n", This, This->ref);
58 return ++(This->ref);
61 ULONG WINAPI IDirectMusicDownloadImpl_Release (LPDIRECTMUSICDOWNLOAD iface)
63 ICOM_THIS(IDirectMusicDownloadImpl,iface);
64 ULONG ref = --This->ref;
65 TRACE("(%p) : ReleaseRef to %ld\n", This, This->ref);
66 if (ref == 0)
68 HeapFree(GetProcessHeap(), 0, This);
70 return ref;
73 /* IDirectMusicDownload Interface follow: */
74 HRESULT WINAPI IDirectMusicDownloadImpl_GetBuffer (LPDIRECTMUSICDOWNLOAD iface, void** ppvBuffer, DWORD* pdwSize)
76 ICOM_THIS(IDirectMusicDownloadImpl,iface);
78 FIXME("(%p,%p, %p): stub\n", This, ppvBuffer, pdwSize);
80 return S_OK;
83 ICOM_VTABLE(IDirectMusicDownload) DirectMusicDownload_Vtbl =
85 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
86 IDirectMusicDownloadImpl_QueryInterface,
87 IDirectMusicDownloadImpl_AddRef,
88 IDirectMusicDownloadImpl_Release,
89 IDirectMusicDownloadImpl_GetBuffer
92 /* for ClassFactory */
93 HRESULT WINAPI DMUSIC_CreateDirectMusicDownload (LPCGUID lpcGUID, LPDIRECTMUSICDOWNLOAD* ppDMDL, LPUNKNOWN pUnkOuter)
95 if (IsEqualGUID (lpcGUID, &IID_IDirectMusicDownload))
97 FIXME("Not yet\n");
98 return E_NOINTERFACE;
100 WARN("No interface found\n");
102 return E_NOINTERFACE;