Windows如何调用新创建的DLL的入口函数
来源:互联网 发布:淘宝一付款就交易关闭 编辑:程序博客网 时间:2024/05/01 10:52
1.Debug the MyNewDll project, try to know the calling style inwindows.
1. Calling stack
In SecMain.exe!SecNt32PeCoffRelocateImage, I call the LoadLibrary tocall the library.
In MyNewDll.dll!DllMain, it call the DllMain function in my MyNewDllproject.
2.Calling from _DllMainCRTStartup to __DllMainCRTStartup
3.Calling from __DllMainCRTStartup to DllMain
From the page 2-3, we can see the function name is hard code inwindows code, so you must use these names to make windows can find the functionit want to call when call LoadLibrary function.
In Our code, we just implement the _DllMainCRTStartup function andreturn TRUE to make the LoadLibrary function always return success.
4. PE header info (High light the entry point field)
Also in our test, when the function name is not _DllMainCRTStartupin PE's Entry Point field, it also canbe call in. so in windows, it not hard code about the entry point functionname. I think it get the entry point name from this filed, so we just registerthe entry function name here to make windows can call in.
- Windows如何调用新创建的DLL的入口函数
- DLL的DllMain入口函数
- DLLMain的入口函数不能创建新线程
- 如何调用未知接口的dll函数
- 如何编写可以调用的DLL函数
- dll里面的那个入口函数
- MFC DLL 的初始化入口函数:
- DLL中的dllMain入口函数的使用
- C++ 生成dll的入口函数
- C#调用C++dll文件 运行提示找不到函数的入口点
- C#调用C(C++)dll示例教程,包含dll找不到函数入口的解决办法,包含C#dll调用方式不对出错的解决办法
- InstallShield6.x调用由C++创建的DLL函数
- c#调用C++的DLL找不到入口点
- c#调用C++的DLL找不到入口点
- c#调用C++的DLL找不到入口点
- C#调用C语言生成的DLL“未找到入口”
- Windows 应用程序的入口函数编写
- Windows 下C、C++的入口函数
- 在windows下安装iphone编译环境【图解】
- 2012-03-06
- AS3 类库集合
- Flash中LIST组件使用总结
- jxl操作Excel,遇到两个问题
- Windows如何调用新创建的DLL的入口函数
- 尽早发现堆破坏
- poj1740
- 深入详解linux的启动过程
- cassandra学习笔记四
- ural 1009 K-based Numbers
- rs.next()
- outlook2007 收件箱规则
- asp.net 不安装Oracle客户端 连接 Oracle服务器