Author: ekohl
Date: Mon May 14 00:01:24 2012
New Revision: 56585
URL:
http://svn.reactos.org/svn/reactos?rev=56585&view=rev
Log:
[SAMLIB]
Remove the unused functions SamGetDomainSid and SamSetDomainSid. They have been replaced
by LSA APIs.
Modified:
trunk/reactos/dll/win32/samlib/samlib.c
trunk/reactos/dll/win32/samlib/samlib.spec
trunk/reactos/include/reactos/libs/samlib/samlib.h
Modified: trunk/reactos/dll/win32/samlib/samlib.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/samlib/samlib.c?…
==============================================================================
--- trunk/reactos/dll/win32/samlib/samlib.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/samlib/samlib.c [iso-8859-1] Mon May 14 00:01:24 2012
@@ -298,52 +298,6 @@
}
-BOOL WINAPI
-SamGetDomainSid (PSID *Sid)
-{
- DPRINT ("SamGetDomainSid() called\n");
-
- return FALSE;
-}
-
-
-BOOL WINAPI
-SamSetDomainSid (PSID Sid)
-{
- HKEY hAccountKey;
-
- DPRINT ("SamSetDomainSid() called\n");
-
- if (RegOpenKeyExW (HKEY_LOCAL_MACHINE,
- L"SAM\\SAM\\Domains\\Account",
- 0,
- KEY_ALL_ACCESS,
- &hAccountKey))
- {
- DPRINT1 ("Failed to open the Account key! (Error %lu)\n",
GetLastError());
- return FALSE;
- }
-
- if (RegSetValueExW (hAccountKey,
- L"Sid",
- 0,
- REG_BINARY,
- (LPBYTE)Sid,
- RtlLengthSid (Sid)))
- {
- DPRINT1 ("Failed to set Domain-SID value! (Error %lu)\n",
GetLastError());
- RegCloseKey (hAccountKey);
- return FALSE;
- }
-
- RegCloseKey (hAccountKey);
-
- DPRINT ("SamSetDomainSid() called\n");
-
- return TRUE;
-}
-
-
/*
* ERROR_USER_EXISTS
*/
Modified: trunk/reactos/dll/win32/samlib/samlib.spec
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/samlib/samlib.sp…
==============================================================================
--- trunk/reactos/dll/win32/samlib/samlib.spec [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/samlib/samlib.spec [iso-8859-1] Mon May 14 00:01:24 2012
@@ -65,8 +65,6 @@
@ stub SamiSetDSRMPasswordOWF
@ stdcall SamInitializeSAM()
-@ stdcall SamGetDomainSid(ptr)
-@ stdcall SamSetDomainSid(ptr)
@ stdcall SamCreateUser(wstr wstr ptr)
@ stdcall SamCheckUserPassword(wstr wstr)
@ stdcall SamGetUserSid(wstr ptr)
Modified: trunk/reactos/include/reactos/libs/samlib/samlib.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/libs/samli…
==============================================================================
--- trunk/reactos/include/reactos/libs/samlib/samlib.h [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/libs/samlib/samlib.h [iso-8859-1] Mon May 14 00:01:24
2012
@@ -30,12 +30,6 @@
SamInitializeSAM (VOID);
BOOL WINAPI
-SamGetDomainSid (PSID *Sid);
-
-BOOL WINAPI
-SamSetDomainSid (PSID Sid);
-
-BOOL WINAPI
SamCreateUser (PWSTR UserName,
PWSTR UserPassword,
PSID UserSid);