[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)] public static extern uint GetFinalPathNameByHandle( IntPtr hFile, StringBuilder lpszFilePath, uint cchFilePath, uint dwFlags );
Microsoft documentation: Link
Last updated 1 year ago