diff --git a/API_General.cpp b/API_General.cpp index 923e3de..608cb49 100644 --- a/API_General.cpp +++ b/API_General.cpp @@ -306,3 +306,22 @@ __stdcall EgtSetMainWindowHandle( HWND hMainWnd) { return ( ExeSetMainWindowHandle( hMainWnd) ? TRUE : FALSE) ; } + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtGetStringUtf8FromIni( const wchar_t* wsSec, const wchar_t* wsKey, const wchar_t* wsDef, + wchar_t*& wsVal, const wchar_t* wsIniFile) +{ + string sVal ; + if ( ! ExeGetStringUtf8FromIni( wstrztoA( wsSec), wstrztoA( wsKey), wstrztoA( wsDef), sVal, wstrztoA( wsIniFile))) + return FALSE ; + wsVal = _wcsdup( stringtoW( sVal)) ; + return (( wsVal == nullptr) ? FALSE : TRUE) ; +} + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtWriteStringUtf8ToIni( const wchar_t* wsSec, const wchar_t* wsKey, const wchar_t* wsVal, const wchar_t* wsIniFile) +{ + return ( ExeWriteStringUtf8ToIni( wstrztoA( wsSec), wstrztoA( wsKey), wstrztoA( wsVal), wstrztoA( wsIniFile)) ? TRUE : FALSE) ; +} diff --git a/EgtInterface.rc b/EgtInterface.rc index 3b68a44..9cdff69 100644 Binary files a/EgtInterface.rc and b/EgtInterface.rc differ