<PackageReference Include="Relativity.Server.Transfer.SDK" Version="24000.0.1" />

INativeMethods

interface INativeMethods
using Relativity.Transfer.Enumeration.Native; using System; using System.IO; using System.Runtime.InteropServices; namespace Relativity.Transfer.Enumeration.Interfaces { internal interface INativeMethods { SafeFindHandle FindFirstFile(string fileName, [In] [Out] NativeFindData data); bool FindNextFile(SafeFindHandle hndFindFile, [In] [Out] [MarshalAs(UnmanagedType.LPStruct)] NativeFindData lpFindFileData); bool FindClose(IntPtr handle); uint GetFileAttributes(string lpFileName); NativeCreateFileResult CreateFileW([MarshalAs(UnmanagedType.LPWStr)] string filename, [MarshalAs(UnmanagedType.U4)] FileAccess access, [MarshalAs(UnmanagedType.U4)] FileShare share, IntPtr securityAttributes, [MarshalAs(UnmanagedType.U4)] FileMode creationDisposition, [MarshalAs(UnmanagedType.U4)] FileAttributes flagsAndAttributes, IntPtr templateFile); } }