CeDeleteRecord (EDB)

A version of this page is also available for

Windows Embedded CE 6.0 R3


This function deletes a record from a database.


BOOL CeDeleteRecord(
  HANDLE hDatabase,
  CEOID oidRecord


  • hDatabase
    [in] Handle to the database from which to delete the record. The database is opened by using the CeOpenDatabaseInSession (EDB) function.
  • oidRecord
    [in] Object identifier of the record to delete. This object identifier must have been generated from EDB, not CEDB.

Return Value

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

Return Value Description


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


The oidRecord parameter is set to NULL or invalid.


The record specified by oidRecord does not exist.


Indicates a lock conflict.


If the CEDB_AUTOINCREMENT flag was not specified when the database was opened and the record being deleted is the current record, the next read operation that uses the database handle fails. If the CEDB_AUTOINCREMENT flag was specified, the system automatically moves the current seek pointer forward by one.


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
CeOpenDatabaseInSession (EDB)