Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

CeCreateDatabaseEx (RAPI)

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

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 
);
pceguid

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

lpCEDBInfo

[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 CeGetLastError or CeRapiGetError. Possible values for CeGetLastError include the following:

ERROR_DISK_FULL

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

ERROR_INVALID_PARAMETER

A parameter was invalid.

ERROR_DUP_NAME

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.

Aa922432.note(en-us,MSDN.10).gifNote:
Only objects in the object store have valid object identifiers.

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

Headerrapi.h
Libraryrapi.lib
Windows Embedded CEWindows CE 3.0 and later
Windows MobilePocket PC 2000 and later, Smartphone 2002 and later
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.