Build userenv and samlib with NDK Modified: trunk/reactos/include/ndk/rtlfuncs.h Modified: trunk/reactos/lib/samlib/samlib.c Modified: trunk/reactos/lib/userenv/precomp.h _____
Modified: trunk/reactos/include/ndk/rtlfuncs.h --- trunk/reactos/include/ndk/rtlfuncs.h 2005-06-20 19:46:09 UTC (rev 16172) +++ trunk/reactos/include/ndk/rtlfuncs.h 2005-06-20 19:50:52 UTC (rev 16173) @@ -1142,6 +1142,13 @@
NTSTATUS STDCALL +RtlCreateEnvironment( + BOOLEAN Inherit, + PWSTR *Environment +); + +NTSTATUS +STDCALL RtlCreateUserThread( IN HANDLE ProcessHandle, IN PSECURITY_DESCRIPTOR SecurityDescriptor, @@ -1161,6 +1168,12 @@ IN PRTL_USER_PROCESS_PARAMETERS ProcessParameters );
+VOID +STDCALL +RtlDestroyEnvironment( + PWSTR Environment +); + NTSTATUS STDCALL RtlExpandEnvironmentStrings_U( @@ -1184,6 +1197,14 @@ PUNICODE_STRING Value );
+NTSTATUS +STDCALL +RtlSetEnvironmentVariable( + PWSTR *Environment, + PUNICODE_STRING Name, + PUNICODE_STRING Value +); + /* * Critical Section/Resource Functions */ _____
Modified: trunk/reactos/lib/samlib/samlib.c --- trunk/reactos/lib/samlib/samlib.c 2005-06-20 19:46:09 UTC (rev 16172) +++ trunk/reactos/lib/samlib/samlib.c 2005-06-20 19:50:52 UTC (rev 16173) @@ -28,10 +28,9 @@
/* INCLUDES *****************************************************************/
#include <windows.h> -#include <ntos.h> -#include <ntdll/rtl.h> #include <winerror.h> -#include <string.h> +#define NTOS_MODE_USER +#include <ndk/ntndk.h>
#include <samlib.h>
_____
Modified: trunk/reactos/lib/userenv/precomp.h --- trunk/reactos/lib/userenv/precomp.h 2005-06-20 19:46:09 UTC (rev 16172) +++ trunk/reactos/lib/userenv/precomp.h 2005-06-20 19:50:52 UTC (rev 16173) @@ -1,10 +1,6 @@
-#include <stdarg.h> -#include <stdio.h> -#include <string.h> -#include <tchar.h> #include <windows.h> #define NTOS_MODE_USER -#include <ntos.h> +#include <ndk/ntndk.h> #include <userenv.h>
#include "internal.h"