[DllImport("Kernel32.dll", SetLastError = true)][return: MarshalAs(UnmanagedType.SafeHandle)] public static extern SafeFindVolumeHandle FindFirstVolume( StringBuilder lpszVolumeName, uint cchBufferLength );
Microsoft documentation: Link
Last updated 1 year ago