CeDeleteRecord (EDB) (Windows CE 5.0)
This function is used to delete a record from a database.
This function does not work with CEDB databases. For more information about CEDB, see CEDB Reference.
BOOL CeDeleteRecord(HANDLEhDatabase,CEOIDoidRecord);
Parameters
- hDatabase
[in] A handle to the database from which to delete the record. The database is opened by using the CeOpenDatabaseinSession (EDB) function. - oidRecord
[in] The object identifier of the record to delete. This object identifier must have been generated from EDB, not CEDB.
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_PARAMETER | Indicates that oidRecord is NULL or invalid. |
ERROR_INVALID_HANDLE | Indicates that hDatabase is NULL or equal to INVALID_HANDLE_VALUE. |
ERROR_NOT_FOUND | Indicates that the record specified by oidRecord does not exist. |
ERROR_SHARING_VIOLATION | Indicates a lock conflict. |
Remarks
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 will fail. If the CEDB_AUTOINCREMENT flag was specified, the system automatically moves the current seek pointer forward by one.
Requirements
OS Versions: Windows CE 5.0 and later.
Header: Windbase.h.
Link Library: Coredll.lib..
See Also
Send Feedback on this topic to the authors