OleUninitialize  1BXPDIP

Closes the OLE library, freeing any resources that it maintains.

void OleUninitialize();

Remarks

Call this function on application shutdown, as the last OLE library call. OleUninitialize calls the CoUninitializeITVXER function internally to shut down the OLE Component Object(COM) Library.

The OleInitialize9.DDFN and OleUninitialize calls must be balanced   if there are multiple calls to the OleInitialize function, there must be the same number of calls to OleUninitialize: Only the OleUninitialize call corresponding to the OleInitialize call that actually initialized the library can close it.

See Also

OleInitialize, CoUninitialize