查看单个帖子
旧 2007-05-20, 09:00 AM   #3
yogy
高级会员
 
注册日期: 06-11
帖子: 1527
精华: 15
现金: 6353 标准币
资产: 6353 标准币
yogy 向着好的方向发展
默认 回复: How to get the status of dongle? SR:1-444863852

Hi,

Would you like to provide an API function to get the dongle status in the future?

My company’s software named PC-DIMS authorizes with a dongle also. We provide the following interface to get the dongle status about every module.

Example as follows:

// call IsFeatureEnabled to get the dongle status about Gear module.

CHASPClient hc;
int nDummy=0;
if(!hc.IsFeatureEnabled(MOD_GEAR, nDummy))
{
AfxMessageBox(IDS_PORTLOCK_NOT_PROGRAMED);
return FALSE;
}
yogy
yogy离线中   回复时引用此帖