/* Check to see if the heap guard is enabled for page and/or pool allocation. */
BOOLEAN IsHeapGuardEnabled(VOID)
/* Check to see if the heap guard is enabled for page and/or pool allocation. */
BOOLEAN IsHeapGuardEnabled(VOID)
{
  return IsMemoryTypeToGuard (
           EfiMaxMemoryType,
           AllocateAnyPages,
           GUARD_HEAP_TYPE_POOL|GUARD_HEAP_TYPE_PAGE
           );
}