Transfer Options Example for C++ 5.0 and later

void TestTransferOptions(ILEADRasterTwain * pRasterTwain)
{
   pRasterTwain->GetTransferOptions ();

   pRasterTwain->put_TransferMode (L_TWAIN_TRANSFER_FILE);

   CString csFileName = TEXT("c:\\test.bmp");
   pRasterTwain->put_TransferFileName (csFileName.AllocSysString());
   pRasterTwain->put_TransferFileFormat (L_TWFF_BMP);
   pRasterTwain->put_TransferCompressionType (L_TWCP_NONE);

   pRasterTwain->SetTransferOptions ();
   
   if (pRasterTwain->IsFileTransferAvailable)
      MessageBox(NULL, TEXT("File transfer is supported"), TEXT("Notice!"), MB_OK);
   if (pRasterTwain->IsMemoryTransferAvailable)
      MessageBox(NULL, TEXT("Memory transfer is supported"), TEXT("Notice!"), MB_OK);
   if (pRasterTwain->IsNativeTransferAvailable)
      MessageBox(NULL, TEXT("Native transfer is supported"), TEXT("Notice!"), MB_OK);
}