首页 > 应用开发 > > Windows-dll搜索顺序
不附加任何其他条件时,标准的DLL搜索顺序如下:
1.应用程序的加载目录:D:\Test
2.当前目录(默认为程序加载目录,可以通过SetCurrentDirectory修改,通过GetCurrentDirectory获取)
3.系统目录(32位系统下通常是,C:\Windows\System32,可以通过GetSystemDirectory获取)
4.16位系统目录(忽略)
5.Windows目录(通常是,C:\Windows,可以通过GetWindowsDirectory获取)
6.PATH环境变量中列出的所有路径
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/1926/viewspace-3139685/ ,如需转载,请注明出处,否则将追究法律责任。