Exemple #1
0
 /// <summary>
 /// Creates a hard link or symbolic link on the device.
 /// </summary>
 /// <param name="client">
 /// The client to use for making a link
 /// </param>
 /// <param name="linktype">
 /// 1 = hard link, 2 = symlink
 /// </param>
 /// <param name="target">
 /// The file to be linked.
 /// </param>
 /// <param name="linkname">
 /// The name of link.
 /// </param>
 /// <returns>
 /// AFC_E_SUCCESS on success or an AFC_E_* error value.
 /// </returns>
 public virtual AfcError afc_make_link(AfcClientHandle client, AfcLinkType linktype, string target, string linkname)
 {
     return(AfcNativeMethods.afc_make_link(client, linktype, target, linkname));
 }
Exemple #2
0
 public static extern AfcError afc_make_link(AfcClientHandle client, AfcLinkType linktype, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string target, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string linkname);