A version of this page is also available for
This function deletes a database that is in a volume that was mounted by using the CeMountDBVolEx (EDB) function.
BOOL CeDeleteDatabase( PCEGUID pGuid CEOID oid );
[in] Pointer to a buffer that contains the CEGUID that represents the mounted database.
[in] OID of the database to delete. This database must exist in the volume specified by pGuid. This OID is generated by the CeCreateDatabaseWithProps (EDB) function.
TRUE indicates success. FALSE indicates failure. To get extended error information, call GetLastError. The following table lists possible values returned by GetLastError:
Indicates one of the following:
The volume specified by pGuid does not exist, or the database specified by oid does not exist in the specified volume.
The database specified is currently open, and therefore cannot be deleted.
A database cannot be deleted if it is open.
|Windows Embedded CE||Windows CE 5.0 and later|
|Windows Mobile||Windows Mobile Version 5.0 and later|