Unregistering an Application
One of the advantages to using the COM interface-based notification process is that it allows an application to unregister itself from being notified. This might be helpful when an application needs to run only once.
To unregister an application from being notified
- Call IDccMan::Unadvise, which releases the memory associated with the IDccManSink interface.
- Call IDccMan::Release, which releases the IDccMan object.
- Call CoUninitialize to perform any OLE cleanup. Note that a call to CoUninitialize is required for each successful call to CoInitialize.