QPix Command Reference
![]() |
![]() |
QPx_AcqTestProtocol(acqProtocol):error | |||
![]() |
acqProtocol | Longint | Acquisition protocol ID |
![]() |
error | Longint | Error result |
Tests if an acquisition protocol is available on the current machine and OS.
Parameter acqProtocol is the protocol to test. It can be one of the acquisition protocol ID constants:
qpx_AcqTWAINProtocol | 1 | TWAIN identifier |
qpx_AcqPictureTransferProtocol | 2 | Picture Transfer Protocol identifier |
qpx_AcqVideoProtocol | 4 | Video acquisition protocol identifier |
If the specified protocol is available, QPx_AcqTestProtocol returns qpx_NoErr. If the protocol is not available, error qpx_couldntGetRequiredComponent is returned. If acqProtocol is not one of the above constants, this command returns qpx_paramErr.