GetProcAddress Alternative via PE Export Table

This code demonstrates an alternative approach to calling external functions without using the GetProcAddress WinAPI function, which is commonly used to retrieve the address of exported functions from DLL files.

Traditionally, when using an external function from a library, developers would need to use LoadLibrary to map the library into memory, and then call GetProcAddress on the returned handle to obtain the address of the desired exported function.

However, it is possible to achieve the same goal without relying on GetProcAddress by manually parsing the PE header of the target library. It should be noted that even with this approach, LoadLibrary is still required to map the target library into memory, unless the DLL is loaded using an alternative method such as with the reflected DLL technique.

GetProcAddress DLL Export Table PE PE+

Depends On

Code Section

July 4, 2023, 9:53 a.m. | By Jean-Pierre LESUEUR