CeStreamSaveChanges (EDB)

A version of this page is also available for

Windows Embedded CE 6.0 R3


This function commits changes to a stream made with the CeStreamWrite (EDB) function.


BOOL CeStreamSaveChanges(
  HANDLE hStream


  • hStream
    [in] Handle to the stream object. The handle is obtained with the CeOpenStream (EDB) function.

Return Value

TRUE indicates success. FALSE indicates failure. To get extended error information, call GetLastError. The following table shows possible values.

Return Value Description


The stream was not opened with GENERIC_WRITE.


The hStream parameter is set to NULL or equal to INVALID_HANDLE_VALUE.


The database from which the stream object was opened had its current seek position changed. To prevent this, open a stream, perform the operations, and then close the stream before doing anything else in the parent database.


Once the changes to the stream are successfully committed, the stream becomes read-only. If you try to call CeStreamWrite again on the stream handle, it fails, and GetLastError returns ERROR_ACCESS_DENIED.


Header windbase.h
Library coredll.lib
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also


EDB Functions
CeStreamWrite (EDB)
CeOpenStream (EDB)