api-ms-win-core-winrt-l1-1-0: Add stub dll.

This commit is contained in:
Martin Storsjo 2014-12-01 12:27:06 +02:00 committed by Alexandre Julliard
parent 73b53905cd
commit 77e061f7f1
5 changed files with 68 additions and 0 deletions

2
configure vendored
View File

@ -889,6 +889,7 @@ enable_api_ms_win_core_timezone_l1_1_0
enable_api_ms_win_core_url_l1_1_0
enable_api_ms_win_core_util_l1_1_0
enable_api_ms_win_core_winrt_error_l1_1_0
enable_api_ms_win_core_winrt_l1_1_0
enable_api_ms_win_core_winrt_string_l1_1_0
enable_api_ms_win_downlevel_advapi32_l1_1_0
enable_api_ms_win_downlevel_advapi32_l2_1_0
@ -16806,6 +16807,7 @@ wine_fn_config_dll api-ms-win-core-timezone-l1-1-0 enable_api_ms_win_core_timezo
wine_fn_config_dll api-ms-win-core-url-l1-1-0 enable_api_ms_win_core_url_l1_1_0
wine_fn_config_dll api-ms-win-core-util-l1-1-0 enable_api_ms_win_core_util_l1_1_0
wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
wine_fn_config_dll api-ms-win-core-winrt-l1-1-0 enable_api_ms_win_core_winrt_l1_1_0
wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0

View File

@ -2681,6 +2681,7 @@ WINE_CONFIG_DLL(api-ms-win-core-timezone-l1-1-0)
WINE_CONFIG_DLL(api-ms-win-core-url-l1-1-0)
WINE_CONFIG_DLL(api-ms-win-core-util-l1-1-0)
WINE_CONFIG_DLL(api-ms-win-core-winrt-error-l1-1-0)
WINE_CONFIG_DLL(api-ms-win-core-winrt-l1-1-0)
WINE_CONFIG_DLL(api-ms-win-core-winrt-string-l1-1-0)
WINE_CONFIG_DLL(api-ms-win-downlevel-advapi32-l1-1-0)
WINE_CONFIG_DLL(api-ms-win-downlevel-advapi32-l2-1-0)

View File

@ -0,0 +1,5 @@
MODULE = api-ms-win-core-winrt-l1-1-0.dll
IMPORTS = ole32
C_SRCS = \
main.c

View File

@ -0,0 +1,9 @@
@ stub RoActivateInstance
@ stub RoGetActivationFactory
@ stub RoGetApartmentIdentifier
@ stdcall RoInitialize(long)
@ stub RoRegisterActivationFactories
@ stub RoRegisterForApartmentShutdown
@ stub RoRevokeActivationFactories
@ stdcall RoUninitialize()
@ stub RoUnregisterForApartmentShutdown

View File

@ -0,0 +1,51 @@
/*
* Copyright 2014 Martin Storsjo
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "objbase.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(winrt);
typedef enum
{
RO_INIT_SINGLETHREADED = 0,
RO_INIT_MULTITHREADED = 1,
} RO_INIT_TYPE;
/***********************************************************************
* RoInitialize (api-ms-win-core-winrt-l1-1-0.@)
*/
HRESULT WINAPI RoInitialize(RO_INIT_TYPE type)
{
switch (type) {
case RO_INIT_SINGLETHREADED:
return CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
default:
FIXME("type %d\n", type);
case RO_INIT_MULTITHREADED:
return CoInitializeEx(NULL, COINIT_MULTITHREADED);
}
}
/***********************************************************************
* RoUninitialize (api-ms-win-core-winrt-l1-1-0.@)
*/
void WINAPI RoUninitialize(void)
{
CoUninitialize();
}