CeStreamSaveChanges (EDB) (Windows CE 5.0)

Send Feedback

This function is used to commit the changes that have been made to the stream using the CeStreamWrite (EDB) function.

This function does not work with CEDB databases. For more information about CEDB, see CEDB Reference.

BOOL CeStreamSaveChanges(HANDLEhStream);

Parameters

  • hStream
    [in] A handle to the stream object. The handle is obtained by using the CeOpenStream (EDB) function.

Return Values

TRUE indicates success. FALSE indicates failure. To get extended error information, call GetLastError. The following table lists possible values returned by GetLastError:

Return Value Description
ERROR_INVALID_HANDLE Indicates that hStream is NULL or equal to INVALID_HANDLE_VALUE.
ERROR_ACCESS_DENIED Indicates that the stream was not opened with GENERIC_WRITE.
ERROR_NO_MORE_ITEMS Indicates that the database from which the stream object was opened had its current row seek position changed. To prevent this, you should open a stream, perform the operations, and then close the stream before doing anything else on the parent database.

Remarks

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

Requirements

OS Versions: Windows CE 5.0 and later.
Header: Windbase.h.
Link Library: Coredll.lib.

See Also

CeStreamWrite (EDB) | CeOpenStream (EDB)

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.