-/* $Id: init.c,v 1.43 2002/09/07 15:13:09 chorns Exp $
+/* $Id: init.c,v 1.44 2002/09/08 10:23:46 chorns Exp $
*
* init.c - Session Manager initialization
*
/* INCLUDES *****************************************************************/
-#define NTOS_USER_MODE
#include <ntos.h>
+#include <ntdll/rtl.h>
+#include <napi/lpc.h>
#include "smss.h"
PVOID Context,
PVOID EntryContext)
{
- PRTL_ROS_USER_PROCESS_PARAMETERS ProcessParameters;
+ PRTL_USER_PROCESS_PARAMETERS ProcessParameters;
RTL_PROCESS_INFO ProcessInfo;
UNICODE_STRING ImagePathString;
UNICODE_STRING CommandLineString;
RtlInitUnicodeString(&CommandLineString,
CommandLine);
- RtlRosCreateProcessParameters(&ProcessParameters,
+ RtlCreateProcessParameters(&ProcessParameters,
&ImagePathString,
NULL,
NULL,
NULL,
NULL);
- Status = RtlRosCreateUserProcess(&ImagePathString,
+ Status = RtlCreateUserProcess(&ImagePathString,
OBJ_CASE_INSENSITIVE,
ProcessParameters,
NULL,
return(STATUS_SUCCESS);
}
- RtlRosDestroyProcessParameters(ProcessParameters);
+ RtlDestroyProcessParameters(ProcessParameters);
/* Wait for process termination */
NtWaitForSingleObject(ProcessInfo.ProcessHandle,
UNICODE_STRING UnicodeString;
OBJECT_ATTRIBUTES ObjectAttributes;
UNICODE_STRING CmdLineW;
- PRTL_ROS_USER_PROCESS_PARAMETERS ProcessParameters;
+ PRTL_USER_PROCESS_PARAMETERS ProcessParameters;
RTL_PROCESS_INFO ProcessInfo;
HANDLE CsrssInitEvent;
WCHAR UnicodeBuffer[MAX_PATH];
RtlInitUnicodeString(&UnicodeString,
UnicodeBuffer);
- RtlRosCreateProcessParameters(&ProcessParameters,
+ RtlCreateProcessParameters(&ProcessParameters,
&UnicodeString,
NULL,
NULL,
NULL,
NULL);
- Status = RtlRosCreateUserProcess(&UnicodeString,
+ Status = RtlCreateUserProcess(&UnicodeString,
OBJ_CASE_INSENSITIVE,
ProcessParameters,
NULL,
NULL,
&ProcessInfo);
- RtlRosDestroyProcessParameters (ProcessParameters);
+ RtlDestroyProcessParameters (ProcessParameters);
if (!NT_SUCCESS(Status))
{
RtlInitUnicodeString(&UnicodeString,
UnicodeBuffer);
- RtlRosCreateProcessParameters(&ProcessParameters,
+ RtlCreateProcessParameters(&ProcessParameters,
&UnicodeString,
NULL,
NULL,
NULL,
NULL);
- Status = RtlRosCreateUserProcess(&UnicodeString,
+ Status = RtlCreateUserProcess(&UnicodeString,
OBJ_CASE_INSENSITIVE,
ProcessParameters,
NULL,
NULL,
&ProcessInfo);
- RtlRosDestroyProcessParameters(ProcessParameters);
+ RtlDestroyProcessParameters(ProcessParameters);
if (!NT_SUCCESS(Status))
{