function do_it() local iniFile local section local key local value iniFile = 'd:\tmp\app.ini' section = 'Firma' key = 'Director' value = strconv('CFE5F0E020CFE5F0E89E', 16) if( WritePrivateProfileStringUnicode( ; m.section, ; m.key, ; m.value, ; 1251, ; m.iniFile ; ) ; ) ? 'OK' else ? 'Fail' endif endfunc *_______________________________________________________________________________ function WritePrivateProfileStringUnicode as Boolean lparameters ; section as String, ; key as String, ; value as String, ; codepage as Integer, ; iniFile as String section = strconv(m.section+ chr(0), 5, m.codepage, 1) key = strconv(m.key+ chr(0) , 5, m.codepage, 1) value = strconv(m.value + chr(0), 5, m.codepage, 1) iniFile = strconv(m.iniFile+ chr(0) , 5, m.codepage, 1) return !empty(WritePrivateProfileStringW( ; @m.section, ; @m.key, ; @m.value, ; @m.inifile ; ) ; ) endfunc *_______________________________________________________________________________ function WritePrivateProfileStringW (section, key, value, inifile) local returnValue try declare integer WritePrivateProfileStringW in kernel32.dll ; string@ lpAppName, ; string@ lpKeyName, ; string@ lpString, ; string@ lpFileName returnValue = WritePrivateProfileStringW( ; @m.section, ; @m.key, ; @m.value, ; @m.inifile ; ) catch assert .f. returnValue = 0 endtry return m.returnValue endfunc *_______________________________________________________________________________