/// <summary> /// Locks or unlocks a file on the device. /// Makes use of flock on the device. /// </summary> /// <param name="client"> /// The client to lock the file with. /// </param> /// <param name="handle"> /// File handle of a previously opened file. /// </param> /// <param name="operation"> /// the lock or unlock operation to perform, this is one of /// AFC_LOCK_SH (shared lock), AFC_LOCK_EX (exclusive lock), or /// AFC_LOCK_UN (unlock). /// </param> public virtual AfcError afc_file_lock(AfcClientHandle client, ulong handle, AfcLockOp operation) { return(AfcNativeMethods.afc_file_lock(client, handle, operation)); }
public static extern AfcError afc_file_lock(AfcClientHandle client, ulong handle, AfcLockOp operation);