using System.Runtime.InteropServices; namespace AspClassic.Scripting.Utils; internal static class NativeMethods { [DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] internal static extern bool SetEnvironmentVariable(string name, string value); }