PathStripPath

[DllImport("shlwapi.dll", CharSet = CharSet.Unicode)]
public static extern void PathStripPath(
   [MarshalAs(UnmanagedType.LPWStr)] string lpszPath
);

Microsoft documentation: Link

Last updated