Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This function closes the OLE Component Object Model (COM) library, freeing any resources that it maintains.
void CoUninitialize();
Return Values
None.
Remarks
A thread must call CoUninitializeonce for each successful call it has made to CoInitializeEx. Only the CoUninitializecall corresponding to the CoInitializeExcall that initialized the library can close it.
CoUninitializeshould be called on application shutdown, as the last call made to the COM library after the application hides its main windows and falls through its main message loop. If there are open conversations remaining, CoUninitializestarts a modal message loop and dispatches any pending messages from the containers or server for this COM application. By dispatching the messages, CoUninitializeensures that the application does not quit before receiving all of its pending messages. Non-COM messages are discarded.
Requirements
Runs On | Versions | Defined in | Include | Link to |
---|---|---|---|---|
Windows CE OS | 2.0 and later | Objbase.h |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
See Also