# %endlistilocks() function

The %endlistilocks() function is used to release the handle allocated
 by the %startlistilocks() function.

| Input | handle | The handle returned by the %startlistilocks() function. |
| --- | --- | --- |

## Syntax

```
 code = %endlistilocks( handle )
```

## Description

To compile successfully, the statement cfunction fsi.builtin must be
 included in the source code.

 This function always returns 0. This function is used to release the handle allocated by he
 %startlistilocks() function.

## Example(s)

```

 cfunction fsi.builtin
 hostFSI = "myserver"
 handle = 0
 code = %startlistilocks( hostFSI, &handle )
 filter = ""
 bufferLength = 1000000
 Char buffer[ bufferLength ]
 bufferLength = %listitemlocksfilter( handle, filter, buffer, bufferLength )
 Crt buffer[ 1, bufferLength ]
 code = %endlistilocks( handle )
```

 Note: For a use case, see dm,bp, nt_list-ilocks.

## See also

- [cfunction statement](https://d3codex.com/pickbasic-flashbasic/cfunction-statement/)
- [%listitemlocksfilter() function](https://d3codex.com/pickbasic-flashbasic/percent-listitemlocksfilter-function/)
- [nt_list-ilocks command](https://d3codex.com/tcl/nt-list-ilocks/)
- [%startlistilocks() function](https://d3codex.com/pickbasic-flashbasic/percent-startlistilocks-function/)

---
Source: https://d3codex.com/pickbasic-flashbasic/percent-endlistilocks-function/ - part of the D3Codex reference.
