[DllImport("shlwapi.dll", CharSet = CharSet.Unicode)] public static extern bool PathUnExpandEnvStrings( [MarshalAs(UnmanagedType.LPWStr)] string pszPath, [MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszBuf, uint cchBuf );
Microsoft documentation: Link
Last updated 1 year ago