# CheckAsyncLoadFile

Checks for completion of an async file load operation.

### Synopsis

`Err CheckAsyncLoadFile (LoadFileInfo *lf)`

### Description

Checks the status of an `AsyncLoadFile()` started earlier. A zero return value means I/O is still in progress. A negative return value indicates error, and a positive return value indicates successful completion.

You must call `FinishAsyncLoadFile()` after receiving a non-zero status from this function.

### Arguments

lf
  Pointer to the LoadFileInfo structure for the load operation.

### Return Value

Returns zero if I/O is still in progress, negative if the I/O failed, or positive if the has I/O completed successfully.

### Implementation

Library call implemented in lib3do.lib.

### Associated Files

lib3do.lib, blockfile.h

### See Also

`AsyncLoadFile`