ImageUnload function (imagehlp.h)
Deallocates resources from a previous call to the ImageLoad function.
BOOL IMAGEAPI ImageUnload( [in] PLOADED_IMAGE LoadedImage );
If the function succeeds, the return value is TRUE.
If the function fails, the return value is FALSE. To retrieve extended error information, call GetLastError.
ImageLoad and ImageUnload share internal data that can be corrupted if multiple consecutive calls to ImageLoad are performed. Therefore, make sure that you have called ImageLoad only once before calling ImageUnload.
All ImageHlp functions, such as this one, are single threaded. Therefore, calls from more than one thread to this function will likely result in unexpected behavior or memory corruption. To avoid this, you must synchronize all concurrent calls from more than one thread to this function.
|Minimum supported client||Windows XP [desktop apps only]|
|Minimum supported server||Windows Server 2003 [desktop apps only]|