CeFlushDBVol

This function flushes information from a database volume to permanent storage.

STDAPI_(BOOL) CeFlushDBVol(
  PCEGUID pceguid 
);

Parameters

  • pceguid
    [in] Pointer to the CEGUID that contains the globally unique identifier (GUID) of a mounted volume to be flushed.

Return Values

TRUE indicates success. FALSE indicates failure. To get extended error information, call CeGetLastError.

Remarks

In a mounted database volume, all write operations are cached. To explicitly force the data to be written out to permanent storage, the CeFlushDBVol function must be called. If a reset or power failure occurs before data is flushed from the cache, then the data that has not been flushed is lost. The database engine periodically flushes the database volume when enough data has been changed, but an application that must be assured that its data is saved should call CeFlushDBVol. A database volume is also flushed when it is unmounted.

Requirements

Smartphone Platforms: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: rapi.h
Library: rapi.lib

See Also

CeUnmountDBVol, CeWriteRecordProps, CeGetLastError

Last updated on Friday, April 22, 2005

© 2005 Microsoft Corporation. All rights reserved.

Send feedback on this topic to the authors.