/* this function is useful to check whether the application is being asked to halt by the shell. */
BOOLEAN EFIAPI ShellGetExecutionBreakFlag(VOID)
/* this function is useful to check whether the application is being asked to halt by the shell. */
BOOLEAN EFIAPI ShellGetExecutionBreakFlag(VOID)
{
  if (gEfiShellProtocol != NULL) {
    if (gBS->CheckEvent (gEfiShellProtocol->ExecutionBreak) != EFI_SUCCESS) {
      return (FALSE);
    }
    return (TRUE);
  }
  if (mEfiShellEnvironment2 != NULL) {
    return (mEfiShellEnvironment2->GetExecutionBreak ());
  }
  return (FALSE);
}