Sets a new value of the maximum length of the scanning task queue.
The queue is used either for asynchronous scanning tasks, or for synchronous scanning in modes KAV_SHT_OUTPROC and KAV_SHT_SERVICE; the scanner host type is set at the SDK initialization stage. For synchronous scanning in mode KAV_SHT_INPROC, the queue is not used; however the kaveSetQueueLen function will return S_OK in this case.
The scanning queue length makes sense only for on demand scanning; for monitoring functions the queue length cannot be limited.
Syntax
HRESULT kaveSetQueueLen (
unsigned long dwQueueLength);
Parameters
The kaveSetQueueLen function has the following parameters.
kaveSetQueueLen function parameters
Name |
Type |
Description |
|---|---|---|
|
in |
New length of the scanning task queue. If you set To organize an infinite queue, set the |
Return value
If the kaveSetQueueLen function succeeds, its return value is S_OK.
For other return codes, see section "Return codes".
Page top