[SAMLIB]
authorEric Kohl <eric.kohl@reactos.org>
Mon, 14 May 2012 00:01:24 +0000 (00:01 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Mon, 14 May 2012 00:01:24 +0000 (00:01 +0000)
Remove the unused functions SamGetDomainSid and SamSetDomainSid. They have been replaced by LSA APIs.

svn path=/trunk/; revision=56585

reactos/dll/win32/samlib/samlib.c
reactos/dll/win32/samlib/samlib.spec
reactos/include/reactos/libs/samlib/samlib.h

index 9a50c72..e6d2cdd 100644 (file)
@@ -298,52 +298,6 @@ SamInitializeSAM (VOID)
 }
 
 
 }
 
 
-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
  */
 /*
  * ERROR_USER_EXISTS
  */
index 0f24056..9dc2eec 100644 (file)
@@ -65,8 +65,6 @@
 @ stub SamiSetDSRMPasswordOWF
 
 @ stdcall SamInitializeSAM()
 @ stub SamiSetDSRMPasswordOWF
 
 @ stdcall SamInitializeSAM()
-@ stdcall SamGetDomainSid(ptr)
-@ stdcall SamSetDomainSid(ptr)
 @ stdcall SamCreateUser(wstr wstr ptr)
 @ stdcall SamCheckUserPassword(wstr wstr)
 @ stdcall SamGetUserSid(wstr ptr)
 @ stdcall SamCreateUser(wstr wstr ptr)
 @ stdcall SamCheckUserPassword(wstr wstr)
 @ stdcall SamGetUserSid(wstr ptr)
index 512d39a..7f56fc5 100644 (file)
 BOOL WINAPI
 SamInitializeSAM (VOID);
 
 BOOL WINAPI
 SamInitializeSAM (VOID);
 
-BOOL WINAPI
-SamGetDomainSid (PSID *Sid);
-
-BOOL WINAPI
-SamSetDomainSid (PSID Sid);
-
 BOOL WINAPI
 SamCreateUser (PWSTR UserName,
               PWSTR UserPassword,
 BOOL WINAPI
 SamCreateUser (PWSTR UserName,
               PWSTR UserPassword,