CeCreateDatabaseEx2 (EDB) (Windows CE 5.0)

Send Feedback

This function creates a new database in a mounted volume. Although this function may be used to create EDB databases, applications should call CeCreateDatabaseWithProps (EDB) when creating an EDB database.

CEOID CeCreateDatabaseEx2(PCEGUIDpguid,CEDBASEINFOEX* pInfo);

Parameters

  • pguid
    [in] Pointer to the CEGUID value that contains the globally unique identifier of a mounted database.
  • pInfo
    [in] Pointer to the structure that determines the name, type, sort orders, and characteristics of the database.

Return Values

The object identifier of the newly created database indicates success. NULL indicates failure. To get extended error information, call GetLastError. The following table shows the possible values for GetLastError.

Value Description
ERROR_DISK_FULL Indicates that the destination source does not contain enough space to create the new database.
ERROR_INVALID_PARAMETER Indicates that a parameter was invalid.
ERROR_DUP_NAME Indicates that a database exists with the specified name.

Remarks

When you use the CeCreateDatabaseEx2 function to create an EDB database, this function calls the CeCreateDatabaseWithProps function, passing a value of 0 for the cProps parameter and a value of NULL for the prgProps parameter.

Requirements

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

See Also

CeCreateDatabaseWithProps (EDB) | CeCreateDatabaseEx2 (EDB)

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.