Alexandre Julliard : include: Add libloaderapi.h.

Alexandre Julliard julliard at winehq.org
Mon Aug 28 14:05:17 CDT 2017


Module: wine
Branch: master
Commit: bef1390691e46f1d1558d6600c1b5e54f87f850a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=bef1390691e46f1d1558d6600c1b5e54f87f850a

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Aug 28 15:42:40 2017 +0200

include: Add libloaderapi.h.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 include/Makefile.in    |  1 +
 include/libloaderapi.h | 36 ++++++++++++++++++++++++++++++++++++
 include/winbase.h      |  3 ++-
 3 files changed, 39 insertions(+), 1 deletion(-)

diff --git a/include/Makefile.in b/include/Makefile.in
index 454ac80..fcdd8b3 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -423,6 +423,7 @@ HEADER_SRCS = \
 	ksguid.h \
 	ksmedia.h \
 	ksuuids.h \
+	libloaderapi.h \
 	lm.h \
 	lmaccess.h \
 	lmapibuf.h \
diff --git a/include/libloaderapi.h b/include/libloaderapi.h
new file mode 100644
index 0000000..8f112a7
--- /dev/null
+++ b/include/libloaderapi.h
@@ -0,0 +1,36 @@
+/*
+ * Copyright (C) 2017 Alexandre Julliard
+ *
+ * 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
+ */
+
+#ifndef _APISETLIBLOADER_
+#define _APISETLIBLOADER_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef void *DLL_DIRECTORY_COOKIE, **PDLL_DIRECTORY_COOKIE;
+
+WINBASEAPI DLL_DIRECTORY_COOKIE WINAPI AddDllDirectory(const WCHAR *);
+WINBASEAPI BOOL WINAPI RemoveDllDirectory(DLL_DIRECTORY_COOKIE);
+WINBASEAPI BOOL WINAPI SetDefaultDllDirectories(DWORD);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif  /* _APISETLIBLOADER_ */
diff --git a/include/winbase.h b/include/winbase.h
index 9d59e4d..f6a28c3 100644
--- a/include/winbase.h
+++ b/include/winbase.h
@@ -37,6 +37,8 @@ extern "C" {
 #define WINADVAPI DECLSPEC_IMPORT
 #endif
 
+#include <libloaderapi.h>
+
   /* Windows Exit Procedure flag values */
 #define	WEP_FREE_DLL        0
 #define	WEP_SYSTEM_EXIT     1
@@ -2512,7 +2514,6 @@ WINBASEAPI BOOL        WINAPI SetCurrentDirectoryW(LPCWSTR);
 WINBASEAPI BOOL        WINAPI SetDefaultCommConfigA(LPCSTR,LPCOMMCONFIG,DWORD);
 WINBASEAPI BOOL        WINAPI SetDefaultCommConfigW(LPCWSTR,LPCOMMCONFIG,DWORD);
 #define                       SetDefaultCommConfig WINELIB_NAME_AW(SetDefaultCommConfig)
-WINBASEAPI BOOL        WINAPI SetDefaultDllDirectories(DWORD);
 WINBASEAPI BOOL        WINAPI SetDllDirectoryA(LPCSTR);
 WINBASEAPI BOOL        WINAPI SetDllDirectoryW(LPCWSTR);
 #define                       SetDllDirectory WINELIB_NAME_AW(SetDllDirectory)




More information about the wine-cvs mailing list