SeSetSecurityDescriptorInfo

NTSTATUS __stdcall SeSetSecurityDescriptorInfo(
        VOID *Object,
        UINT64 *SecurityInformation,
        VOID *ModificationDescriptor,
        VOID **ObjectsSecurityDescriptor,
        POOL_TYPE PoolType,
        _GENERIC_MAPPING *GenericMapping,
        INT64 a7,
        VOID *a8){
  UINT64 AutoInheritFlags; 
  UINT64 v10; 

  if( !*ObjectsSecurityDescriptor )
    return -1073741609;
  LODWORD(v10) = PoolType;
  LODWORD(AutoInheritFlags) = 0;
  return RtlpSetSecurityObject(
           Object,
           *(unsigned int *)SecurityInformation,
           ModificationDescriptor,
           ObjectsSecurityDescriptor,
           AutoInheritFlags,
           v10,
           GenericMapping,
           0i64);
}

Referenced by:

IopSetDeviceSecurityDescriptor
ObSetSecurityDescriptorInfo