Microsoft SDK for Java

Flush

This method of the ILockBytes interface ensures that any internal buffers maintained by the ILockBytes implementation are written out to the underlying physical storage.

Syntax

public void Flush();



Return Values

S_OK -- the flush operation was successful.

STG_E_ACCESSDENIED -- the caller does not have permission to access the byte array.

STG_E_MEDIUMFULL -- the flush operation is not completed because there is no space left on the storage device.

E_FAIL -- general failure writing data.

STG_E_TOOMANYFILESOPEN -- under certain circumstances, Flush does a dump-and-close to flush, which can lead to a return value of STG_E_TOOMANYFILESOPEN if no file handles are available.

STG_E_INVALIDHANDLE -- an underlying file has been prematurely closed, or the correct floppy disk has been replaced by an invalid one.

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