代码如下
try
{
long nAppID = 0x410541; //应用程序ID, 4字节,通过设号工具设置
long Keys[8]= {0};
long nKeyNum = 0;

BOOL ret = 1;
if( 0 != NoxFind(nAppID,Keys, &nKeyNum))
{
ret = 0 ;
return FALSE;
}

//打开第一只加密锁
char * userPin = "F6822DC1D06944FC"; //用户密码,通过设号工具设置
if( 0 != NoxOpen(Keys[0],userPin))
{
ret = 0 ;
return FALSE;
}

//存储区读(16字节)
unsigned char readStorage[16] = {0};
if( 0 != NoxReadStorage(Keys[0],readStorage))
{
ret = 0 ;
return FALSE;
}

CString sLicense = readStorage;
sLicense.MakeLower();

//关闭加密锁
NoxClose(Keys[0]);

if (!ret)
{
return FALSE;
}

CString sLSessionNumb,sLMaxSessionUsers,sLFreeUsers;
int pos;
pos = sLicense.Find(_T('|'));
if (pos >= 0)
{
sLSessionNumb = sLicense.Left(pos);
}

sLicense = sLicense.Mid(pos+1);
pos = sLicense.Find(_T('|'));
if (pos >= 0)
{
sLMaxSessionUsers = sLicense.Left(pos);
}

sLicense = sLicense.Mid(pos+1);
pos = sLicense.Find(_T('|'));
if (pos >= 0)
{
sLFreeUsers = sLicense.Left(pos);
}
if (sLSessionNumb.IsEmpty() || sLMaxSessionUsers.IsEmpty())
return FALSE;

m_nLMaxSessionUsers = atoi(sLMaxSessionUsers);
m_bTryVersion = FALSE;
}
catch (...)
{
return FALSE;
}
return TRUE;
它最后的密码是多少?