DACancelRangeSourcePrefetch
Direct access functionality, Progressive loading
Description
Requests cancellation of a prefetch job belonging to a direct-access byte-range stream
Syntax
Delphi
Function TPDFlib.DACancelRangeSourcePrefetch(FileHandle,
JobHandle: Integer): Integer;Parameters
| FileHandle | Direct-access handle returned by DAOpenFile or DAOpenFromStream whose reader is backed by TByteRangeStream |
|---|---|
| JobHandle | Job handle returned by DAStartRangeSourcePrefetch for the same file handle |
Return values
Returns 1 for valid file and job handles, otherwise returns zero and sets LastErrorCode to 401
Remarks
Cancellation is immediate for queued work and cooperative between synchronous source reads for running work