![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
VC++ DLL && COM
fqang163
这个作者很懒,什么都没留下…
展开
-
DLL 的使用
1.静态#pragma comment(lib,"MyDll.lib") 2.动态要先将MyDll.dll和MyDll.lib拷贝到当前工程 typedef int(*pMax)(int a,int b);typedef int(*pMin)(int a,int b);HINSTANCE hDLL;PMax MaxHDLL=LoadLibrary("MyDll.dll原创 2009-05-12 10:57:00 · 178 阅读 · 0 评论 -
hook key
HHOOK hhkHook=NULL; //定义钩子句柄 HINSTANCE hInstance=NULL; //程序实例BOOL APIENTRY DllMain( HMODULE hModule,原创 2009-05-12 13:11:00 · 506 阅读 · 0 评论 -
注入进程
int _tmain(int argc, TCHAR* argv[], TCHAR* envp[]){ HANDLE hRemoteThread, hRemoteProcess; PWSTR pszLibFileRemote=NULL; int nRetCode = 0; // initialize MFC and print and error on failure if (!AfxWin原创 2009-07-06 15:55:00 · 173 阅读 · 0 评论