/* This function is a callback that a driver registers to do cleanup when the UnloadImage boot service function is called. */
STATIC EFI_STATUS EFIAPI _DriverUnloadHandler(EFI_HANDLE ImageHandle)
/* This function is a callback that a driver registers to do cleanup when the UnloadImage boot service function is called. */
STATIC EFI_STATUS EFIAPI _DriverUnloadHandler(EFI_HANDLE ImageHandle)
{
  EFI_STATUS  Status;
  Status = ProcessModuleUnloadList (ImageHandle);
  if (!EFI_ERROR (Status)) {
    ProcessLibraryDestructorList (ImageHandle, gST);
  }
  return Status;
}