Alistair Leslie-Hughes : srvcli: Add stub dll.

Alexandre Julliard julliard at winehq.org
Tue Nov 3 15:55:54 CST 2020


Module: wine
Branch: master
Commit: 8f81123f4f17f2afa31417db72c9b2db95ef6323
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=8f81123f4f17f2afa31417db72c9b2db95ef6323

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Mon Nov  2 19:19:27 2020 +0100

srvcli: Add stub dll.

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 configure               |  2 ++
 configure.ac            |  1 +
 dlls/srvcli/Makefile.in |  5 ++++
 dlls/srvcli/main.c      | 41 +++++++++++++++++++++++++++++++++
 dlls/srvcli/srvcli.spec | 61 +++++++++++++++++++++++++++++++++++++++++++++++++
 tools/make_specfiles    |  1 +
 6 files changed, 111 insertions(+)

diff --git a/configure b/configure
index 4e76dbf9d02..a372aae0b21 100755
--- a/configure
+++ b/configure
@@ -1593,6 +1593,7 @@ enable_snmpapi
 enable_softpub
 enable_spoolss
 enable_srclient
+enable_srvcli
 enable_sspicli
 enable_stdole2_tlb
 enable_stdole32_tlb
@@ -20981,6 +20982,7 @@ wine_fn_config_makefile dlls/sound.drv16 enable_win16
 wine_fn_config_makefile dlls/spoolss enable_spoolss
 wine_fn_config_makefile dlls/spoolss/tests enable_tests
 wine_fn_config_makefile dlls/srclient enable_srclient
+wine_fn_config_makefile dlls/srvcli enable_srvcli
 wine_fn_config_makefile dlls/sspicli enable_sspicli
 wine_fn_config_makefile dlls/stdole2.tlb enable_stdole2_tlb
 wine_fn_config_makefile dlls/stdole32.tlb enable_stdole32_tlb
diff --git a/configure.ac b/configure.ac
index 06031352866..18f47abaac1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3724,6 +3724,7 @@ WINE_CONFIG_MAKEFILE(dlls/sound.drv16,enable_win16)
 WINE_CONFIG_MAKEFILE(dlls/spoolss)
 WINE_CONFIG_MAKEFILE(dlls/spoolss/tests)
 WINE_CONFIG_MAKEFILE(dlls/srclient)
+WINE_CONFIG_MAKEFILE(dlls/srvcli)
 WINE_CONFIG_MAKEFILE(dlls/sspicli)
 WINE_CONFIG_MAKEFILE(dlls/stdole2.tlb)
 WINE_CONFIG_MAKEFILE(dlls/stdole32.tlb)
diff --git a/dlls/srvcli/Makefile.in b/dlls/srvcli/Makefile.in
new file mode 100644
index 00000000000..716cc1b3867
--- /dev/null
+++ b/dlls/srvcli/Makefile.in
@@ -0,0 +1,5 @@
+MODULE    = srvcli.dll
+
+EXTRADLLFLAGS = -mno-cygwin
+
+C_SRCS = main.c
diff --git a/dlls/srvcli/main.c b/dlls/srvcli/main.c
new file mode 100644
index 00000000000..0df8e00d0fa
--- /dev/null
+++ b/dlls/srvcli/main.c
@@ -0,0 +1,41 @@
+/*
+ *
+ * Copyright (C) 2020 Alistair Leslie-Hughes
+ *
+ * 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 <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(srvcli);
+
+BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved)
+{
+    TRACE("(%p, %u, %p)\n", instance, reason, reserved);
+
+    switch (reason)
+    {
+        case DLL_WINE_PREATTACH:
+            return FALSE;    /* prefer native version */
+        case DLL_PROCESS_ATTACH:
+            DisableThreadLibraryCalls(instance);
+            break;
+    }
+
+    return TRUE;
+}
diff --git a/dlls/srvcli/srvcli.spec b/dlls/srvcli/srvcli.spec
new file mode 100644
index 00000000000..821724a7d4d
--- /dev/null
+++ b/dlls/srvcli/srvcli.spec
@@ -0,0 +1,61 @@
+@ stub I_NetDfsGetVersion
+@ stub I_NetServerSetServiceBits
+@ stub I_NetServerSetServiceBitsEx
+@ stub LocalAliasGet
+@ stub LocalFileClose
+@ stub LocalFileEnum
+@ stub LocalFileEnumEx
+@ stub LocalFileGetInfo
+@ stub LocalFileGetInfoEx
+@ stub LocalServerCertificateMappingAdd
+@ stub LocalServerCertificateMappingEnum
+@ stub LocalServerCertificateMappingGet
+@ stub LocalServerCertificateMappingRemove
+@ stub LocalSessionDel
+@ stub LocalSessionEnum
+@ stub LocalSessionEnumEx
+@ stub LocalSessionGetInfo
+@ stub LocalSessionGetInfoEx
+@ stub LocalShareAdd
+@ stub LocalShareDelEx
+@ stub LocalShareEnum
+@ stub LocalShareEnumEx
+@ stub LocalShareGetInfo
+@ stub LocalShareGetInfoEx
+@ stub LocalShareSetInfo
+@ stub NetConnectionEnum
+@ stub NetFileClose
+@ stdcall NetFileEnum(wstr wstr wstr long ptr long ptr ptr ptr) netapi32.NetFileEnum
+@ stub NetFileGetInfo
+@ stub NetRemoteTOD
+@ stub NetServerAliasAdd
+@ stub NetServerAliasDel
+@ stub NetServerAliasEnum
+@ stub NetServerComputerNameAdd
+@ stub NetServerComputerNameDel
+@ stdcall NetServerDiskEnum(wstr long ptr long ptr ptr ptr) netapi32.NetServerDiskEnum
+@ stdcall NetServerGetInfo(wstr long ptr) netapi32.NetServerGetInfo
+@ stub NetServerSetInfo
+@ stub NetServerStatisticsGet
+@ stub NetServerTransportAdd
+@ stub NetServerTransportAddEx
+@ stub NetServerTransportDel
+@ stub NetServerTransportEnum
+@ stub NetSessionDel
+@ stdcall NetSessionEnum(wstr wstr wstr long ptr long ptr ptr ptr) netapi32.NetSessionEnum
+@ stub NetSessionGetInfo
+@ stdcall NetShareAdd(wstr long ptr ptr) netapi32.NetShareAdd
+@ stub NetShareCheck
+@ stdcall NetShareDel(wstr wstr long) netapi32.NetShareDel
+@ stub NetShareDelEx
+@ stub NetShareDelSticky
+@ stdcall NetShareEnum(wstr long ptr long ptr ptr ptr) netapi32.NetShareEnum
+@ stub NetShareEnumSticky
+@ stdcall NetShareGetInfo(wstr wstr long ptr) netapi32.NetShareGetInfo
+@ stub NetShareSetInfo
+@ stub NetpsNameCanonicalize
+@ stub NetpsNameCompare
+@ stub NetpsNameValidate
+@ stub NetpsPathCanonicalize
+@ stub NetpsPathCompare
+@ stub NetpsPathType
diff --git a/tools/make_specfiles b/tools/make_specfiles
index efb873e2532..e7a706dad42 100755
--- a/tools/make_specfiles
+++ b/tools/make_specfiles
@@ -177,6 +177,7 @@ my @dll_groups =
  [
   "netapi32",
   "ext-ms-win-domainjoin-netjoin-l1-1-0",
+  "srvcli",
  ],
  [
   "ntdll",




More information about the wine-cvs mailing list