Writing and Creating a Record

Use the CeWriteRecordProps function to write to a record. Like CeReadRecordProps, CeWriteRecordProps uses an array of CEPROPVAL structures to pass property information into the record. To create a new record, call CeWriteRecordProps with the oidRecord parameter set to 0. Once you finish writing or creating a record, Windows CE updates the database.

When writing to a mounted volume, Windows CE caches all write operations. The database subsystem periodically requests a cache flush after a series of operations. If memory is low, Windows CE flushes the cache to permanent storage. Windows CE cannot choose to flush only part of the cache: all database blocks are flushed during a flush.