5.3.7 UnloadImage()

This service unloads a UEFI Driver from memory that was previously loaded using the UEFI Boot Service LoadImage(). There are currently no known use cases for this service from a UEFI Driver. UnloadImage() is typically used from a UEFI Application like the UEFI Shell to manage the set of active UEFI Drivers.


Caution: A UEFI Driver must never use this service to unload itself. This service frees all the memory associated with the UEFI Driver and returns control to the location the UEFI Driver used to reside in memory, thereby producing unexpected results.