EgtInterface :

- aggiunta funzione EgtGetCurrMachineName.
This commit is contained in:
Dario Sassi
2015-11-24 22:10:14 +00:00
parent 9af86f8919
commit 77b037d992
+13
View File
@@ -37,6 +37,19 @@ __stdcall EgtSetCurrMachine( const wchar_t* wsMachineName)
return ( ExeSetCurrMachine( wstrztoA( wsMachineName)) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetCurrMachineName( wchar_t*& wsMachineName)
{
if ( &wsMachineName == nullptr)
return FALSE ;
string sMachineName ;
if ( ! ExeGetCurrMachineName( sMachineName))
return FALSE ;
wsMachineName = _wcsdup( stringtoW( sMachineName)) ;
return (( wsMachineName == nullptr) ? FALSE : TRUE) ;
}
//-----------------------------------------------------------------------------
// Machining Groups
//-----------------------------------------------------------------------------