NTSTATUS
MiCheckSecuredVad(
  IN  PMMVAD Vad,
  IN  PVOID Base,
  IN  SIZE_T Size,
  IN  ULONG ProtectionMask
  );

Routine Description:

    This routine checks to see if the specified VAD is secured in such
    a way as to conflict with the address range and protection mask
    specified.

Arguments:

    Vad - Supplies a pointer to the VAD containing the address range.

    Base - Supplies the base of the range the protection starts at.

    Size - Supplies the size of the range.

    ProtectionMask - Supplies the protection mask being set.

Return Value:

    Status value.

Environment:

    Kernel mode.