[DllImport("shlwapi.dll", CharSet = CharSet.Unicode)] public static extern int UrlCreateFromPath( [MarshalAs(UnmanagedType.LPWStr)] string pszPath, StringBuilder pszUrl, ref uint pcchUrl, uint dwFlags );
Microsoft documentation: Link
Last updated 1 year ago