简体   繁体   English

kernel32.dll符号链接

[英]kernel32.dll symbolic link

ctypes.windll.LoadLibrary("kernel32.dll") is not creating symbolic links when not in admin mode. 如果不在管理员模式下,则ctypes.windll.LoadLibrary(“ kernel32.dll”)不会创建符号链接。 is it possible to copy this dll into D: and read from there. 是否有可能将此dll复制到D:并从那里读取。 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文件,您仍然没有任何管理员权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM