RtlCheckSandboxedToken - NtDoc

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

// rev
NTSYSAPI
NTSTATUS
NTAPI
RtlCheckSandboxedToken(
    _In_opt_ HANDLE TokenHandle,
    _Out_ PBOOLEAN IsSandboxed
    );

#endif
#endif

View code on GitHub

Determines if a token is considered sandboxed (i.e., has integrity level below medium).

Parameters

Pseudo-handles

This function supports the following pseudo-handle values:

Implementation details

On modern versions of Windows, this function calls NtQueryInformationToken with TokenIsSandboxed info class. Previously, it used to create a security descriptor with a medium mandatory label and perform an access check against it via NtAccessCheck.

Required OS version

This function was introduced in Windows 10 TH1 (1507).

See also