/* Check whether the input HII handle is the FormSet that is being used. */
BOOLEAN IsHiiHandleInBrowserContext(EFI_HII_HANDLE Handle)
/* Check whether the input HII handle is the FormSet that is being used. */
BOOLEAN IsHiiHandleInBrowserContext(EFI_HII_HANDLE Handle)
{
  LIST_ENTRY       *Link;
  BROWSER_CONTEXT  *Context;
  if (mCurrentHiiHandle == Handle) {
    return TRUE;
  }
  Link = GetFirstNode (&gBrowserContextList);
  while (!IsNull (&gBrowserContextList, Link)) {
    Context = BROWSER_CONTEXT_FROM_LINK (Link);
    if (Context->HiiHandle == Handle) {
      return TRUE;
    }
    Link = GetNextNode (&gBrowserContextList, Link);
  }
  return FALSE;
}