mirror of
https://github.com/reactos/reactos.git
synced 2025-05-17 16:27:00 +00:00
[SYSSETUP]
Rename SetAccountDomain to SetAccountsDomainSid and export it. svn path=/trunk/; revision=71194
This commit is contained in:
parent
1fd32f0bbf
commit
84690a71d8
5 changed files with 18 additions and 10 deletions
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in a new issue