#ifndef _NTRTL_H
#if (PHNT_VERSION >= PHNT_WINDOWS_8_1)
// rev
/**
* The RtlIsParentOfChildAppContainer routine determines whether one app container SID is the parent of another.
*
* \param ParentAppContainerSid A pointer to the candidate parent app container SID.
* \param ChildAppContainerSid A pointer to the candidate child app container SID.
* \return Returns `TRUE` if the first SID is the parent of the second, otherwise `FALSE`.
*/
NTSYSAPI
BOOLEAN
NTAPI
RtlIsParentOfChildAppContainer(
_In_ PSID ParentAppContainerSid,
_In_ PSID ChildAppContainerSid
);
View code on GitHubDetermines if two SIDs represent a pair of related child and parent AppContainer SIDs.
The function verifies the types of provided SIDs using RtlGetAppContainerSidType and then compares their first SECURITY_PARENT_PACKAGE_RID_COUNT (8) sub-authorities.
For the structure and relation between parent and child AppContainer SIDs, see APPCONTAINER_SID_TYPE.
This function was introduced in Windows 8.1 alongside the support for child AppContainers.