コード例 #1
0
ファイル: Config.cs プロジェクト: nhocwalcott/Luckey-Draw
        protected string ReadString(string section, string key, string defaultValue)
        {
            StringBuilder buffer = new StringBuilder(1024);

            if (IniApi.GetPrivateProfileString(section, key, defaultValue, buffer, 1024, ConfigFile) != 0)
            {
                return(buffer.ToString());
            }

            return(defaultValue);
        }
コード例 #2
0
ファイル: Config.cs プロジェクト: nhocwalcott/Luckey-Draw
 protected bool WriteString(string section, string key, string value)
 {
     return(IniApi.WritePrivateProfileString(section, key, value, ConfigFile) != 0);
 }