I read <windows via c / C ++>, it describes the GetModuleHandle () API, as shown below:
When you call this function, you pass a null-terminated string that indicates the name of the executable or DLL file loaded into the address space of the calling process. If the system finds the specified executable or DLL name , GetModuleHandle returns the base address to which the executable or DLL file is loaded.
I wonder where the system is looking for a file name ? When I loaded some file into the process address space, is there any centralized table for storing the mapping of all the names of the downloaded files and their download addresses? If we do a string match search, is that a little low efficiency?
Thanks so much for your insigts.
windows
smwikipedia
source share