fn CreateSymbolicLink(dir: ?HANDLE, sym_link_path: []const u16, target_path: []const u16, is_directory: bool) CreateSymbolicLinkError!void

Needs either:

  • SeCreateSymbolicLinkPrivilege privilege or
  • Developer mode on Windows 10 otherwise fails with error.AccessDenied. In which case sym_link_path may still be created on the file system but will lack reparse processing data applied to it.

Parameters

dir: ?HANDLE,
sym_link_path: []const u16,
target_path: []const u16,
is_directory: bool,