using System.Text; using System.Runtime.InteropServices; namespace Sheng.Winform.Controls.Win32 { /// /// /// public static class Kernel32 { /// /// /// /// /// /// /// /// [DllImport("kernel32")] public static extern long WritePrivateProfileString(string section, string key, string val, string filePath); /// /// /// /// /// /// /// /// /// /// [DllImport("kernel32")] public static extern int GetPrivateProfileString(string section, string key, string def, StringBuilder retVal, int size, string filePath); } }