CeDeleteDatabase

This function removes a database from the object store. This function is obsolete. Applications should call CeDeleteDatabaseEx instead.

A remote application interface (RAPI) version of this function exists, and it also named CeDeleteDatabase.

At a Glance

Header file: Winbase.h
Windows CE versions: 1.01 and later

Syntax

BOOL CeDeleteDatabase(CEOID oidDbase);

Parameters

oidDbase

[in] Object identifier of the database to be deleted.

Return Values

TRUE indicates success. FALSE indicates failure. To get extended error information within a Windows CE–based program, call GetLastError. Possible values for GetLastError include the following:

ERROR_INVALID_PARAMETER

A parameter was invalid.

ERROR_SHARING_VIOLATION

Another thread has an open handle to the database.

Remarks

The CeDeleteDatabase function deletes a database, including all records in the database.

See Also

CeDeleteDatabaseEx, CeCreateDatabaseEx, CeOidGetInfoEx