Martin Storsjo : api-ms-win-core-winrt-l1-1-0: Add stub dll.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Dec 2 13:40:22 CST 2014
Module: wine
Branch: master
Commit: 77e061f7f139f5a447e62c4df7647065cb72c22e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=77e061f7f139f5a447e62c4df7647065cb72c22e
Author: Martin Storsjo <martin at martin.st>
Date: Mon Dec 1 12:27:06 2014 +0200
api-ms-win-core-winrt-l1-1-0: Add stub dll.
---
configure | 2 +
configure.ac | 1 +
dlls/api-ms-win-core-winrt-l1-1-0/Makefile.in | 5 +++
.../api-ms-win-core-winrt-l1-1-0.spec | 9 ++++
dlls/api-ms-win-core-winrt-l1-1-0/main.c | 51 ++++++++++++++++++++++
5 files changed, 68 insertions(+)
diff --git a/configure b/configure
index 3ddeb77..be06b95 100755
--- a/configure
+++ b/configure
@@ -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
diff --git a/configure.ac b/configure.ac
index 61bc2ad..c33869e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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)
diff --git a/dlls/api-ms-win-core-winrt-l1-1-0/Makefile.in b/dlls/api-ms-win-core-winrt-l1-1-0/Makefile.in
new file mode 100644
index 0000000..7ce8241
--- /dev/null
+++ b/dlls/api-ms-win-core-winrt-l1-1-0/Makefile.in
@@ -0,0 +1,5 @@
+MODULE = api-ms-win-core-winrt-l1-1-0.dll
+IMPORTS = ole32
+
+C_SRCS = \
+ main.c
diff --git a/dlls/api-ms-win-core-winrt-l1-1-0/api-ms-win-core-winrt-l1-1-0.spec b/dlls/api-ms-win-core-winrt-l1-1-0/api-ms-win-core-winrt-l1-1-0.spec
new file mode 100644
index 0000000..344265a
--- /dev/null
+++ b/dlls/api-ms-win-core-winrt-l1-1-0/api-ms-win-core-winrt-l1-1-0.spec
@@ -0,0 +1,9 @@
+@ stub RoActivateInstance
+@ stub RoGetActivationFactory
+@ stub RoGetApartmentIdentifier
+@ stdcall RoInitialize(long)
+@ stub RoRegisterActivationFactories
+@ stub RoRegisterForApartmentShutdown
+@ stub RoRevokeActivationFactories
+@ stdcall RoUninitialize()
+@ stub RoUnregisterForApartmentShutdown
diff --git a/dlls/api-ms-win-core-winrt-l1-1-0/main.c b/dlls/api-ms-win-core-winrt-l1-1-0/main.c
new file mode 100644
index 0000000..4cf1105
--- /dev/null
+++ b/dlls/api-ms-win-core-winrt-l1-1-0/main.c
@@ -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();
+}
More information about the wine-cvs
mailing list