Releasing OLE and Objects

To release OLE and the exposed objects, use the following functions:

For more information on OleUninitialize and CoRevokeClassObject, see the OLE Programmer’s Reference in the Win32 SDK.