Sync with trunk (r48008)
[reactos.git] / dll / win32 / advapi32 / misc / logon.c
index a0f8b08..8cd1954 100644 (file)
@@ -129,6 +129,20 @@ CreateProcessAsUserW(HANDLE hToken,
     return TRUE;
 }
 
+/*
+ * @unimplemented
+ */
+BOOL WINAPI CreateProcessWithLogonW( LPCWSTR lpUsername, LPCWSTR lpDomain, LPCWSTR lpPassword, DWORD dwLogonFlags,
+    LPCWSTR lpApplicationName, LPWSTR lpCommandLine, DWORD dwCreationFlags, LPVOID lpEnvironment,
+    LPCWSTR lpCurrentDirectory, LPSTARTUPINFOW lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation )
+{
+    FIXME("%s %s %s 0x%08x %s %s 0x%08x %p %s %p %p stub\n", debugstr_w(lpUsername), debugstr_w(lpDomain),
+    debugstr_w(lpPassword), dwLogonFlags, debugstr_w(lpApplicationName),
+    debugstr_w(lpCommandLine), dwCreationFlags, lpEnvironment, debugstr_w(lpCurrentDirectory),
+    lpStartupInfo, lpProcessInformation);
+
+    return FALSE;
+}
 
 /*
  * @implemented
@@ -749,17 +763,17 @@ LogonUserW(LPWSTR lpszUsername,
                            GENERIC_ALL,
                            OwnerSid);
 
-  RtlAllocateAndInitializeSid(&SystemAuthority,
-                              1,
-                              SECURITY_LOCAL_SYSTEM_RID,
-                              SECURITY_NULL_RID,
-                              SECURITY_NULL_RID,
-                              SECURITY_NULL_RID,
-                              SECURITY_NULL_RID,
-                              SECURITY_NULL_RID,
-                              SECURITY_NULL_RID,
-                              SECURITY_NULL_RID,
-                              &LocalSystemSid);
+    RtlAllocateAndInitializeSid(&SystemAuthority,
+                                1,
+                                SECURITY_LOCAL_SYSTEM_RID,
+                                SECURITY_NULL_RID,
+                                SECURITY_NULL_RID,
+                                SECURITY_NULL_RID,
+                                SECURITY_NULL_RID,
+                                SECURITY_NULL_RID,
+                                SECURITY_NULL_RID,
+                                SECURITY_NULL_RID,
+                                &LocalSystemSid);
 
     /* SID: S-1-5-18 */
     RtlAddAccessAllowedAce(Dacl,