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