https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c8611aea13fc813354869…
commit c8611aea13fc813354869f6a604f248af8cf1a47
Author: Oleg Dubinskiy <oleg.dubinskij2013(a)yandex.ua>
AuthorDate: Sun Apr 14 21:00:12 2019 +0300
Commit: Robert Naumann <gonzomdx(a)gmail.com>
CommitDate: Wed Apr 24 19:59:15 2019 +0200
[DPNHPAST] Import dpnhpast.dll from Wine (Staging) 4.5
---
dll/directx/wine/CMakeLists.txt | 1 +
dll/directx/wine/dpnhpast/CMakeLists.txt | 15 ++++++
dll/directx/wine/dpnhpast/dpnhpast.spec | 6 +++
dll/directx/wine/dpnhpast/main.c | 86 ++++++++++++++++++++++++++++++++
dll/directx/wine/dpnhpast/version.rc | 26 ++++++++++
media/doc/README.WINE | 1 +
6 files changed, 135 insertions(+)
diff --git a/dll/directx/wine/CMakeLists.txt b/dll/directx/wine/CMakeLists.txt
index 3de83cab1f..9cccbb1466 100644
--- a/dll/directx/wine/CMakeLists.txt
+++ b/dll/directx/wine/CMakeLists.txt
@@ -32,6 +32,7 @@ add_subdirectory(dinput8)
add_subdirectory(dmusic)
add_subdirectory(dplay)
add_subdirectory(dplayx)
+add_subdirectory(dpnhpast)
add_subdirectory(dsound)
add_subdirectory(dxdiagn)
add_subdirectory(msdmo)
diff --git a/dll/directx/wine/dpnhpast/CMakeLists.txt b/dll/directx/wine/dpnhpast/CMakeLists.txt
new file mode 100644
index 0000000000..53d5cf5142
--- /dev/null
+++ b/dll/directx/wine/dpnhpast/CMakeLists.txt
@@ -0,0 +1,15 @@
+
+add_definitions(-D__WINESRC__)
+include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
+spec2def(dpnhpast.dll dpnhpast.spec)
+
+list(APPEND SOURCE
+ main.c
+ ${CMAKE_CURRENT_BINARY_DIR}/dpnhpast_stubs.c
+ ${CMAKE_CURRENT_BINARY_DIR}/dpnhpast.def)
+
+add_library(dpnhpast MODULE ${SOURCE} version.rc)
+set_module_type(dpnhpast win32dll)
+target_link_libraries(dpnhpast dxguid uuid wine)
+add_importlibs(dpnhpast msvcrt kernel32 ntdll)
+add_cd_file(TARGET dpnhpast DESTINATION reactos/system32 FOR all)
diff --git a/dll/directx/wine/dpnhpast/dpnhpast.spec b/dll/directx/wine/dpnhpast/dpnhpast.spec
new file mode 100644
index 0000000000..ea61468ac8
--- /dev/null
+++ b/dll/directx/wine/dpnhpast/dpnhpast.spec
@@ -0,0 +1,6 @@
+1 stdcall DirectPlayNATHelpCreate(ptr ptr)
+
+@ stdcall -private DllCanUnloadNow()
+@ stdcall -private DllGetClassObject(ptr ptr ptr)
+@ stdcall -private DllRegisterServer()
+@ stdcall -private DllUnregisterServer()
diff --git a/dll/directx/wine/dpnhpast/main.c b/dll/directx/wine/dpnhpast/main.c
new file mode 100644
index 0000000000..4e46608abd
--- /dev/null
+++ b/dll/directx/wine/dpnhpast/main.c
@@ -0,0 +1,86 @@
+/* DirectPlay NAT Helper Past Main
+ *
+ * Copyright (C) 2003 Rok Mandeljc
+ *
+ * This program 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 program 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 program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include "config.h"
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "objbase.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(dpnhpast);
+
+/******************************************************************
+ * DirectPlayNATHelpCreate (DPNHPAST.1)
+ *
+ *
+ */
+HRESULT WINAPI DirectPlayNATHelpCreate(LPCGUID pIID, PVOID *ppvInterface)
+{
+ TRACE("(%p, %p) stub\n", pIID, ppvInterface);
+ return E_NOTIMPL;
+}
+
+
+/******************************************************************
+ * DllRegisterServer (DPNHPAST.@)
+ *
+ *
+ */
+HRESULT WINAPI DllRegisterServer(void)
+{
+ FIXME(":stub\n");
+ return S_OK;
+}
+
+
+/******************************************************************
+ * DllCanUnloadNow (DPNHPAST.@)
+ *
+ *
+ */
+HRESULT WINAPI DllCanUnloadNow(void)
+{
+ return S_FALSE;
+}
+
+
+/******************************************************************
+ * DllGetClassObject (DPNHPAST.@)
+ *
+ *
+ */
+HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
+{
+ FIXME(":stub\n");
+ return E_FAIL;
+}
+
+
+/******************************************************************
+ * DllUnregisterServer (DPNHPAST.@)
+ *
+ *
+ */
+HRESULT WINAPI DllUnregisterServer(void)
+{
+ FIXME(":stub\n");
+ return S_OK;
+}
diff --git a/dll/directx/wine/dpnhpast/version.rc b/dll/directx/wine/dpnhpast/version.rc
new file mode 100644
index 0000000000..7552f7de0a
--- /dev/null
+++ b/dll/directx/wine/dpnhpast/version.rc
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2003 Rok Mandeljc
+ *
+ * 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
+ */
+
+#define WINE_FILEDESCRIPTION_STR "Wine DirectPlay NAT Helper PAST"
+#define WINE_FILENAME_STR "dpnhpast.dll"
+#define WINE_FILEVERSION 5,3,0,901
+#define WINE_FILEVERSION_STR "5.3.0.901"
+#define WINE_PRODUCTVERSION 5,3,0,901
+#define WINE_PRODUCTVERSION_STR "5.3"
+
+#include "wine/wine_common_ver.rc"
diff --git a/media/doc/README.WINE b/media/doc/README.WINE
index a073dcc37a..f0d7244ca1 100644
--- a/media/doc/README.WINE
+++ b/media/doc/README.WINE
@@ -35,6 +35,7 @@ reactos/dll/directx/wine/dinput8 # Synced to WineStaging-3.3
reactos/dll/directx/wine/dmusic # Synced to WineStaging-4.0
reactos/dll/directx/wine/dplay # Synced to WineStaging-3.3
reactos/dll/directx/wine/dplayx # Synced to WineStaging-3.17
+reactos/dll/directx/wine/dpnhpast # Synced to WineStaging-4.5
reactos/dll/directx/wine/dsound # Synced to Wine-1.3.29
reactos/dll/directx/wine/dxdiagn # Synced to WineStaging-3.3
reactos/dll/directx/wine/msdmo # Synced to WineStaging-3.17