diff --git a/EGkDllMain.h b/EGkDllMain.h index 75d321a..aa225df 100644 --- a/EGkDllMain.h +++ b/EGkDllMain.h @@ -47,4 +47,4 @@ EGK_EXPORT const std::string& GetNfeFontDir( void) ; // restituisce il nome del font di default EGK_EXPORT const std::string& GetDefaultFont( void) ; // imposto il gestore eventi -EGK_EXPORT bool SetEGkProcessEvents( pfProcEvents pFun) ; \ No newline at end of file +EGK_EXPORT bool SetEGkProcessEvents( pfProcEvents pFun) ; diff --git a/EGnDllMain.h b/EGnDllMain.h index 1e98e3c..72b9619 100644 --- a/EGnDllMain.h +++ b/EGnDllMain.h @@ -28,3 +28,9 @@ class ILogger ; EGN_EXPORT const char* GetEGnVersion( void) ; // permette di impostare il logger per la Dll EGN_EXPORT void SetEGnLogger( ILogger* pLogger) ; +// imposta la chiave di protezione +EGN_EXPORT void SetEGnKey( const std::string& sKey) ; +// imposta il tipo di chiave di protezione +EGN_EXPORT void SetEGnKeyType( int nType) ; +// imposta se chiave hardware di rete +EGN_EXPORT void SetEGnNetHwKey( bool bNetHwKey) ; diff --git a/EGnGetKeyData.h b/EGnGetKeyData.h new file mode 100644 index 0000000..66c9b73 --- /dev/null +++ b/EGnGetKeyData.h @@ -0,0 +1,33 @@ +//---------------------------------------------------------------------------- +// EgalTech 2023-2023 +//---------------------------------------------------------------------------- +// File : EGnGetKeyData.h Data : 29.05.23 Versione : 2.5e3 +// Contenuto : Prototipo funzioni gestione dati chiavi di protezione. +// +// +// +// Modifiche : 29.05.23 DS Creazione modulo. +// +// +//---------------------------------------------------------------------------- + +#pragma once + +#define NOMINMAX +#include +#include + + +//----------------------- Macro per import/export ---------------------------- +#undef EGN_EXPORT +#if defined( I_AM_EGN) // da definirsi solo nella DLL + #define EGN_EXPORT __declspec( dllexport) +#else + #define EGN_EXPORT __declspec( dllimport) +#endif + +//----------------------------------------------------------------------------- +EGN_EXPORT bool SetEGnKeyLevel( int nRet, int nKeyLev, int nKeyExpDays) ; +EGN_EXPORT int GetEGnKeyLevel( int nProd, int nVer, int nLev, int& nKeyLev, int& nKeyExpDays) ; +EGN_EXPORT bool SetEGnKeyOptions( int nRet, int nKeyOpt1, int nKeyOpt2, int nKeyOptExpDays) ; +EGN_EXPORT int GetEGnKeyOptions( int nProd, int nVer, int nLev, unsigned int& nKeyOpt1, unsigned int& nKeyOpt2, int& nKeyOptExpDays) ; diff --git a/SELkKeyProc.h b/SELkKeyProc.h index 325be83..8a74a06 100644 --- a/SELkKeyProc.h +++ b/SELkKeyProc.h @@ -28,6 +28,7 @@ int GetKeyLevel( const std::string& sKey, int nProd, int nVer, int nLev, int GetKeyOptions( const std::string& sKey, int nProd, int nVer, int nLev, unsigned int& nKOpt1, unsigned int& nKOpt2, int& nKOptExpDays) ; int GetCurrDay( void) ; +int GetMinDay( void) ; //-------------------------- Constants ---------------------------------------- // Codici di ritorno