KeyGenerator 1.6g8 :

- aggiornamento e modifiche per gestione codici chiavi hardware.
This commit is contained in:
Dario Sassi
2015-07-29 07:11:13 +00:00
parent 12867cc4fb
commit c94137d649
6 changed files with 49 additions and 30 deletions
+2
View File
@@ -18,6 +18,7 @@
#include "/EgtDev/Include/EGnGetModuleVer.h"
#include "/EgtDev/Include/EgtStringConverter.h"
#include "/EgtDev/Include/EgtIniFile.h"
#include "/EgtDev/Include/SELkLockId.h"
#include "/EgtDev/Include/SELkKeyProc.h"
using namespace std ;
@@ -82,6 +83,7 @@ CKeyGeneratorApp::InitInstance( void)
m_pszProfileName = p ;
// verifico la protezione
SetLockType( KEY_LOCK_TYPE_HW) ;
string sKey = GetPrivateProfileStringUtf8( "General", "Key", "", m_pszProfileName) ;
if ( VerifyKey( sKey, 1230, 16, 10) != KEY_OK)
return FALSE ;