Microsoft SDK for Java

SaveCompleted

This method of the IPersistStorage interface notifies the object that it can revert from NoScribble or HandsOff mode, in which it must not write to its storage object, to Normal mode, in which it can. The object enters NoScribble mode when it receives an Save call.

Syntax

public void SaveCompleted(IStorage pStgNew);

Return Value

S_OK -- The object was successfully returned to Normal mode.

E_OUTOFMEMORY -- The object remained in HandsOff mode or NoScribble mode due to a lack of memory. Typically, this error occurs when the object is not able to open the necessary streams and storage objects in pStgNew.

E_INVALIDARG -- The pStgNew parameter is not valid. Typically, this error occurs if pStgNew is NULL when the object is in HandsOff mode.

E_UNEXPECTED -- The object is in Normal mode, and there was no previous call to Save or HandsOffStorage.

Parameters

[in] pStgNew The IStorage pointer to the new storage object, if different from the storage object prior to saving. This pointer can be NULL if the current storage object does not change during the save operation. If the object is in HandsOff mode, this parameter must be non-NULL.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.