使用LoadLibrary函数装载一个DLL文件,没有指定文件路径,那么操作系统搜索DLL文件的策略如下
2016-02-17 15:36
363 查看
程序中调用LoadLibrary函数装载一个DLL文件,没有指定文件路径,那么Windows操作系统搜索DLL文件的顺序如下:
MSDN中说得很明白:
1.The directory where the executable module for the current process is located.
进程的所在目录
2.The current directory.
当前目录
3.The Windows system directory. The GetSystemDirectory function retrieves the path of this directory.
Windows系统目录
4.The Windows directory. The GetWindowsDirectory function retrieves the path of this directory.
Windows目录
5.The directories listed in the PATH environment variable.
Path环境变量中的目录
当一个DLL文件被装入内存后,其他应用程序不必再重复装入同名的DLL(不论要装入的DLL存放在什么位置)。
MSDN中说得很明白:
1.The directory where the executable module for the current process is located.
进程的所在目录
2.The current directory.
当前目录
3.The Windows system directory. The GetSystemDirectory function retrieves the path of this directory.
Windows系统目录
4.The Windows directory. The GetWindowsDirectory function retrieves the path of this directory.
Windows目录
5.The directories listed in the PATH environment variable.
Path环境变量中的目录
当一个DLL文件被装入内存后,其他应用程序不必再重复装入同名的DLL(不论要装入的DLL存放在什么位置)。
相关文章推荐
- linux下使用yum安装mysql5.1详解
- iOS带动画的环形进度条(进度条和数字同步)
- .
- css关于内外边距的详细解释
- jQuery之DOM操作大全
- Android TouchEvent事件传递机制
- SQLSERVER 语法大全
- union和union all的区别
- web网站性能优化工具--网站性能工具Yslow的使用方法
- [置顶] 自己动手丰衣足食之表单美化checkbox和radio和下拉列表
- shell 批量生成测试数据
- Bootstrap入门书籍之(五)导航条、分页导航
- [置顶] Android UI顶部导航栏模板
- 高并发网站一些记录
- 前端之React实战-组件
- Usb Boot Loader(1)
- 算法题21 打印1到最大的n位数
- linux解决dns解析问题
- Android单元测试中insert数据入DB异常
- 扣去ul li中的指定标签里的文字