2OOO, 26 November
NTSYSAPI NTSTATUS NTAPIRtlCreateEnvironment(
IN BOOLEAN Inherit, OUT PVOID *Environment );
Inherit
If set, newly created environment are similar to caller's environment.*Environment
RtlCreateEnvironment allocate memory in caller's address space, and fills it with new environment block. Environment is pointer to this block.