码迷,mamicode.com
首页 > Windows程序 > 详细

windows定位dll的搜索顺序

时间:2017-05-27 12:11:49      阅读:195      评论:0      收藏:0      [点我收藏+]

标签:sys   direct   隐式   .net   director   ++   net   .dll   搜索路径   

原文:http://blog.csdn.net/zzxian/article/details/6429293

 

Visual C++ 
Windows 用来定位 DLL 的搜索路径

通过隐式和显式链接,Windows 首先搜索“已知 DLL”,如 Kernel32.dll 和 User32.dll。Windows 然后按下列顺序搜索 DLL: 
  1.  当前进程的可执行模块所在的目录。 
  2.  当前目录。 
  3.  Windows 系统目录。GetSystemDirectory 函数检索此目录的路径。 
  4.  Windows 目录。GetWindowsDirectory 函数检索此目录的路径。 
  5.  PATH 环境变量中列出的目录。

windows定位dll的搜索顺序

标签:sys   direct   隐式   .net   director   ++   net   .dll   搜索路径   

原文地址:http://www.cnblogs.com/lizhigang/p/6912085.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!