使用VC++6.0实现查看dll导出函数名的C++源代码
HMODULE hModule=::LoadLibrary("DbgHelp.dll"); if(hModule==NULL) return; PFNEXPORTFUNC ImageRvaToVax=NULL; ImageRvaToVax=(PFNEXPORTFUNC)::GetProcAddress(hModule,"ImageRvaToVa"); if(ImageRvaToVax==NULL) { UnmapViewOfFile(mod_base); CloseHandle(hFileMap); CloseHandle(hFile); ::FreeLibrary(hModule); MessageBox("取得函数失败\n"); return ; } ::FreeLibrary(hModule); UnmapViewOfFile(mod_base); CloseHandle(hFileMap); CloseHandle(hFile);
文件列表
GetDllFunName.rar
(预估有个24文件)
GetDllFunName
ReadMe.txt
4KB
StdAfx.h
1KB
GetDllFunName.rc
5KB
GetDllFunName.opt
806KB
res
head.ico
1KB
GetDllFunName.ico
1KB
GetDllFunName.rc2
405B
GetDllFunName.clw
877B
暂无评论