This function creates a new database in the object store or in amounted volume on a remote Windows Embedded CE–based remote.
CEOID CeCreateDatabaseEx( PCEGUID pceguid, CEDBASEINFO * lpCEDBInfo );
The object identifier of the newly created database indicates success. NULL indicates failure. To get extended error information, call CeGetLastError or CeRapiGetError. Possible values for 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 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 "\".