# AbortAsyncLoadFile

Aborts an asynchronous file load operation in progress.

### Synopsis

`Err AbortAsyncLoadFile (LoadFileInfo *lf)`

### Description

Aborts an asynchronous load operation in progress, even if the operation has already completed.

If the call to `AsyncLoadFile()` requested allocation of a buffer, this function frees the buffer. If the call to `AsyncLoadFile()` specified an ioDonePort, you will not receive notification at that port after calling `AbortAsyncLoadFile()`.

Do not call `FinishAsyncLoadFile()` after calling `AbortAsyncLoadFile()`; it performs the actions internally.

### Arguments

lf
  Pointer to the LoadFileInfo structure for the load operation.

### Return Value

Returns ABORTED.

### Implementation

Library call implemented in lib3do.lib.

### Associated Files

lib3do.lib, blockfile.h

### See Also

``AsyncLoadFile``