dsound: Refactor playback.
[wine/multimedia.git] / dlls / mshtml / service.c
blobd28614b77ad7750077085542b2a39c858ef844eb
1 /*
2 * Copyright 2005 Jacek Caban
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.
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.
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
19 #include "config.h"
21 #include <stdarg.h>
22 #include <stdio.h>
24 #define COBJMACROS
26 #include "windef.h"
27 #include "winbase.h"
28 #include "winuser.h"
29 #include "ole2.h"
31 #include "wine/debug.h"
33 #include "mshtml_private.h"
35 WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
37 /**********************************************************
38 * IServiceProvider impementation
41 #define SERVPROV_THIS(iface) DEFINE_THIS(HTMLDocument, ServiceProvider, iface)
43 static HRESULT WINAPI ServiceProvider_QueryInterface(IServiceProvider *iface, REFIID riid, void **ppv)
45 HTMLDocument *This = SERVPROV_THIS(iface);
46 return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppv);
49 static ULONG WINAPI ServiceProvider_AddRef(IServiceProvider *iface)
51 HTMLDocument *This = SERVPROV_THIS(iface);
52 return IHTMLDocument2_AddRef(HTMLDOC(This));
55 static ULONG WINAPI ServiceProvider_Release(IServiceProvider *iface)
57 HTMLDocument *This = SERVPROV_THIS(iface);
58 return IHTMLDocument_Release(HTMLDOC(This));
61 static HRESULT WINAPI ServiceProvider_QueryService(IServiceProvider *iface, REFGUID guidService,
62 REFIID riid, void **ppv)
64 HTMLDocument *This = SERVPROV_THIS(iface);
66 /* NOTE:
67 * IE queries for service {3050f84b-98b5-11cf-bb82-00aa00bdce0b}.
68 * Its interface has the same IID and HTMLDocument also implements this
69 * interface. I conldn't find that interface is it.
72 FIXME("(%p)->(%s %s %p)\n", This, debugstr_guid(guidService), debugstr_guid(riid), ppv);
74 return E_UNEXPECTED;
77 static const IServiceProviderVtbl ServiceProviderVtbl = {
78 ServiceProvider_QueryInterface,
79 ServiceProvider_AddRef,
80 ServiceProvider_Release,
81 ServiceProvider_QueryService
84 void HTMLDocument_Service_Init(HTMLDocument *This)
86 This->lpServiceProviderVtbl = &ServiceProviderVtbl;