RtlQueryThreadPlaceholderCompatibilityMode - NtDoc

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

NTSYSAPI
CHAR
NTAPI
RtlQueryThreadPlaceholderCompatibilityMode(
    VOID
    );

#endif
#endif

View code on GitHub
// ntifs.h

NTSYSAPI CHAR RtlQueryThreadPlaceholderCompatibilityMode();
View the official Windows Driver Kit DDI reference

NtDoc

This function is documented in Windows Driver Kit.

Windows Driver Kit DDI reference (nf-ntifs-rtlquerythreadplaceholdercompatibilitymode)

RtlQueryThreadPlaceholderCompatibilityMode function

Description

RtlQueryThreadPlaceholderCompatibilityMode returns the placeholder compatibility mode for the current thread.

Return value

Returns the thread's placeholder compatibility mode. If there was an error it returns a negative value. It can be one of the following values:

Compatibility Mode Value
PHCM_APPLICATION_DEFAULT 0
PHCM_DISGUISE_PLACEHOLDER 1
PHCM_EXPOSE_PLACEHOLDERS 2
PHCM_MAX 2
PHCM_ERROR_INVALID_PARAMETER -1
PHCM_ERROR_NO_TEB -2

Remarks

This function is similar to RtlQueryProcessPlaceholderCompatibilityMode, but performs at a thread level instead of a process level.

See also

RtlQueryProcessPlaceholderCompatibilityMode

RtlSetProcessPlaceholderCompatibilityMode

RtlSetThreadPlaceholderCompatibilityMode