# Function Reference

# DllClose

Closes a previously opened DLL.

DllClose ( dllhandle )

## Parameters

dllhandle | The handle of a dll, as returned by a previous call to DllOpen().

## Return Value

None.

## Remarks

Upon termination, AutoIt automatically closes any dlls it opened but calling DllClose() is still a good idea.

## Related

DllCall, DllOpen

## Example

    Local $hDLL = DllOpen("user32.dll")
    DllCall($hDLL, "int", "MessageBox", "hwnd", 0, "str", "Some text", "str", "Some title", "int", 0)
    DllClose($hDLL)