Share via


IRAPISession::CeFlushDBVol

Send Feedback

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

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

Nonzero indicates success. Zero indicates failure. To get extended error information, call IRAPISession::CeGetLastError and 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::CeFlushDBVol method 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

OS Versions: Windows CE 5.01 and later.
Header: Rapi2.h.
Link Library: Ole32.lib, Rapiuuid.lib.

See Also

IRAPISession::IUnknown | IRAPISession::CeMountDBVol | IRAPISession::CeUnmountDBVol | IRAPISession::CeFlushDBVol

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.