All Manuals > COM/Automation User Guide and Reference Manual > 2 COM Reference Entries

co-initialize Function

Summary

Initialize the COM library in the current thread.

Package

com

Signature

co-initialize &optional co-init

Arguments
co-init
Flags to specify the concurrency model and initialization options for the thread.
Description

The function co-initialize initializes COM for the current thread. This must be called by every thread that uses COM client or server functions.

The default value of co-init is COINIT_APARTMENTTHREADED. Other flags are allowed as for the dwCoInit argument to CoInitializeEx.

LispWorks takes care of cleaning up COM when a thread exits, but you can also do this explicitly using co-uninitialize.

Examples
(co-initialize)
See also

co-uninitialize


COM/Automation User Guide and Reference Manual - 01 Dec 2021 19:38:38