ddraw/tests: Add another invalid arguments test for surface QI.
[wine.git] / dlls / combase / roapi.c
bloba2d625202d9212f831cd8e9c12f1ae1747a3356a
1 /*
2 * Copyright 2014 Martin Storsjo
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 "objbase.h"
20 #include "roapi.h"
21 #include "roparameterizediid.h"
22 #include "hstring.h"
24 #include "wine/debug.h"
26 WINE_DEFAULT_DEBUG_CHANNEL(combase);
28 /***********************************************************************
29 * RoInitialize (combase.@)
31 HRESULT WINAPI RoInitialize(RO_INIT_TYPE type)
33 switch (type) {
34 case RO_INIT_SINGLETHREADED:
35 return CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
36 default:
37 FIXME("type %d\n", type);
38 case RO_INIT_MULTITHREADED:
39 return CoInitializeEx(NULL, COINIT_MULTITHREADED);
43 /***********************************************************************
44 * RoUninitialize (combase.@)
46 void WINAPI RoUninitialize(void)
48 CoUninitialize();
51 /***********************************************************************
52 * RoGetActivationFactory (combase.@)
54 HRESULT WINAPI RoGetActivationFactory(HSTRING classid, REFIID iid, void **factory)
56 FIXME("stub: %p %p %p\n", classid, iid, factory);
57 return E_NOTIMPL;
60 /***********************************************************************
61 * RoGetParameterizedTypeInstanceIID (combase.@)
63 HRESULT WINAPI RoGetParameterizedTypeInstanceIID(UINT32 name_element_count, const WCHAR **name_elements,
64 const IRoMetaDataLocator *meta_data_locator, GUID *iid,
65 ROPARAMIIDHANDLE *hiid)
67 FIXME("stub: %d %p %p %p %p\n", name_element_count, name_elements, meta_data_locator, iid, hiid);
68 if (iid) *iid = GUID_NULL;
69 if (hiid) *hiid = INVALID_HANDLE_VALUE;
70 return E_NOTIMPL;