/// <summary> /// Opens a file on the device. /// </summary> /// <param name="client"> /// The client to use to open the file. /// </param> /// <param name="filename"> /// The file to open. (must be a fully-qualified path) /// </param> /// <param name="file_mode"> /// The mode to use to open the file. /// </param> /// <param name="handle"> /// Pointer to a uint64_t that will hold the handle of the file /// </param> /// <returns> /// AFC_E_SUCCESS on success or an AFC_E_* error value. /// </returns> public virtual AfcError afc_file_open(AfcClientHandle client, string filename, AfcFileMode fileMode, ref ulong handle) { return(AfcNativeMethods.afc_file_open(client, filename, fileMode, ref handle)); }
public static extern AfcError afc_file_open(AfcClientHandle client, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string filename, AfcFileMode fileMode, ref ulong handle);