diff --git a/API_MachMgr.cpp b/API_MachMgr.cpp index 517b263..3fe35ad 100644 --- a/API_MachMgr.cpp +++ b/API_MachMgr.cpp @@ -1487,6 +1487,19 @@ __stdcall EgtSimGetToolInfo( wchar_t*& wsTool, double* pdSpeed) return (( wsTool == nullptr) ? FALSE : TRUE) ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtSimGetOperationInfo( wchar_t*& wsName, int* pnType) +{ + if ( &wsName == nullptr || pnType == nullptr) + return FALSE ; + string sName ; + if ( ! ExeSimGetOperationInfo( sName, *pnType)) + return FALSE ; + wsName = _wcsdup( stringtoW( sName)) ; + return (( wsName == nullptr) ? FALSE : TRUE) ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtSimGetMoveInfo( int* pnGmove, double* pdFeed) diff --git a/EgtInterface.rc b/EgtInterface.rc index d33cfdf..a5a3c9e 100644 Binary files a/EgtInterface.rc and b/EgtInterface.rc differ