public override void Cleanup( Object fileNode, Object fileDesc0, String fileName, UInt32 flags) { FileDescriptor fileDesc = (FileDescriptor)fileDesc0; if (0 != (flags & CleanupDelete)) { fileDesc.SetDisposition(true); fileDesc.Dispose(); } }
public override Int32 CanDelete( Object fileNode, Object fileDesc0, String fileName) { FileDescriptor fileDesc = (FileDescriptor)fileDesc0; if (fileDesc.IsWriteable()) { fileDesc.SetDisposition(false); return(STATUS_SUCCESS); } else { return(STATUS_ACCESS_DENIED); } }