[SYSSETUP]

Rename SetAccountDomain to SetAccountsDomainSid and export it.

svn path=/trunk/; revision=71194
This commit is contained in:
Eric Kohl 2016-04-24 11:29:40 +00:00
parent 1fd32f0bbf
commit 84690a71d8
5 changed files with 18 additions and 10 deletions

View file

@ -74,8 +74,7 @@ extern ADMIN_INFO AdminInfo;
BOOL RegisterTypeLibraries (HINF hinf, LPCWSTR szSection);
/* security.c */
NTSTATUS SetAccountDomain(LPCWSTR DomainName,
PSID DomainSid);
VOID InstallSecurity(VOID);
NTSTATUS
SetAdministratorPassword(LPCWSTR Password);

View file

@ -21,8 +21,10 @@
/* FUNCTIONS ****************************************************************/
NTSTATUS
SetAccountDomain(LPCWSTR DomainName,
PSID DomainSid)
WINAPI
SetAccountsDomainSid(
PSID DomainSid,
LPCWSTR DomainName)
{
PPOLICY_ACCOUNT_DOMAIN_INFO OrigInfo = NULL;
POLICY_ACCOUNT_DOMAIN_INFO Info;
@ -35,7 +37,7 @@ SetAccountDomain(LPCWSTR DomainName,
NTSTATUS Status;
DPRINT("SYSSETUP: SetAccountDomain\n");
DPRINT("SYSSETUP: SetAccountsDomainSid\n");
memset(&ObjectAttributes, 0, sizeof(LSA_OBJECT_ATTRIBUTES));
ObjectAttributes.Length = sizeof(LSA_OBJECT_ATTRIBUTES);

View file

@ -38,7 +38,7 @@
@ stub ReportError
@ stub RunOEMExtraTasks
@ stdcall ScsiClassInstaller(long ptr ptr)
@ stub SetAccountDomainSid
@ stdcall SetAccountsDomainSid(ptr wstr)
@ stub SetupAddOrRemoveTestCertificate
@ stdcall SetupChangeFontSize(ptr wstr)
@ stdcall SetupChangeLocale(ptr long)

View file

@ -587,8 +587,8 @@ WriteComputerSettings(WCHAR * ComputerName, HWND hwndDlg)
/* Try to also set DNS hostname */
SetComputerNameExW(ComputerNamePhysicalDnsHostname, ComputerName);
/* Set the account domain name */
SetAccountDomain(ComputerName, NULL);
/* Set the accounts domain name */
SetAccountsDomainSid(NULL, ComputerName);
return TRUE;
}

View file

@ -25,9 +25,16 @@
/* System setup APIs */
DWORD WINAPI
InstallReactOS (HINSTANCE hInstance);
DWORD
WINAPI
InstallReactOS(
HINSTANCE hInstance);
NTSTATUS
WINAPI
SetAccountsDomainSid(
PSID DomainSid,
LPCWSTR DomainName);
/* Log File APIs */