| File: _generated\0\LibraryImports.g.cs | Web Access |
| Project: src\runtime\src\libraries\System.IO.FileSystem.DriveInfo\src\System.IO.FileSystem.DriveInfo.csproj (System.IO.FileSystem.DriveInfo) |
// <auto-generated/> internal static partial class Interop { internal static partial class Sys { [global::System.Runtime.InteropServices.DllImportAttribute("libSystem.Native", EntryPoint = "SystemNative_ConvertErrorPlatformToPal", ExactSpelling = true)] internal static extern partial global::Interop.Error ConvertErrorPlatformToPal(int platformErrno); } } internal static partial class Interop { internal static partial class Sys { [global::System.Runtime.InteropServices.DllImportAttribute("libSystem.Native", EntryPoint = "SystemNative_ConvertErrorPalToPlatform", ExactSpelling = true)] internal static extern partial int ConvertErrorPalToPlatform(global::Interop.Error error); } } internal static partial class Interop { internal static partial class Sys { [global::System.Runtime.InteropServices.DllImportAttribute("libSystem.Native", EntryPoint = "SystemNative_StrErrorR", ExactSpelling = true)] private static unsafe extern partial byte* StrErrorR(int platformErrno, byte* buffer, int bufferSize); } } internal static partial class Interop { internal static partial class Sys { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "11.0.14.37520")] private static partial int PathConf(string path, global::Interop.Sys.PathConfName name) { unsafe { int __lastError; byte* __path_native = default; int __retVal = default; // Setup - Perform required setup. scoped global::System.Runtime.InteropServices.Marshalling.Utf8StringMarshaller.ManagedToUnmanagedIn __path_native__marshaller = new(); try { // Marshal - Convert managed data to native data. __path_native__marshaller.FromManaged(path, stackalloc byte[global::System.Runtime.InteropServices.Marshalling.Utf8StringMarshaller.ManagedToUnmanagedIn.BufferSize]); { // PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned. __path_native = __path_native__marshaller.ToUnmanaged(); global::System.Runtime.InteropServices.Marshal.SetLastSystemError(0); __retVal = __PInvoke(__path_native, name); __lastError = global::System.Runtime.InteropServices.Marshal.GetLastSystemError(); } } finally { // CleanupCallerAllocated - Perform cleanup of caller allocated resources. __path_native__marshaller.Free(); } global::System.Runtime.InteropServices.Marshal.SetLastPInvokeError(__lastError); return __retVal; // Local P/Invoke [global::System.Runtime.InteropServices.DllImportAttribute("libSystem.Native", EntryPoint = "SystemNative_PathConf", ExactSpelling = true)] static extern unsafe int __PInvoke(byte* __path_native, global::Interop.Sys.PathConfName __name_native); } } } } internal static partial class Interop { internal static partial class Sys { [global::System.Runtime.InteropServices.DllImportAttribute("libSystem.Native", EntryPoint = "SystemNative_GetAllMountPoints", ExactSpelling = true)] private static unsafe extern partial int GetAllMountPoints(delegate* unmanaged<void*, byte*, void> onFound, void* context); } } internal static partial class Interop { internal static partial class Sys { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "11.0.14.37520")] internal static partial int GetSpaceInfoForMountPoint(string name, out global::Interop.Sys.MountPointInformation mpi) { unsafe { int __lastError; mpi = default; byte* __name_native = default; int __retVal = default; // Setup - Perform required setup. scoped global::System.Runtime.InteropServices.Marshalling.Utf8StringMarshaller.ManagedToUnmanagedIn __name_native__marshaller = new(); try { // Marshal - Convert managed data to native data. __name_native__marshaller.FromManaged(name, stackalloc byte[global::System.Runtime.InteropServices.Marshalling.Utf8StringMarshaller.ManagedToUnmanagedIn.BufferSize]); // Pin - Pin data in preparation for calling the P/Invoke. fixed (global::Interop.Sys.MountPointInformation* __mpi_native = &mpi) { // PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned. __name_native = __name_native__marshaller.ToUnmanaged(); global::System.Runtime.InteropServices.Marshal.SetLastSystemError(0); __retVal = __PInvoke(__name_native, __mpi_native); __lastError = global::System.Runtime.InteropServices.Marshal.GetLastSystemError(); } } finally { // CleanupCallerAllocated - Perform cleanup of caller allocated resources. __name_native__marshaller.Free(); } global::System.Runtime.InteropServices.Marshal.SetLastPInvokeError(__lastError); return __retVal; // Local P/Invoke [global::System.Runtime.InteropServices.DllImportAttribute("libSystem.Native", EntryPoint = "SystemNative_GetSpaceInfoForMountPoint", ExactSpelling = true)] static extern unsafe int __PInvoke(byte* __name_native, global::Interop.Sys.MountPointInformation* __mpi_native); } } } } internal static partial class Interop { internal static partial class Sys { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "11.0.14.37520")] private static unsafe partial int GetFileSystemTypeNameForMountPoint(string name, byte* formatNameBuffer, int bufferLength, long* formatType) { unsafe { int __lastError; byte* __name_native = default; int __retVal = default; // Setup - Perform required setup. scoped global::System.Runtime.InteropServices.Marshalling.Utf8StringMarshaller.ManagedToUnmanagedIn __name_native__marshaller = new(); try { // Marshal - Convert managed data to native data. __name_native__marshaller.FromManaged(name, stackalloc byte[global::System.Runtime.InteropServices.Marshalling.Utf8StringMarshaller.ManagedToUnmanagedIn.BufferSize]); { // PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned. __name_native = __name_native__marshaller.ToUnmanaged(); global::System.Runtime.InteropServices.Marshal.SetLastSystemError(0); __retVal = __PInvoke(__name_native, formatNameBuffer, bufferLength, formatType); __lastError = global::System.Runtime.InteropServices.Marshal.GetLastSystemError(); } } finally { // CleanupCallerAllocated - Perform cleanup of caller allocated resources. __name_native__marshaller.Free(); } global::System.Runtime.InteropServices.Marshal.SetLastPInvokeError(__lastError); return __retVal; // Local P/Invoke [global::System.Runtime.InteropServices.DllImportAttribute("libSystem.Native", EntryPoint = "SystemNative_GetFileSystemTypeNameForMountPoint", ExactSpelling = true)] static extern unsafe int __PInvoke(byte* __name_native, byte* __formatNameBuffer_native, int __bufferLength_native, long* __formatType_native); } } } } internal static partial class Interop { internal static partial class Sys { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "11.0.14.37520")] internal static partial string RealPath(string path) { unsafe { int __lastError; bool __invokeSucceeded = default; byte* __path_native = default; string __retVal = default; byte* __retVal_native = default; // Setup - Perform required setup. scoped global::System.Runtime.InteropServices.Marshalling.Utf8StringMarshaller.ManagedToUnmanagedIn __path_native__marshaller = new(); try { // Marshal - Convert managed data to native data. __path_native__marshaller.FromManaged(path, stackalloc byte[global::System.Runtime.InteropServices.Marshalling.Utf8StringMarshaller.ManagedToUnmanagedIn.BufferSize]); { // PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned. __path_native = __path_native__marshaller.ToUnmanaged(); global::System.Runtime.InteropServices.Marshal.SetLastSystemError(0); __retVal_native = __PInvoke(__path_native); __lastError = global::System.Runtime.InteropServices.Marshal.GetLastSystemError(); } __invokeSucceeded = true; // Unmarshal - Convert native data to managed data. __retVal = global::System.Runtime.InteropServices.Marshalling.Utf8StringMarshaller.ConvertToManaged(__retVal_native); } finally { if (__invokeSucceeded) { // CleanupCalleeAllocated - Perform cleanup of callee allocated resources. global::System.Runtime.InteropServices.Marshalling.Utf8StringMarshaller.Free(__retVal_native); } // CleanupCallerAllocated - Perform cleanup of caller allocated resources. __path_native__marshaller.Free(); } global::System.Runtime.InteropServices.Marshal.SetLastPInvokeError(__lastError); return __retVal; // Local P/Invoke [global::System.Runtime.InteropServices.DllImportAttribute("libSystem.Native", EntryPoint = "SystemNative_RealPath", ExactSpelling = true)] static extern unsafe byte* __PInvoke(byte* __path_native); } } } }