Author: akhaldi
Date: Sat Nov 15 11:57:24 2014
New Revision: 65405

URL: http://svn.reactos.org/svn/reactos?rev=65405&view=rev
Log:
[ADVAPI32]
* Update CreateProcessWithTokenW().
CORE-8540

Modified:
    trunk/reactos/dll/win32/advapi32/wine/security.c

Modified: trunk/reactos/dll/win32/advapi32/wine/security.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/wine/security.c?rev=65405&r1=65404&r2=65405&view=diff
==============================================================================
--- trunk/reactos/dll/win32/advapi32/wine/security.c    [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/wine/security.c    [iso-8859-1] Sat Nov 15 
11:57:24 2014
@@ -3328,20 +3328,18 @@
     return FALSE;
 }
 
-BOOL
-WINAPI
-CreateProcessWithTokenW(IN HANDLE hToken,
-                        IN DWORD dwLogonFlags,
-                        IN LPCWSTR lpApplicationName OPTIONAL,
-                        IN OUT LPWSTR lpCommandLine OPTIONAL,
-                        IN DWORD dwCreationFlags,
-                        IN LPVOID lpEnvironment OPTIONAL,
-                        IN LPCWSTR lpCurrentDirectory OPTIONAL,
-                        IN LPSTARTUPINFOW lpStartupInfo,
-                        OUT LPPROCESS_INFORMATION lpProcessInfo)
-{
-    UNIMPLEMENTED;
-    return FALSE;
+BOOL WINAPI CreateProcessWithTokenW(HANDLE token, DWORD logon_flags, LPCWSTR 
application_name, LPWSTR command_line,
+        DWORD creation_flags, void *environment, LPCWSTR current_directory, 
STARTUPINFOW *startup_info,
+        PROCESS_INFORMATION *process_information )
+{
+    FIXME("%p 0x%08x %s %s 0x%08x %p %s %p %p - semi-stub\n", token,
+          logon_flags, debugstr_w(application_name), debugstr_w(command_line),
+          creation_flags, environment, debugstr_w(current_directory),
+          startup_info, process_information);
+
+    /* FIXME: check if handles should be inherited */
+    return CreateProcessW( application_name, command_line, NULL, NULL, FALSE, 
creation_flags, environment,
+                           current_directory, startup_info, 
process_information );
 }
 
 /*


Reply via email to