How to use CreateHardLink(string lpSymlinkFileName, string lpTargetFileName, IntPtr lpSecurityAttributes) with a relative path for target?
Using
[DllImport("kernel32.dll")]
static extern bool CreateHardLink(string lpSymlinkFileNa开发者_运维技巧me,
string lpTargetFileName, IntPtr lpSecurityAttributes);
should I be able to use a relative path for the lpTargetFileName?
It doesn't seem to work for me. Should it? It works with full paths.
Edit:
This is Windows 7 and/or 2008
精彩评论