16 lines
345 B
C#
16 lines
345 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace DTLib.Filesystem;
|
|
|
|
internal class Symlink
|
|
{
|
|
[DllImport("kernel32.dll", CharSet = CharSet.Unicode)]
|
|
internal static extern bool CreateSymbolicLink(string symlinkName, string sourceName, SymlinkTarget type);
|
|
|
|
internal enum SymlinkTarget
|
|
{
|
|
File,
|
|
Directory
|
|
}
|
|
}
|