public static extern HResult CreateAppContainerProfile( string pszAppContainerName, string pszDisplayName, string pszDescription, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 4)] SID_AND_ATTRIBUTES[] pCapabilities, UInt32 dwCapabilityCount, out SafeSecurityIdentifier ppSidAppContainerSid);
public static extern bool AllocateAndInitializeSid( ref SID_IDENTIFIER_AUTHORITY pIdentifierAuthority, byte nSubAuthorityCount, int dwSubAuthority0, int dwSubAuthority1, int dwSubAuthority2, int dwSubAuthority3, int dwSubAuthority4, int dwSubAuthority5, int dwSubAuthority6, int dwSubAuthority7, out SafeSecurityIdentifier pSid);
public static extern HResult DeriveAppContainerSidFromAppContainerName( string appContainerName, out SafeSecurityIdentifier pSid);