2OOO, 3 December
NTSYSAPI VOID NTAPI
RtlSetCurrentEnvironment(
IN PVOID NewEnvironment, OUT PVOID *OldEnvironment OPTIONAL );
Pointer to newly created environment block.
Return pointer to previous environment block. You should release it by call RtlDestroyEnvironment.