diff --git a/API_General.cpp b/API_General.cpp index 9d8e139..3471bf1 100644 --- a/API_General.cpp +++ b/API_General.cpp @@ -93,6 +93,19 @@ __stdcall EgtSetIniFile( const wchar_t* wsIniFile) return ( ExeSetIniFile( wstrztoA( wsIniFile)) ? TRUE : FALSE) ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtGetIniFile( wchar_t*& wsIniFile) +{ + if ( &wsIniFile == nullptr) + return FALSE ; + // recupero il nome del file ini + string sIniFile ; + ExeGetIniFile( sIniFile) ; + wsIniFile = _wcsdup( stringtoW( sIniFile)) ; + return (( wsIniFile == nullptr) ? FALSE : TRUE) ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtSetCommandLogger( const wchar_t* wsLogFile) diff --git a/EgtInterface.rc b/EgtInterface.rc index cfe4f39..37a8ac3 100644 Binary files a/EgtInterface.rc and b/EgtInterface.rc differ