RtlGetNtSystemRoot - NtDoc

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

// rev
/**
 * The RtlGetNtSystemRoot routine returns the path of the Windows system root directory.
 *
 * \return PWSTR A pointer to a null-terminated string containing the system root path.
 * \remarks Returns a borrowed runtime/shared-data string, including silo-specific data when applicable. Do not free or modify it, and do not confuse it with an allocated copy or proof that a particular filesystem path exists.
 */
NTSYSAPI
PWSTR
NTAPI
RtlGetNtSystemRoot(
    VOID
    );

#endif
#endif

View code on GitHub

NtDoc

No description available.