RtlGetAppContainerParent - NtDoc

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

// rev
/**
 * The RtlGetAppContainerParent routine retrieves the parent app container SID of the specified app container SID.
 *
 * \param AppContainerSid A pointer to the child app container SID.
 * \param AppContainerSidParent A pointer to a variable that receives the parent app container SID. The caller frees it with RtlFreeSid.
 * \return NTSTATUS Successful or errant status.
 */
NTSYSAPI
NTSTATUS
NTAPI
RtlGetAppContainerParent(
    _In_ PSID AppContainerSid,
    _Out_ PSID* AppContainerSidParent // RtlFreeSid
    );

#endif
#endif

View code on GitHub

NtDoc

Derives a parent AppContainer SID from a child AppContainer SID.

Parameters

Remarks

To avoid retaining unused resources, call RtlFreeSid to free the returned SID when it is no longer required.

For the structure and relation between parent and child AppContainer SIDs, see APPCONTAINER_SID_TYPE.

Required OS version

This function was introduced in Windows 8.1 alongside the support for child AppContainers.

See also