-/* $Id: init.c,v 1.14 2000/02/25 23:58:57 ekohl Exp $
+/* $Id: init.c,v 1.15 2000/02/27 15:47:17 ekohl Exp $
*
* init.c - Session Manager initialization
*
{
UNICODE_STRING EnvVariable;
UNICODE_STRING EnvValue;
+ UNICODE_STRING EnvExpandedValue;
+ ULONG ExpandedLength;
+ WCHAR ExpandBuffer[512];
/*
* The following environment variables are read from the registry.
RtlSetEnvironmentVariable (&SmSystemEnvironment,
&EnvVariable,
&EnvValue);
+
+
+ /* Set "Path = %SystemRoot%\system32;%SystemRoot%" */
+ RtlInitUnicodeString (&EnvVariable,
+ L"Path");
+ RtlInitUnicodeString (&EnvValue,
+ L"%SystemRoot%\\system32;%SystemRoot%");
+ EnvExpandedValue.Length = 0;
+ EnvExpandedValue.MaximumLength = 512 * sizeof(WCHAR);
+ EnvExpandedValue.Buffer = ExpandBuffer;
+ *ExpandBuffer = 0;
+ RtlExpandEnvironmentStrings_U (SmSystemEnvironment,
+ &EnvValue,
+ &EnvExpandedValue,
+ &ExpandedLength);
+ RtlSetEnvironmentVariable (&SmSystemEnvironment,
+ &EnvVariable,
+ &EnvExpandedValue);
+
+ /* Set "windir = %SystemRoot%" */
+ RtlInitUnicodeString (&EnvVariable,
+ L"windir");
+ RtlInitUnicodeString (&EnvValue,
+ L"%SystemRoot%");
+ EnvExpandedValue.Length = 0;
+ EnvExpandedValue.MaximumLength = 512 * sizeof(WCHAR);
+ EnvExpandedValue.Buffer = ExpandBuffer;
+ *ExpandBuffer = 0;
+ RtlExpandEnvironmentStrings_U (SmSystemEnvironment,
+ &EnvValue,
+ &EnvExpandedValue,
+ &ExpandedLength);
+ RtlSetEnvironmentVariable (&SmSystemEnvironment,
+ &EnvVariable,
+ &EnvExpandedValue);
}
-/* $Id: smss.c,v 1.6 2000/02/14 14:13:34 dwelch Exp $
+/* $Id: smss.c,v 1.7 2000/02/27 15:47:17 ekohl Exp $
*
* smss.c - Session Manager
*
void NtProcessStartup (PPEB Peb)
{
HANDLE Children[2]; /* csrss, winlogon */
-
- DisplayString( L"Session Manager\n" );
- PrintString ("Peb %x\n", Peb);
+ DisplayString( L"Session Manager\n" );
if (TRUE == InitSessionManager(Children))
{