ImageLoad Function
Maintains a list of loaded DLLs.
PLOADED_IMAGE ImageLoad( __in PSTR DllName, __in PSTR DllPath );
Parameters
- DllName
-
The name of the image.
- DllPath
-
The path used to locate the image if the name provided cannot be found. If NULL is used, then the search path rules set forth in the SearchPath function apply.
Return Value
If the function succeeds, the return value is a pointer to a LOADED_IMAGE structure.
If the function fails, the return value is NULL. To retrieve extended error information, call GetLastError.
Remarks
The ImageLoad function is used to maintain a list of loaded DLLs. If the image has already been loaded, the prior LOADED_IMAGE is returned. Otherwise, the new image is added to the list.
The LOADED_IMAGE structure must be deallocated by the ImageUnload function.
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 FunctionsImageUnload
LOADED_IMAGE
Send comments about this topic to Microsoft
Build date: 9/25/2007
© 2007 Microsoft Corporation. All rights reserved.