ImageLoad

The ImageLoad function maintains a list of loaded DLLs.

PLOADED_IMAGE ImageLoad(

IN LPSTR DllName,  
IN LPSTR DllPath  
);  

Parameters

DllName

The name of the image that is loaded.

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 will apply.

Return Values

If the function succeeds, the return value is a pointer to a LOADED_IMAGE structure. The returned structure must be deallocated by the ImageUnload function.

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 PLOADED_IMAGE is returned. Otherwise, the new image is added to the list.