From 12ee9c9313f880ffcb8245d1f4e7c4d9e2cc46d2 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Mon, 14 May 2012 00:01:24 +0000 Subject: [PATCH] [SAMLIB] 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 | 46 -------------------- reactos/dll/win32/samlib/samlib.spec | 2 - reactos/include/reactos/libs/samlib/samlib.h | 6 --- 3 files changed, 54 deletions(-) diff --git a/reactos/dll/win32/samlib/samlib.c b/reactos/dll/win32/samlib/samlib.c index 9a50c728bbb..e6d2cddd012 100644 --- a/reactos/dll/win32/samlib/samlib.c +++ b/reactos/dll/win32/samlib/samlib.c @@ -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 */ diff --git a/reactos/dll/win32/samlib/samlib.spec b/reactos/dll/win32/samlib/samlib.spec index 0f2405606e1..9dc2eec5339 100644 --- a/reactos/dll/win32/samlib/samlib.spec +++ b/reactos/dll/win32/samlib/samlib.spec @@ -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) diff --git a/reactos/include/reactos/libs/samlib/samlib.h b/reactos/include/reactos/libs/samlib/samlib.h index 512d39a80c7..7f56fc58687 100644 --- a/reactos/include/reactos/libs/samlib/samlib.h +++ b/reactos/include/reactos/libs/samlib/samlib.h @@ -29,12 +29,6 @@ BOOL WINAPI SamInitializeSAM (VOID); -BOOL WINAPI -SamGetDomainSid (PSID *Sid); - -BOOL WINAPI -SamSetDomainSid (PSID Sid); - BOOL WINAPI SamCreateUser (PWSTR UserName, PWSTR UserPassword, -- 2.17.1