Ejemplo n.º 1
0
        static public string ReadStringDef(string sec, string key, string def, string iniFilePathName)
        {
            StringBuilder result = new StringBuilder(2048);
            int           iret   = TdaWin32Api.GetPrivateProfileString(sec, key, def, result, result.Capacity, iniFilePathName);

            return(result.ToString());
        }
Ejemplo n.º 2
0
 static public bool WriteString(string sec, string key, string val, string iniFilePathName)
 {
     return(TdaWin32Api.WritePrivateProfileString(sec, key, val, iniFilePathName));
 }
Ejemplo n.º 3
0
 static public int ReadIntDef(string sec, string key, int def, string iniFilePathName)
 {
     return(TdaWin32Api.GetPrivateProfileInt(sec, key, def, iniFilePathName));
 }