Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.


Windows Mobile 6.5
A version of this page is also available for

This method creates a new database in the object store or in amounted volume on a remote Windows Embedded CE–based remote.

CEOID CeCreateDatabaseEx( 
  PCEGUID pceguid, 


[in] Pointer to the CEGUID that contains the globally unique identifierof a mounted database volume.


[in] Pointer to the CEDBASEINFO structure that determines the name, type, sort orders, and characteristics of the database.

The object identifier of the newly created database indicates success. NULL indicates failure. To get extended error information, call IRAPISession::CeGetLastError and IRAPISession::CeRapiGetError. Possible values for IRAPISession::CeGetLastError include the following:


The destination source does not contain enough space to create the new database.


A parameter was invalid.


A database already exists with the specified name.

Because sort orders increase the system resources needed to perform each insert and delete operation, you should keep the number of sort orders to a minimum. Use the IRAPISession::CeSetDatabaseInfoEx function to change the sort order later.

Only objects in the object store have valid object identifiers.

Do not create a database name that end with a backslash character "\".

Libraryole32.lib, rapiuuid.lib
Windows Embedded CEWindows Embedded CE 6.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

© 2015 Microsoft