RtlCreateEnvironment - NtDoc

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

// Environment

NTSYSAPI
NTSTATUS
NTAPI
RtlCreateEnvironment(
    _In_ BOOLEAN CloneCurrentEnvironment,
    _Out_ PVOID *Environment
    );

#endif

View code on GitHub

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.

Documented by

See also