RtlSetCurrentEnvironment - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H

NTSYSAPI
NTSTATUS
NTAPI
RtlSetCurrentEnvironment(
    _In_ PVOID Environment,
    _Out_opt_ PVOID *PreviousEnvironment
    );

#endif

View code on GitHub

NewEnvironment

Pointer to newly created environment block.

OldEnvironment

Return pointer to previous environment block. You should release it by call RtlDestroyEnvironment.

Documented by

See also