#ifndef _NTRTL_H
//
// Cloud Filters
//
#if (PHNT_VERSION >= PHNT_WINDOWS_10_RS3)
NTSYSAPI
CHAR
NTAPI
RtlQueryThreadPlaceholderCompatibilityMode(
VOID
);
View code on GitHub// ntifs.h
NTSYSAPI CHAR RtlQueryThreadPlaceholderCompatibilityMode();
View the official Windows Driver Kit DDI referenceThis function is documented in Windows Driver Kit.
RtlQueryThreadPlaceholderCompatibilityMode returns the placeholder compatibility mode for the current thread.
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 |
This function is similar to RtlQueryProcessPlaceholderCompatibilityMode, but performs at a thread level instead of a process level.
RtlQueryProcessPlaceholderCompatibilityMode
RtlSetProcessPlaceholderCompatibilityMode
RtlSetThreadPlaceholderCompatibilityMode