Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我做了一些谷歌搜索,但并没有真正找到太多。GetProcAddress 是如何工作的?幕后发生了什么?方法名称和它们对应的地址是否存储在元数据中的某个地方?
确切地。它们存储在 DLL/EXE 导出标头中。您可以使用 dumpbin.exe 看到它。
查找 Matt Pietrek 关于 PE 文件格式的资料或他的书Windows 95 System Programming Secrets。有很多 GetProcAddress 的自定义实现可以查看。