Beispiel #1
0
        /// <summary>
        /// Read Data Value From the Ini File
        /// </summary>
        /// <PARAM name="Section"></PARAM>
        /// <PARAM name="Key"></PARAM>
        /// <PARAM name="Path"></PARAM>
        /// <returns></returns>
        public string IniReadValue(string Section, string Key)
        {
            StringBuilder temp = new StringBuilder(255);
            int           i    = Kernel32Interop.GetPrivateProfileString(Section, Key, "", temp,
                                                                         255, this.path);

            return(temp.ToString());
        }
Beispiel #2
0
 /// <summary>
 /// Write Data to the INI File
 /// </summary>
 /// <PARAM name="Section"></PARAM>
 /// Section name
 /// <PARAM name="Key"></PARAM>
 /// Key Name
 /// <PARAM name="Value"></PARAM>
 /// Value Name
 public void IniWriteValue(string Section, string Key, string Value)
 {
     Kernel32Interop.WritePrivateProfileString(Section, Key, Value, this.path);
 }