libs/xxinterface/src/xxsn.cpp
// before checkSerialNumber is called, usingSerialNumber() has to be called at least ONCE
before checkSerialNumber is called, usingSerialNumber() has to be called at least ONCE
before checkSerialNumber is called usingSerialNumber () has to be called at least ONCE
int checkSerialNumber(license_id id) {
	int featureType, returnValue=LIC_FAIL;
#ifdef WIN32
	featureType = getFeatureType(id);
	switch(featureType) {
		case CIEI:
			if(CIsupported() == LIC_SUCCESS || EIsupported() == LIC_SUCCESS) { returnValue=LIC_SUCCESS; }
			break;
		case CI:
			if(CIsupported() == LIC_SUCCESS) { returnValue=LIC_SUCCESS; }
			break;
		case EI:
			if(EIsupported() == LIC_SUCCESS) { returnValue=LIC_SUCCESS; }
			break;
		default:
			returnValue=LIC_FAIL;
			break;
	}
#endif
	return(returnValue);
}
int checkSerialNumber ( license_id id ) { int featureType , returnValue = LIC_FAIL ; #ifdef WIN32 featureType = getFeatureType ( id ) ; switch ( featureType ) { case CIEI : if ( CIsupported ( ) == LIC_SUCCESS || EIsupported ( ) == LIC_SUCCESS ) { returnValue = LIC_SUCCESS ; } break ; case CI : if ( CIsupported ( ) == LIC_SUCCESS ) { returnValue = LIC_SUCCESS ; } break ; case EI : if ( EIsupported ( ) == LIC_SUCCESS ) { returnValue = LIC_SUCCESS ; } break ; default : returnValue = LIC_FAIL ; break ; } #endif return ( returnValue ) ; }
before checkSerialNumber is called, usingSerialNumber() has to be called at least ONCE
before checkSerialNumber is called usingSerialNumber () has to be called at least ONCE
//msg("case of CIEI ... returning $1") << eoarg << returnValue << endl; //printf("case of CIEI ... returning %d\n", returnValue); //msg("case of CI ... returning $1") << eoarg << returnValue << endl; //printf("case of CI ... returning %d\n", returnValue); //msg("case of EI ... returning $1") << eoarg << returnValue << endl; //printf("case of EI ... returning %d\n", returnValue); //printf("Failure to find that feature %d\n", featureType); //msg("Failure to find that feature $1") << featureType << eoarg << eom; //printf("after switch in checkSerial\n");