[DllImport("kernel32")]//获取ini数据
private static extern int GetPrivateProfileString(string section,string key,string def,StringBuilder retVal,int size,string filePath);
[DllImport("kernel32")]//把数据写到ini
private static extern int WritePrivateProfileString(string section, string key, string val, string filePath);
[DllImport("kernel32")]//获取windows目录
private static extern void GetWindowsDirectory(StringBuilder WinDir, int count);