mirror of
https://github.com/reactos/reactos.git
synced 2025-05-18 00:31:27 +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);
|
BOOL RegisterTypeLibraries (HINF hinf, LPCWSTR szSection);
|
||||||
|
|
||||||
/* security.c */
|
/* security.c */
|
||||||
NTSTATUS SetAccountDomain(LPCWSTR DomainName,
|
|
||||||
PSID DomainSid);
|
|
||||||
VOID InstallSecurity(VOID);
|
VOID InstallSecurity(VOID);
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
SetAdministratorPassword(LPCWSTR Password);
|
SetAdministratorPassword(LPCWSTR Password);
|
||||||
|
|
|
@ -21,8 +21,10 @@
|
||||||
/* FUNCTIONS ****************************************************************/
|
/* FUNCTIONS ****************************************************************/
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
SetAccountDomain(LPCWSTR DomainName,
|
WINAPI
|
||||||
PSID DomainSid)
|
SetAccountsDomainSid(
|
||||||
|
PSID DomainSid,
|
||||||
|
LPCWSTR DomainName)
|
||||||
{
|
{
|
||||||
PPOLICY_ACCOUNT_DOMAIN_INFO OrigInfo = NULL;
|
PPOLICY_ACCOUNT_DOMAIN_INFO OrigInfo = NULL;
|
||||||
POLICY_ACCOUNT_DOMAIN_INFO Info;
|
POLICY_ACCOUNT_DOMAIN_INFO Info;
|
||||||
|
@ -35,7 +37,7 @@ SetAccountDomain(LPCWSTR DomainName,
|
||||||
|
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
|
||||||
DPRINT("SYSSETUP: SetAccountDomain\n");
|
DPRINT("SYSSETUP: SetAccountsDomainSid\n");
|
||||||
|
|
||||||
memset(&ObjectAttributes, 0, sizeof(LSA_OBJECT_ATTRIBUTES));
|
memset(&ObjectAttributes, 0, sizeof(LSA_OBJECT_ATTRIBUTES));
|
||||||
ObjectAttributes.Length = sizeof(LSA_OBJECT_ATTRIBUTES);
|
ObjectAttributes.Length = sizeof(LSA_OBJECT_ATTRIBUTES);
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
@ stub ReportError
|
@ stub ReportError
|
||||||
@ stub RunOEMExtraTasks
|
@ stub RunOEMExtraTasks
|
||||||
@ stdcall ScsiClassInstaller(long ptr ptr)
|
@ stdcall ScsiClassInstaller(long ptr ptr)
|
||||||
@ stub SetAccountDomainSid
|
@ stdcall SetAccountsDomainSid(ptr wstr)
|
||||||
@ stub SetupAddOrRemoveTestCertificate
|
@ stub SetupAddOrRemoveTestCertificate
|
||||||
@ stdcall SetupChangeFontSize(ptr wstr)
|
@ stdcall SetupChangeFontSize(ptr wstr)
|
||||||
@ stdcall SetupChangeLocale(ptr long)
|
@ stdcall SetupChangeLocale(ptr long)
|
||||||
|
|
|
@ -587,8 +587,8 @@ WriteComputerSettings(WCHAR * ComputerName, HWND hwndDlg)
|
||||||
/* Try to also set DNS hostname */
|
/* Try to also set DNS hostname */
|
||||||
SetComputerNameExW(ComputerNamePhysicalDnsHostname, ComputerName);
|
SetComputerNameExW(ComputerNamePhysicalDnsHostname, ComputerName);
|
||||||
|
|
||||||
/* Set the account domain name */
|
/* Set the accounts domain name */
|
||||||
SetAccountDomain(ComputerName, NULL);
|
SetAccountsDomainSid(NULL, ComputerName);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,9 +25,16 @@
|
||||||
|
|
||||||
/* System setup APIs */
|
/* System setup APIs */
|
||||||
|
|
||||||
DWORD WINAPI
|
DWORD
|
||||||
InstallReactOS (HINSTANCE hInstance);
|
WINAPI
|
||||||
|
InstallReactOS(
|
||||||
|
HINSTANCE hInstance);
|
||||||
|
|
||||||
|
NTSTATUS
|
||||||
|
WINAPI
|
||||||
|
SetAccountsDomainSid(
|
||||||
|
PSID DomainSid,
|
||||||
|
LPCWSTR DomainName);
|
||||||
|
|
||||||
/* Log File APIs */
|
/* Log File APIs */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue