In this patch I create new library svrapi.dll
There are:
dlls/svrapi/svrapi_main.c
dlls/svrapi/scrapi.spec
dlls/svrapi/Makefile.in
include/svrapi.h
And changes in:
configure.ac
include/Makefile.in
dlls/Makefile.in
--
Best regards, Konstantin Petrov
--- /dev/null 2006-07-03 10:36:18 +0400
+++ dlls/svrapi/Makefile.in 2006-05-30 13:46:08 +0400
@@ -0,0 +1,14 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR = @srcdir@
+VPATH = @srcdir@
+MODULE = svrapi.dll
+IMPORTS = kernel32
+
+C_SRCS = \
+ svrapi_main.c
+
[EMAIL PROTECTED]@
+
+### Dependencies:
+
--- /dev/null 2006-07-03 10:36:18 +0400
+++ dlls/svrapi/svrapi.spec 2006-05-30 19:40:06 +0400
@@ -0,0 +1,20 @@
+@ stub NetAccessAdd
+@ stub NetAccessCheck
+@ stub NetAccessDel
+@ stub NetAccessEnum
+@ stub NetAccessGetInfo
+@ stub NetAccessGetUserPerms
+@ stub NetAccessSetInfo
+@ stub NetConnectionEnum
+@ stub NetFileClose
+@ stub NetFileEnum
+@ stub NetSecurityGetInfo
+@ stub NetServerGetInfo
+@ stub NetSessionDel
+@ stub NetSessionEnum
+@ stub NetSessionGetInfo
+@ stub NetShareAdd
+@ stub NetShareDel
+@ stub NetShareEnum
+@ stub NetShareGetInfo
+@ stub NetShareSetInfo
Index: configure.ac
===================================================================
RCS file: /home/wine/wine/configure.ac,v
retrieving revision 1.553
diff -u -r1.553 configure.ac
--- configure.ac 29 Aug 2006 12:20:36 -0000 1.553
+++ configure.ac 4 Sep 2006 11:33:12 -0000
@@ -1690,6 +1690,7 @@
dlls/stdole32.tlb/Makefile
dlls/sti/Makefile
dlls/strmiids/Makefile
+dlls/svrapi/Makefile
dlls/tapi32/Makefile
dlls/twain_32/Makefile
dlls/unicows/Makefile
--- /dev/null 2006-08-04 22:14:48 +0400
+++ include/svrapi.h 2006-09-04 18:22:33 +0400
@@ -0,0 +1,40 @@
+/*
+* Copyright 2006 Konstantin Petrov
+*
+* 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 "windef.h"
+#include "lm.h"
+
+/*SHPWLEN is not known */
+#define SHPWLEN LM20_PWLEN
+
+typedef struct _share_info_1 {
+ char shi1_netname[LM20_NNLEN+1];
+ char shi1_pad1;
+ unsigned short shi1_type;
+ char* shi1_remark;
+} share_info_1;
+
+typedef struct _share_info_50 {
+ char shi50_netname[LM20_NNLEN+1];
+ unsigned char shi50_type;
+ unsigned short shi50_flags;
+ char* shi50_remark;
+ char* shi50_path;
+ char shi50_rw_password[SHPWLEN+1];
+ char shi50_ro_password[SHPWLEN+1];
+} share_info_50;
+
Index: dlls/Makefile.in
===================================================================
RCS file: /home/wine/wine/dlls/Makefile.in,v
retrieving revision 1.320
diff -u -r1.320 Makefile.in
--- dlls/Makefile.in 29 Aug 2006 12:20:36 -0000 1.320
+++ dlls/Makefile.in 4 Sep 2006 15:18:35 -0000
@@ -156,6 +156,7 @@
stdole2.tlb \
stdole32.tlb \
sti \
+ svrapi \
tapi32 \
twain_32 \
unicows \
@@ -589,6 +590,7 @@
shlwapi/libshlwapi.$(IMPLIBEXT) \
snmpapi/libsnmpapi.$(IMPLIBEXT) \
sti/libsti.$(IMPLIBEXT) \
+ svrapi/libsvrapi.$(IMPLIBEXT) \
tapi32/libtapi32.$(IMPLIBEXT) \
unicows/libunicows.$(IMPLIBEXT) \
url/liburl.$(IMPLIBEXT) \
@@ -897,6 +899,9 @@
sti/libsti.$(IMPLIBEXT): sti/sti.spec $(WINEBUILD)
@cd sti && $(MAKE) libsti.$(IMPLIBEXT)
+svrapi/libsvrapi.$(IMPLIBEXT): svrapi/svrapi.spec $(WINEBUILD)
+ @cd svrapi && $(MAKE) libsvrapi.$(IMPLIBEXT)
+
tapi32/libtapi32.$(IMPLIBEXT): tapi32/tapi32.spec $(WINEBUILD)
@cd tapi32 && $(MAKE) libtapi32.$(IMPLIBEXT)
Index: include/Makefile.in
===================================================================
RCS file: /home/wine/wine/include/Makefile.in,v
retrieving revision 1.223
diff -u -r1.223 Makefile.in
--- include/Makefile.in 14 Aug 2006 19:11:16 -0000 1.223
+++ include/Makefile.in 4 Sep 2006 15:20:42 -0000
@@ -272,6 +272,7 @@
sqltypes.h \
sspi.h \
storage.h \
+ svrapi \
tapi.h \
tchar.h \
textserv.h \
--- /dev/null 2006-08-04 22:14:48 +0400
+++ dlls/svrapi/svrapi_main.c 2006-09-04 19:25:00 +0400
@@ -0,0 +1,55 @@
+/*
+* These functions are components of SVRAPI.dll on Win95,98,Me and
+* of NETAPI32.dll on NT,2000,XP,2003
+*
+* Copyright 2006 Konstantin Petrov
+*
+* 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 "config.h"
+#include "svrapi.h"
+#include <stdarg.h>
+#include "winbase.h"
+#include "wine/debug.h"
+#include "winerror.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(svrapi);
+
+LONG SVRAPI_refCount = 0;
+
+HINSTANCE SVRAPI_hInstance = 0;
+
+/***********************************************************************
+ * DllMain (SVRAPI.init)
+ */
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
+{
+ TRACE("%p 0x%lx %p\n", hinstDLL, fdwReason, fImpLoad);
+
+ switch(fdwReason) {
+ case DLL_WINE_PREATTACH:
+ return FALSE; /*prefer native version*/
+ case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(hinstDLL);
+ SVRAPI_hInstance = hinstDLL;
+ break;
+
+ case DLL_PROCESS_DETACH:
+ SVRAPI_hInstance = 0;
+ break;
+ }
+ return TRUE;
+}