From 7fdb1a2266376fb71964c2dc5c4533428dfa3fc9 Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Mon, 20 Jun 2005 19:50:52 +0000 Subject: [PATCH] Build userenv and samlib with NDK svn path=/trunk/; revision=16173 --- reactos/include/ndk/rtlfuncs.h | 21 +++++++++++++++++++++ reactos/lib/samlib/samlib.c | 5 ++--- reactos/lib/userenv/precomp.h | 6 +----- 3 files changed, 24 insertions(+), 8 deletions(-) diff --git a/reactos/include/ndk/rtlfuncs.h b/reactos/include/ndk/rtlfuncs.h index 1bd86878d8d..ef391931dd6 100644 --- a/reactos/include/ndk/rtlfuncs.h +++ b/reactos/include/ndk/rtlfuncs.h @@ -1140,6 +1140,13 @@ VOID STDCALL RtlReleasePebLock(VOID); +NTSTATUS +STDCALL +RtlCreateEnvironment( + BOOLEAN Inherit, + PWSTR *Environment +); + NTSTATUS STDCALL RtlCreateUserThread( @@ -1161,6 +1168,12 @@ RtlDeNormalizeProcessParams( IN PRTL_USER_PROCESS_PARAMETERS ProcessParameters ); +VOID +STDCALL +RtlDestroyEnvironment( + PWSTR Environment +); + NTSTATUS STDCALL RtlExpandEnvironmentStrings_U( @@ -1184,6 +1197,14 @@ RtlQueryEnvironmentVariable_U( PUNICODE_STRING Value ); +NTSTATUS +STDCALL +RtlSetEnvironmentVariable( + PWSTR *Environment, + PUNICODE_STRING Name, + PUNICODE_STRING Value +); + /* * Critical Section/Resource Functions */ diff --git a/reactos/lib/samlib/samlib.c b/reactos/lib/samlib/samlib.c index 47ed3f2c59f..52adc368a36 100644 --- a/reactos/lib/samlib/samlib.c +++ b/reactos/lib/samlib/samlib.c @@ -28,10 +28,9 @@ /* INCLUDES *****************************************************************/ #include -#include -#include #include -#include +#define NTOS_MODE_USER +#include #include diff --git a/reactos/lib/userenv/precomp.h b/reactos/lib/userenv/precomp.h index 8a240cc49f9..e57d0a290da 100644 --- a/reactos/lib/userenv/precomp.h +++ b/reactos/lib/userenv/precomp.h @@ -1,10 +1,6 @@ -#include -#include -#include -#include #include #define NTOS_MODE_USER -#include +#include #include #include "internal.h"