Share via


CeDeleteDatabase (EDB) (Windows CE 5.0)

Send Feedback

This function is used to delete a database that is in a volume that was mounted by using the CeMountDbVolEx (EDB) function.

BOOL CeDeleteDatabase( CEOIDoid);

Parameters

  • oid
    [in] The OID of the database to delete. This database must exist in the volume specified by the pGuid parameter. This OID must have been generated by the CeCreateDatabaseWithProps (EDB) function.

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 one of the following:
  • pGuid is NULL.
  • oid is NULL.
ERROR_NOT_FOUND Indicates that the volume specified by pGuid does not exist, or the database specified by oid does not exist in the specified volume.
ERROR_SHARING_VIOLATION Indicates that the database specified is currently open, and therefore cannot be deleted.

Remarks

A database cannot be deleted if it is open.

Requirements

OS Versions: Windows CE 5.0 and later.
Header: Windbase.h.
Link Library: Coredll.lib.

See Also

CeMountDbVolEx (EDB) | CeCreateDatabaseWithProps (EDB)

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.