UnMapAndLoad Function
Deallocate all resources that are allocated by a previous call to the MapAndLoad function.
BOOL UnMapAndLoad( __in PLOADED_IMAGE LoadedImage );
Parameters
- LoadedImage
-
A pointer to a LOADED_IMAGE structure. This structure is obtained through a call to the MapAndLoad function.
Return Value
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.
Remarks
The UnMapAndLoad function must be used to deallocate all resources that are allocated by a previous call to MapAndLoad. This function also writes a new checksum value into the image before the file is closed. This ensures that if a file is changed, it can be successfully loaded by the system loader.
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.
Requirements
Client |
Requires Windows Vista, Windows XP, Windows 2000 Professional, Windows NT Workstation 4.0, Windows Me, Windows 98, or Windows 95. |
---|---|
Server |
Requires Windows Server 2008, Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0. |
Header |
Declared in Imagehlp.h. |
Library |
Use Imagehlp.lib. |
DLL |
Requires Imagehlp.dll. |
See Also
ImageHlp FunctionsLOADED_IMAGE
MapAndLoad
Send comments about this topic to Microsoft
Build date: 9/25/2007
© 2007 Microsoft Corporation. All rights reserved.