/* Retrieves a pointer to the system configuration table from the SMM System Table based on a specified GUID. */
EFI_STATUS EFIAPI SmmGetSystemConfigurationTable(IN EFI_GUID *TableGuid, OUT VOID **Table)
/* Retrieves a pointer to the system configuration table from the SMM System Table based on a specified GUID. */
EFI_STATUS EFIAPI SmmGetSystemConfigurationTable(IN EFI_GUID *TableGuid, OUT VOID **Table)
{
  UINTN  Index;
  ASSERT (TableGuid != NULL);
  ASSERT (Table != NULL);
  *Table = NULL;
  for (Index = 0; Index < gSmst->NumberOfTableEntries; Index++) {
    if (CompareGuid (TableGuid, &(gSmst->SmmConfigurationTable[Index].VendorGuid))) {
      *Table = gSmst->SmmConfigurationTable[Index].VendorTable;
      return EFI_SUCCESS;
    }
  }
  return EFI_NOT_FOUND;
}