/* Extract device path for given HII handle and class guid. */
CHAR16* ExtractDevicePathFromHandle(IN EFI_HII_HANDLE Handle)
/* Extract device path for given HII handle and class guid. */
CHAR16* ExtractDevicePathFromHandle(IN EFI_HII_HANDLE Handle)
{
  EFI_STATUS  Status;
  EFI_HANDLE  DriverHandle;
  ASSERT (Handle != NULL);
  if (Handle == NULL) {
    return NULL;
  }
  Status = gHiiDatabase->GetPackageListHandle (gHiiDatabase, Handle, &DriverHandle);
  if (EFI_ERROR (Status)) {
    return NULL;
  }
  return ConvertDevicePathToText (DevicePathFromHandle (DriverHandle), FALSE, FALSE);
}