mirror of
https://github.com/reactos/reactos.git
synced 2026-06-02 01:11:03 +08:00
[SYSSETUP]
Rename SetAccountDomain to SetAccountsDomainSid and export it. svn path=/trunk/; revision=71194
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user