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
.