/* If ImageHandle is NULL, then ASSERT (); If failed to locate a EFI_LOADED_IMAGE_PROTOCOL on ImageHandle, then ASSERT (); */
EFI_HANDLE InternalImageHandleToFvHandle(EFI_HANDLE ImageHandle)
/* If ImageHandle is NULL, then ASSERT (); If failed to locate a EFI_LOADED_IMAGE_PROTOCOL on ImageHandle, then ASSERT (); */
EFI_HANDLE InternalImageHandleToFvHandle(EFI_HANDLE ImageHandle)
{
  EFI_STATUS                 Status;
  EFI_LOADED_IMAGE_PROTOCOL  *LoadedImage;
  ASSERT (ImageHandle != NULL);
  Status = gBS->HandleProtocol (
                  ImageHandle,
                  &gEfiLoadedImageProtocolGuid,
                  (VOID **)&LoadedImage
                  );
  ASSERT_EFI_ERROR (Status);
  return LoadedImage->DeviceHandle;
}