#2
rjsp2024-12-05 08:35
|
程序代码:
//使用dll需要与dll的lib文件进行静态链接
#pragma comment(lib,"D:\\vsCode\\peDll\\pe.lib")
//静态链接后需要进行函数导入
_declspec(dllimport) readFileToMemory(LPSTR pFilePath);
_declspec(dllimport) printPeDetailed(LPVOID pBufferAddress);
_declspec(dllimport) fileToMemory(LPVOID pBufferAddress);
_declspec(dllimport) memoryToFile(LPVOID pMemoryBufferAddress);
_declspec(dllimport) fileToRealFile(LPVOID pBufferAddress, CHAR* filePathName);
#pragma comment(lib,"D:\\vsCode\\peDll\\pe.lib")
//静态链接后需要进行函数导入
_declspec(dllimport) readFileToMemory(LPSTR pFilePath);
_declspec(dllimport) printPeDetailed(LPVOID pBufferAddress);
_declspec(dllimport) fileToMemory(LPVOID pBufferAddress);
_declspec(dllimport) memoryToFile(LPVOID pMemoryBufferAddress);
_declspec(dllimport) fileToRealFile(LPVOID pBufferAddress, CHAR* filePathName);
显示这些函数没有被定义,不能使用
只有本站会员才能查看附件,请 登录