mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 12:23:31 +00:00
[SAMLIB]
Remove the unused functions SamGetDomainSid and SamSetDomainSid. They have been replaced by LSA APIs. svn path=/trunk/; revision=56585
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user