[英]Create a symbolic link (or other NTFS reparse point) in Windows Driver
I can open, close, create files and directories using the Zw*
functions available for Windows Kernel services. 我可以使用Windows内核服务可用的
Zw*
函数打开,关闭,创建文件和目录。 I can even open the underlying symbolic link object using ZwOpenSymbolicLinkObject
, but I can't seem to actually make symbolic links. 我甚至可以使用
ZwOpenSymbolicLinkObject
打开底层的符号链接对象,但我似乎无法实际创建符号链接。
It seems this level of the API is not aware of symbolic links, so how would I go about using this (filesystem!) feature without the Win32 API? 似乎API的这个级别不知道符号链接,所以如何在没有Win32 API的情况下使用这个(文件系统!)功能?
There isn't direct API to create reparse points. 没有直接的API来创建重新分析点。
You need to use ZwFsControlFileZwFsControlFile()
to send FSCTL_SET_REPARSE_POINT
ioctl with appropriate input buffers and parameters. 您需要使用
ZwFsControlFileZwFsControlFile()
通过适当的输入缓冲区和参数发送FSCTL_SET_REPARSE_POINT
ioctl。
Don't have example though! 虽然没有例子!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.