IN  PSECURITY_DESCRIPTOR SecurityDescriptor,
  IN  PGENERIC_MAPPING GenericMapping,
  OUT PACCESS_MASK GrantedAccess

Routine Descriptions:

    This call acquires the minimum rights that are available to all tokens.
    This takes into account all deny access ACE(s) that would reduce the
    rights granted to an ACE for Everyone.


    SecurityDescriptor - Supplies the security descriptor protecting the
        object being accessed

    GenericMapping - Supplies a pointer to the generic mapping associated
        with this object type.

    GrantedAccess - Returns an access mask describing the granted access.

Return Value: