Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This method flushes data written to a database volume on a remote Windows Embedded CE–based device to permanent storage.

Syntax

BOOL CeFlushDBVol(
  PCEGUID 
pceguid 
);

Parameters

pceguid

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

Return Value

Nonzero indicates success. Zero indicates failure. To get extended error information, call IRAPISession::CeGetLastErrorand IRAPISession::CeRapiGetError.

Remarks

In a mounted database volume, all write operations are cached. To explicitly force the data to be written out to permanent storage, the IRAPISession::CeFlushDBVolmethod 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 and when it is unmounted, but an application that must ensure that its data is saved should call IRAPISession::CeFlushDBVol

Requirements

Header rapi2.h
Library ole32.lib, rapiuuid.lib
Windows Embedded CE Windows Embedded CE 6.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also