DAWaitForRangeSourcePrefetch

Direct access functionality, Progressive loading, Synchronisation

Description

Waits for a direct-access prefetch job to reach a terminal state

Syntax

Delphi

Function TPDFlib.DAWaitForRangeSourcePrefetch(FileHandle,
  JobHandle: Integer; TimeoutMS: Cardinal= INFINITE): Integer;

Return value

Returns a PDF_RANGE_PREFETCH_STATE_* terminal state, or zero for a timeout or invalid handleInvalid handles set

LastErrorCode to 401 while a timeout leaves it at zero