kernel32.dll符号链接(kernel32.dll symbolic link)

ctypes.windll.LoadLibrary(“kernel32.dll”)不在管理模式下创建符号链接。 是否可以将此dll复制到D:并从那里读取。 如果有的话会有什么反响?

import ctypes inpt = "D:/mayaslate/symlink/ssh0155_plate.0003.jpg" output = "D:/imagesequence/ssh0155_plate/ssh0155_plate.1003.jpg" kdll = ctypes.windll.LoadLibrary("D:/mayaslate/kernel32.dll") <--- is this possible kdll.CreateSymbolicLinkA(inpt , output, 0)

ctypes.windll.LoadLibrary("kernel32.dll") is not creating symbolic links when not in admin mode. is it possible to copy this dll into D: and read from there. What are the repurcussions if any.

import ctypes inpt = "D:/mayaslate/symlink/ssh0155_plate.0003.jpg" output = "D:/imagesequence/ssh0155_plate/ssh0155_plate.1003.jpg" kdll = ctypes.windll.LoadLibrary("D:/mayaslate/kernel32.dll") <--- is this possible kdll.CreateSymbolicLinkA(inpt , output, 0)

最满意答案

即使您从其他位置加载dll文件,您仍然没有任何管理员权限。

You still won't have any admin permissions, even if you load the dll file from another location.

更多推荐