Louis Lenders : samlib: Add stubbed samlib.dll.

Alexandre Julliard julliard at winehq.org
Thu May 20 11:02:56 CDT 2010


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

Author: Louis Lenders <xerox_xerox2000 at yahoo.co.uk>
Date:   Tue May 11 22:59:22 2010 +0200

samlib: Add stubbed samlib.dll.

---

 configure               |    1 +
 configure.ac            |    1 +
 dlls/samlib/Makefile.in |   11 ++++++++
 dlls/samlib/main.c      |   48 ++++++++++++++++++++++++++++++++++
 dlls/samlib/samlib.spec |   65 +++++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 126 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 9de0946..cee32b9 100755
--- a/configure
+++ b/configure
@@ -14620,6 +14620,7 @@ wine_fn_config_dll rsabase enable_rsabase
 wine_fn_config_dll rsaenh enable_rsaenh rsaenh
 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
 wine_fn_config_dll rtutils enable_rtutils rtutils
+wine_fn_config_dll samlib enable_samlib
 wine_fn_config_dll sane.ds enable_sane_ds
 wine_fn_config_dll sccbase enable_sccbase
 wine_fn_config_dll schannel enable_schannel
diff --git a/configure.ac b/configure.ac
index 1e5ac7c..130291c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2550,6 +2550,7 @@ WINE_CONFIG_DLL(rsabase)
 WINE_CONFIG_DLL(rsaenh,,[rsaenh])
 WINE_CONFIG_TEST(dlls/rsaenh/tests)
 WINE_CONFIG_DLL(rtutils,,[rtutils])
+WINE_CONFIG_DLL(samlib)
 WINE_CONFIG_DLL(sane.ds)
 WINE_CONFIG_DLL(sccbase)
 WINE_CONFIG_DLL(schannel)
diff --git a/dlls/samlib/Makefile.in b/dlls/samlib/Makefile.in
new file mode 100644
index 0000000..860dc63
--- /dev/null
+++ b/dlls/samlib/Makefile.in
@@ -0,0 +1,11 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = samlib.dll
+IMPORTS   = kernel32
+
+C_SRCS = \
+	main.c
+
+ at MAKE_DLL_RULES@
diff --git a/dlls/samlib/main.c b/dlls/samlib/main.c
new file mode 100644
index 0000000..46e8f6e
--- /dev/null
+++ b/dlls/samlib/main.c
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2010 Louis Lenders
+ *
+ * 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 <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(samlib);
+
+/*****************************************************
+ *      DllMain
+ */
+BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
+{
+    TRACE("(%p, %d, %p)\n", hinst, reason, reserved);
+
+    switch(reason)
+    {
+    case DLL_WINE_PREATTACH:
+        return FALSE;  /* prefer native version */
+
+    case DLL_PROCESS_ATTACH:
+        DisableThreadLibraryCalls(hinst);
+        break;
+
+    case DLL_PROCESS_DETACH:
+        break;
+    }
+    return TRUE;
+}
diff --git a/dlls/samlib/samlib.spec b/dlls/samlib/samlib.spec
new file mode 100644
index 0000000..88f1600
--- /dev/null
+++ b/dlls/samlib/samlib.spec
@@ -0,0 +1,65 @@
+@ stub SamAddMemberToAlias
+@ stub SamAddMemberToGroup
+@ stub SamAddMultipleMembersToAlias
+@ stub SamChangePasswordUser2
+@ stub SamChangePasswordUser3
+@ stub SamChangePasswordUser
+@ stub SamCloseHandle
+@ stub SamConnect
+@ stub SamConnectWithCreds
+@ stub SamCreateAliasInDomain
+@ stub SamCreateGroupInDomain
+@ stub SamCreateUser2InDomain
+@ stub SamCreateUserInDomain
+@ stub SamDeleteAlias
+@ stub SamDeleteGroup
+@ stub SamDeleteUser
+@ stub SamEnumerateAliasesInDomain
+@ stub SamEnumerateDomainsInSamServer
+@ stub SamEnumerateGroupsInDomain
+@ stub SamEnumerateUsersInDomain
+@ stub SamFreeMemory
+@ stub SamGetAliasMembership
+@ stub SamGetCompatibilityMode
+@ stub SamGetDisplayEnumerationIndex
+@ stub SamGetGroupsForUser
+@ stub SamGetMembersInAlias
+@ stub SamGetMembersInGroup
+@ stub SamLookupDomainInSamServer
+@ stub SamLookupIdsInDomain
+@ stub SamLookupNamesInDomain
+@ stub SamOpenAlias
+@ stub SamOpenDomain
+@ stub SamOpenGroup
+@ stub SamOpenUser
+@ stub SamQueryDisplayInformation
+@ stub SamQueryInformationAlias
+@ stub SamQueryInformationDomain
+@ stub SamQueryInformationGroup
+@ stub SamQueryInformationUser
+@ stub SamQuerySecurityObject
+@ stub SamRemoveMemberFromAlias
+@ stub SamRemoveMemberFromForeignDomain
+@ stub SamRemoveMemberFromGroup
+@ stub SamRemoveMultipleMembersFromAlias
+@ stub SamRidToSid
+@ stub SamSetInformationAlias
+@ stub SamSetInformationDomain
+@ stub SamSetInformationGroup
+@ stub SamSetInformationUser
+@ stub SamSetMemberAttributesOfGroup
+@ stub SamSetSecurityObject
+@ stub SamShutdownSamServer
+@ stub SamTestPrivateFunctionsDomain
+@ stub SamTestPrivateFunctionsUser
+@ stub SamiChangeKeys
+@ stub SamiChangePasswordUser2
+@ stub SamiChangePasswordUser3
+@ stub SamiChangePasswordUser
+@ stub SamiEncryptPasswords
+@ stub SamiGetBootKeyInformation
+@ stub SamiLmChangePasswordUser
+@ stub SamiOemChangePasswordUser2
+@ stub SamiSetBootKeyInformation
+@ stub SamiSetDSRMPassword
+@ stub SamiSetDSRMPasswordOWF




More information about the wine-cvs mailing list