diff --git a/EInAPI.h b/EInAPI.h index ad21143..10b24fb 100644 --- a/EInAPI.h +++ b/EInAPI.h @@ -50,6 +50,7 @@ EIN_EXPORT void __stdcall EgtDisableCommandLogger( void) ; EIN_EXPORT BOOL __stdcall EgtGetVersionInfo( wchar_t*& wsVer) ; EIN_EXPORT BOOL __stdcall EgtGetKeyInfo( wchar_t*& wsKey) ; EIN_EXPORT BOOL __stdcall EgtSetLockType( int nType) ; +EIN_EXPORT BOOL __stdcall EgtSetLockId( const wchar_t* wsLockId) ; EIN_EXPORT BOOL __stdcall EgtSetNetHwKey( BOOL bNetHwKey) ; EIN_EXPORT BOOL __stdcall EgtGetKeyLevel( int nProd, int nVer, int nLev, int* pnKLev) ; EIN_EXPORT BOOL __stdcall EgtGetKeyOptions( int nProd, int nVer, int nLev, unsigned int* pnOpt2) ; diff --git a/EXeExecutor.h b/EXeExecutor.h index 3246be2..b15a8ff 100644 --- a/EXeExecutor.h +++ b/EXeExecutor.h @@ -55,7 +55,8 @@ EXE_EXPORT bool ExeGetExecutableVersion( std::string& sVer) ; EXE_EXPORT bool ExeGetVersionInfo( std::string& sVer, const char* szNewLine) ; EXE_EXPORT bool ExeGetKeyInfo( std::string& sKey) ; EXE_EXPORT bool ExeSetLockType( int nType) ; -EXE_EXPORT bool ExeSetNetHwKey( bool bNetHwKey) ; +EXE_EXPORT bool ExeSetLockId( std::string sLockId) ; +EXE_EXPORT bool ExeSetNetHwKey( bool bNetHwKey, int nUserId = 0) ; EXE_EXPORT bool ExeGetKeyLevel( int nProd, int nVer, int nLev, int& nKLev) ; EXE_EXPORT bool ExeGetKeyOptions( int nProd, int nVer, int nLev, unsigned int& nOpt2) ; EXE_EXPORT bool ExeGetKeyLeftDays( int& nLeftDays) ; diff --git a/SELkLockId.h b/SELkLockId.h index d0111c4..4758594 100644 --- a/SELkLockId.h +++ b/SELkLockId.h @@ -1,13 +1,14 @@ //---------------------------------------------------------------------------- -// EgalTech 2014-2022 +// EgalTech 2014-2023 //---------------------------------------------------------------------------- -// File : SELkLockId.cpp Data : 16.05.22 Versione : 2.4e3 +// File : SELkLockId.cpp Data : 30.05.23 Versione : 2.5e5 // Contenuto : Dichiarazione funzioni per gestione/calcolo Id protezione, // da macchina o da chiave hardware. // // // Modifiche : 10.09.14 DS Creazione modulo. // 16.05.22 DS Aggiunta gestione chiave di rete. +// 30.05.23 DS Aggiunta gestione utente di rete e rilascio chiave di rete. // //---------------------------------------------------------------------------- @@ -16,10 +17,12 @@ #include //------------------------------------------------------------------------------- -// Imposto il tipo di protezione +// Imposto il tipo di protezione ammessa (ANY, HW, SW) bool SetLockType( int nType) ; -// Forzo chiave di rete (se prevista protezione hardware) -bool SetNetHwKey( bool bNetHwKey) ; +// Imposto chiave di rete e identificativo utente (0-9) +bool SetNetHwKey( bool bNetHwKey, int nUserId) ; +// Libero chiave di rete (da eseguire al termine del programma) +bool CloseNetHwKey( void) ; // Recupero l'identificativo in chiaro della protezione bool GetLockId( std::string& sLockId) ; // Recupero l'identificativo cifrato della protezione