문제

I can open, close, create files and directories using the Zw* functions available for Windows Kernel services. I can even open the underlying symbolic link object using ZwOpenSymbolicLinkObject, but I can't seem to actually make symbolic links.

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?

도움이 되었습니까?

해결책

There isn't direct API to create reparse points.

You need to use ZwFsControlFileZwFsControlFile() to send FSCTL_SET_REPARSE_POINT ioctl with appropriate input buffers and parameters.

Don't have example though!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top