# %CoInitialize interface

Call to initialize the COM library.

## Syntax

```
retcode = %CoInitialize(Param)
```

## Parameter(s)

| Param [out] | Handle to the CAutoCTRL object. |
| --- | --- |

## Returns

1 = OK

0 = Failed

-10
= Out of memory

## See also

- [Using the COM interface to FlashBASIC](https://d3codex.com/pickbasic-flashbasic/using-the-com-interface-to-flashbasic/)
- [FlashBASIC automation application interfaces](https://d3codex.com/pickbasic-flashbasic/flashbasic-automation-application-interfaces/)

---
Source: https://d3codex.com/pickbasic-flashbasic/coinitialize-interface/ - part of the D3Codex reference.
