#ifndef _NTRTL_H
#if (PHNT_VERSION >= PHNT_WINDOWS_8)
// rev
/**
* The RtlIsCapabilitySid routine determines whether the specified SID is a capability SID.
*
* \param Sid A pointer to the SID to test.
* \return Returns `TRUE` if the SID is a capability SID, otherwise `FALSE`.
*/
NTSYSAPI
BOOLEAN
NTAPI
RtlIsCapabilitySid(
_In_ PSID Sid
);
View code on GitHubDetermines if the specified SID is a capability SID.
Sid - a SID to check.The function checks if the SID belongs to SECURITY_APP_PACKAGE_AUTHORITY (15) with SECURITY_CAPABILITY_BASE_RID (3). In other words, it accepts S-1-15-3-* SIDs.
This function was introduced in Windows 8.