SeCaptureObjectAttributeSecurityDescriptorPresent

NTSTATUS __stdcall SeCaptureObjectAttributeSecurityDescriptorPresent(
        _OBJECT_ATTRIBUTES *ObjectAttributes,
        INT8 RequestorMode,
        UINT8 *SecurityDescriptorPresent){
  *SecurityDescriptorPresent = 0;
  if( RequestorMode )
  {
    if( ObjectAttributes )
    {
      if( ((unsigned __int8)ObjectAttributes & 3) != 0 )
        ExRaiseDatatypeMisalignment();
      if( ObjectAttributes->SecurityDescriptor )
        *SecurityDescriptorPresent = 1;
    }
  }
  else if( ObjectAttributes && ObjectAttributes->SecurityDescriptor )
  {
    *SecurityDescriptorPresent = 1;
  }
  return 0;
}

Referenced by:

NtDuplicateToken
SepCreateTokenEx