KcsProfileId monitorProfile, scannerProfile, completeProfile;
KcsStatusId status;
KcsErrDesc errDesc;
/* The monitor profile and scanner profile have been loaded and connected *
* to become a complete profile, now optimize. */
status = KcsOptimizeProfile(completeProfile, KcsOptSpeed, KcsLoadAllNow);
if (status != KCS_SUCCESS) {
status = KcsGetLastError(&errDesc);
fprintf(stderr,"KcsOptimizeProfile failed error = %s\n", errDesc.desc);
KcsFreeProfile(monitorProfile);
KcsFreeProfile(scannerProfile);
return(-1);
}
|