.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH CoInitializeEx 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBCoInitializeEx\fR (OLE32.@) .SH SYNOPSIS HRESULT CoInitializeEx ( LPVOID \fIlpReserved\fR, DWORD \fIdwCoInit\fR ) .SH DESCRIPTION .PP Initializes the \fBCOM\fR libraries. .SH PARAMS \fIlpReserved\fR \fB[In]\fR Pointer to \fBIMalloc\fR interface (obsolete, should be \fBNULL\fR). .PP \fIdwCoInit\fR \fB[In]\fR One or more flags from the \fBCOINIT\fR enumeration. See notes. .PP .SH RETURNS .PP \fBS_OK\fR if successful, \fBS_FALSE\fR if this function was called already. \fBRPC_E_CHANGED_MODE\fR if a previous call to CoInitializeEx specified another threading model. .SH NOTES .PP The behavior used to set the IMalloc used for memory management is obsolete. The \fIdwCoInit\fR parameter must specify one of the following apartment threading models: .br COINIT_APARTMENTTHREADED - A single-threaded apartment (STA). .br COINIT_MULTITHREADED - A multi-threaded apartment (MTA). .PP The parameter may also specify zero or more of the following flags: .br COINIT_DISABLE_OLE1DDE - Don't use DDE for OLE1 support. .br COINIT_SPEED_OVER_MEMORY - Trade memory for speed. .SH SEE ALSO .PP CoUninitialize .SH IMPLEMENTATION .PP Declared in \fB"compobj_private.h"\fR. .PP Implemented in \fB"dlls/ole32/compobj.c"\fR. .PP Debug channel \fB"ole"\fR.