|
CoUninitialize
Closes the OLE Component Object Model(COM) library, freeing any resources that
it maintains and forcing all RPC connections to close.
Comments
The CoInitialize and CoUninitialize calls must be balanced if there are multiple calls to the CoInitialize function, there must be the same number of calls to CoUninitialize: Only the CoUninitialize call corresponding to the CoInitialize call that initialized the library can close it.
The OleUninitialize function calls CoUninitialize internally, so applications that call OleUninitialize do not also need to call CoUninitialize.
The CoUninitialize function should 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, CoUninitialize starts a modal message loop and dispatches any pending messages from the
containers or server for this OLE application. By dispatching the messages, CoUninitialize ensures that the application does not quit before receiving all of its pending
messages. Non-OLE messages are discarded.
See Also
CoInitialize, OleUninitialize
Related LinksSoftware for Delphi and C++ Builder developers Software for Visual Studio .NET developers Software for Visual Basic 6 developers Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps Win32 Programmer's Reference (win32.hlp) Win32 Multimedia Programmer's Reference (mmedia.hlp) Microsoft Windows Pen API Programmer's Reference (penapi.hlp) Microsoft Windows Sockets 2 Reference (sock2.hlp) Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp) Unix Manual Pages
|