mshtml: Added IDOMEvent::pageX and pageY properties implementation.
[wine.git] / dlls / mf / main.c
blob73cd6aa3f100a88e5cf2a8b2c616bf9cf5b98773
1 /*
2 * Copyright (C) 2015 Austin English
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #include "config.h"
21 #include <stdarg.h>
23 #define COBJMACROS
25 #include "windef.h"
26 #include "winbase.h"
27 #include "mfidl.h"
29 #include "wine/debug.h"
31 WINE_DEFAULT_DEBUG_CHANNEL(mfplat);
33 BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved)
35 switch (reason)
37 case DLL_WINE_PREATTACH:
38 return FALSE; /* prefer native version */
39 case DLL_PROCESS_ATTACH:
40 DisableThreadLibraryCalls(instance);
41 break;
44 return TRUE;
47 /***********************************************************************
48 * MFGetSupportedMimeTypes (mf.@)
50 HRESULT WINAPI MFGetSupportedMimeTypes(PROPVARIANT *array)
52 FIXME("(%p) stub\n", array);
54 return E_NOTIMPL;
57 /***********************************************************************
58 * MFGetService (mf.@)
60 HRESULT WINAPI MFGetService(IUnknown *object, REFGUID service, REFIID riid, void **obj)
62 IMFGetService *gs;
63 HRESULT hr;
65 TRACE("(%p, %s, %s, %p)\n", object, debugstr_guid(service), debugstr_guid(riid), obj);
67 if (!object)
68 return E_POINTER;
70 if (FAILED(hr = IUnknown_QueryInterface(object, &IID_IMFGetService, (void **)&gs)))
71 return hr;
73 hr = IMFGetService_GetService(gs, service, riid, obj);
74 IMFGetService_Release(gs);
75 return hr;