[SYSSETUP]
authorEric Kohl <eric.kohl@reactos.org>
Sun, 24 Apr 2016 11:29:40 +0000 (11:29 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Sun, 24 Apr 2016 11:29:40 +0000 (11:29 +0000)
Rename SetAccountDomain to SetAccountsDomainSid and export it.

svn path=/trunk/; revision=71194

reactos/dll/win32/syssetup/globals.h
reactos/dll/win32/syssetup/security.c
reactos/dll/win32/syssetup/syssetup.spec
reactos/dll/win32/syssetup/wizard.c
reactos/sdk/include/reactos/libs/syssetup/syssetup.h

index a3e9c1c..456cef9 100644 (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);
index 5dec604..9771690 100644 (file)
 /* 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);
index 0acfdab..ed4e0e1 100644 (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)
index dba513e..89dee4c 100644 (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;
 }
index a78f478..6a7ec56 100644 (file)
 
 /* System setup APIs */
 
-DWORD WINAPI
-InstallReactOS (HINSTANCE hInstance);
+DWORD
+WINAPI
+InstallReactOS(
+    HINSTANCE hInstance);
 
+NTSTATUS
+WINAPI
+SetAccountsDomainSid(
+    PSID DomainSid,
+    LPCWSTR DomainName);
 
 /* Log File APIs */