public static string GetValue(string key) { StringBuilder s = new StringBuilder(1024); SystemDllFunctions.GetPrivateProfileString("UserConfig", key, "", s, 1024, inifilepath); return(s.ToString()); }
public static void ClearMemory() { GC.Collect(); GC.WaitForPendingFinalizers(); if (Environment.OSVersion.Platform == PlatformID.Win32NT) { SystemDllFunctions.SetProcessWorkingSetSize(Process.GetCurrentProcess().Handle, -1, -1); } }
public static void SetValue(string key, string value) { try { SystemDllFunctions.WritePrivateProfileString("UserConfig", key, value, inifilepath); } catch (Exception ex) { throw ex; } }