OLE provides support for multithreaded applications, allowing applications to make OLE calls from multiple threads. This multithreaded support is called the apartment model, it is important that all OLE components using multiple threads follow this model. The apartment model requires that interface pointers are marshaled (using CoMarshalInterface, and CoUnmarshalInterface) when passed between threads.
Related topics
Processes, Threads, and Apartments
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
