DLL注入并调用DLL里的子程序的原理过程

2025-06-21 12:01:43
推荐回答(1个)
回答1:

把函数AB声明为extern "c" _declspec(dllexport) 在编写一个程序,用HANDLE CreateRemoteThread( HANDLE hProcess, // handle to process LPSECURITY_ATTRIBUTES lpThreadAttributes, // SD SIZE_T dwStackSize, // initial stack size LPTHREAD_START_ROUTINE lpStartAddress, // thread function LPVOID lpParameter, // thread argument DWORD dwCreationFlags, // creation option LPDWORD lpThreadId // thread identifier );这样就可以了