Remove the unused functions SamGetDomainSid and SamSetDomainSid. They have been replaced by LSA APIs.

svn path=/trunk/; revision=56585
This commit is contained in:
Eric Kohl
2012-05-14 00:01:24 +00:00
parent 67b65c3947
commit 12ee9c9313
3 changed files with 0 additions and 54 deletions
-46
View 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
*/
-2
View File
@@ -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)
@@ -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,