LockContainer example for C++ Builder
void TForm1::CheckConType ( pTW_CAPABILITY ptwCap )
{
pTW_ONEVALUE ptwOneVal= NULL;
if ( ptwCap->ConType == TWON_ONEVALUE )
{
LEADTwain1->LockContainer ( ptwCap, &ptwOneVal );
if ( ptwOneVal != NULL )
{
// Do processing
LEADTwain1->UnlockContainer ( ptwCap );
}
}
}