/* This function find LockBox by GUID from SMRAM. */
SMM_LOCK_BOX_DATA* InternalFindLockBoxByGuidFromSmram(IN LIST_ENTRY *LockBoxQueue, IN EFI_GUID *Guid)
/* This function find LockBox by GUID from SMRAM. */
SMM_LOCK_BOX_DATA* InternalFindLockBoxByGuidFromSmram(IN LIST_ENTRY *LockBoxQueue, IN EFI_GUID *Guid)
{
  LIST_ENTRY         *Link;
  SMM_LOCK_BOX_DATA  *LockBox;
  for (Link = InternalInitLinkDxe (LockBoxQueue);
       Link != LockBoxQueue;
       Link = InternalNextLinkDxe (Link))
  {
    LockBox = BASE_CR (
                Link,
                SMM_LOCK_BOX_DATA,
                Link
                );
    if (CompareGuid (&LockBox->Guid, Guid)) {
      return LockBox;
    }
  }
  return NULL;
}