diff --git a/configure b/configure index 9de0946bbf5..cee32b951c3 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 1e5ac7cb86c..130291c7f45 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 00000000000..860dc6367cb --- /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 + +@MAKE_DLL_RULES@ diff --git a/dlls/samlib/main.c b/dlls/samlib/main.c new file mode 100644 index 00000000000..46e8f6e0fc1 --- /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 + +#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 00000000000..88f16007d00 --- /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