Releasing OLE and Objects

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

For more information on OleUninitialize and CoRevokeClassObject, see the COM Programmers Reference.