SeSetSecurityDescriptorInfo

INT64 __stdcall SeSetSecurityDescriptorInfo(
        PVOID Object,
        UINT64 *SecurityInformation,
        PVOID ModificationDescriptor,
        PVOID *ObjectsSecurityDescriptor,
        _POOL_TYPE PoolType,
        _GENERIC_MAPPING *GenericMapping){
  UINT64 AutoInheritFlags; 
  UINT64 v8; 
  if( !*ObjectsSecurityDescriptor )
    return 3221225687i64;
  LODWORD(v8) = PoolType;
  LODWORD(AutoInheritFlags) = 0;
  return RtlpSetSecurityObject(
           Object,
           *(unsigned int *)SecurityInformation,
           ModificationDescriptor,
           ObjectsSecurityDescriptor,
           AutoInheritFlags,
           v8,
           GenericMapping,
           0i64);
}

Referenced by:

IopSetDeviceSecurityDescriptor
ObSetSecurityDescriptorInfo