Call this function to change the state of an OLE item from the running state to the loaded state, that is, loaded with its handler in memory but with the server not running.
OLECLOSE dwCloseOption = OLECLOSE_SAVEIFDIRTY
Flag specifying under what circumstances the OLE item is saved when it returns to the loaded state. It can have one of the following values:
OLECLOSE_SAVEIFDIRTY Save the OLE item.
OLECLOSE_NOSAVE Do not save the OLE item.
OLECLOSE_PROMPTSAVE Prompt the user on whether to save the OLE item.
This function has no effect when the OLE item is not running.
For more information, see IOleObject::Close in the Windows SDK.