RtlSetEnvironmentStrings - NtDoc

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

/**
 * The RtlSetEnvironmentStrings routine replaces the environment block of the current process with the specified environment strings.
 *
 * \param NewEnvironment A pointer to the new environment block, consisting of null-terminated name=value strings terminated by an additional null character.
 * \param NewEnvironmentSize The size, in bytes, of the new environment block.
 * \return NTSTATUS Successful or errant status.
 */
NTSYSAPI
NTSTATUS
NTAPI
RtlSetEnvironmentStrings(
    _In_ PCWSTR NewEnvironment,
    _In_ SIZE_T NewEnvironmentSize
    );

#endif

View code on GitHub

NtDoc

No description available.