admin管理员组

文章数量:1639677

        [DllImport("kernel32")]
        private static extern int GetPrivateProfileString(string section, string key, string def, StringBuilder retvalue, int siz, string inipath);
        [DllImport("kernel32")]
        private static extern long WritePrivateProfileString(string section, string key, string val, string filePath);
        
        private static string m_iniPath = System.Windows.Forms.Application.StartupPath + "\\config.ini";//配置路径


        //写INI文件     
        public static void IniWriteValue(string Section, string Key, string Value)    
        {

            WritePrivateProfileString(Section, Key, Value, m_iniPath);

        }



        //读取INI文件指定     
        public static string IniReadValue(string Section, string Key)

        {
            StringBuilder temp = new StringBuilder(255);

            int i = GetPrivate

本文标签: 账号密码文件INI