为什么用getprocaddress中看到的导入表地址和用windbg看到的会不一样呢?请问dll的导入表地址怎么获取?
参考:http://blog.csdn.net/sidyhe/article/details/8267021
WinExec("cmd /c dumpbin /IMPORTS your.dll >d:\yourdllimports.txt",SW_HIDE);
//然后读文件d:\yourdllimports.txt的内容。
C:\Program Files\Microsoft Visual Studio 版本号\VC\bin\dumpbin.exe
具体哪里不一样,可能有编译器优化和OS对地址进行rebase等