diff --git a/API_MachMgr.cpp b/API_MachMgr.cpp index 3913a82..66cfeb6 100644 --- a/API_MachMgr.cpp +++ b/API_MachMgr.cpp @@ -324,6 +324,19 @@ __stdcall EgtSetTable( const wchar_t* wsTable) return ( ExeSetTable( wstrztoA( wsTable)) ? TRUE : FALSE) ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtGetTableName( wchar_t*& wsTableName) +{ + if ( &wsTableName == nullptr) + return FALSE ; + string sTableName ; + if ( ! ExeGetTable( sTableName)) + return FALSE ; + wsTableName = _wcsdup( stringtoW( sTableName)) ; + return (( wsTableName == nullptr) ? FALSE : TRUE) ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtGetTableRef( int nInd, double ptPos[3]) @@ -422,6 +435,19 @@ __stdcall EgtTdbGetNextTool( int nFamily, wchar_t*& wsName, int* pnType) return (( wsName == nullptr) ? FALSE : TRUE) ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtTdbGetToolFromUUID( wchar_t* wsTuuid, wchar_t*& wsName) +{ + if ( &wsName == nullptr) + return FALSE ; + string sName ; + if ( ! ExeTdbGetToolFromUUID( wstrztoA( wsTuuid), sName)) + return FALSE ; + wsName = _wcsdup( stringtoW( sName)) ; + return (( wsName == nullptr) ? FALSE : TRUE) ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtTdbSetCurrTool( const wchar_t* wsName) diff --git a/EgtInterface.rc b/EgtInterface.rc index 7bb3ac3..8e2505f 100644 Binary files a/EgtInterface.rc and b/EgtInterface.rc differ