# OleUninitialize

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 CoUninitialize function internally to shut down the OLE Component Object(COM) Library.

The OleInitialize and OleUninitialize calls must be balanced &emdash; 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