BOOLEAN
RtlpValidOwnerSubjectContext(
  IN  HANDLE Token,
  IN  PSID Owner,
  IN  BOOLEAN ServerObject,
  OUT PNTSTATUS ReturnStatus
  );

Routine Description:

    This routine checks to see whether the provided SID is one the subject
    is authorized to assign as the owner of objects.

Arguments:

    Token - Points to the subject's effective token

    Owner - Points to the SID to be checked.

    ServerObject - Boolean indicating whether or not this is a server
       object, meaning it is protected by a primary-client combination.

    ReturnStatus - Status to be passed back to the caller on failure.

Return Value:

    FALSE on failure.