CeDeleteRecord (RAPI) (Windows CE 5.0)
This function deletes a record from a database.
CeDeleteRecord is a remote application interface (RAPI), which enables an application running on a desktop computer to make function calls on a Windows CE–based device.
BOOLCeDeleteRecord(HANDLEhDatabase, CEOIDoidRecord);
Parameters
- hDatabase
[in] Handle to the database from which the record is to be deleted. The database must be open. Open a database by calling the CeOpenDatabase (RAPI) function. - oidRecord
[in] Object identifier of the record to be deleted; this is obtained from CeOpenDatabase (RAPI).
Return Values
TRUE indicates success. FALSE indicates failure. To get extended error information within a RAPI program, call CeGetLastError. CeGetLastError may return ERROR_INVALID_PARAMETER if the handle or object identifier is invalid.
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.
Note Earlier versions of Windows CE assigned OIDs to objects in other file systems, such as the FAT file system. These OIDs were guaranteed to be unique within a volume, but not across multiple volumes. Effective with version 3.0, only objects in the object store have valid, unique OIDs and the object store is the only volume that can return an object identifier.
Requirements
OS Versions: Windows CE 2.0 and later.
Header: Rapi.h.
Link Library: Rapi.lib.
See Also
RAPI Functions | CeGetLastError | CeOpenDatabase (RAPI)
Send Feedback on this topic to the authors