Microsoft Windows CE 3.0  

CeCreateDatabaseEx (RAPI)

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

This function creates a new database in the object store or in a mounted volume. CeCreateDatabaseEx (RAPI)is a remote application interface, which enables an application running on a desktop computer to make function calls on a Windows CE–based device.

CEOID CeCreateDatabaseEx(
PCEGUID
pceguid
,

CEDBASEINFO
*
lpCEDBInfo
);

Parameters

pceguid
[in] Pointer to the CEGUIDthat contains the globally unique identifier of a mounted database.
lpCEDBInfo
[in] Pointer to the CEDBASEINFOstructure 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 CeGetLastError. Possible values for CeGetLastErrorinclude 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.

Remarks

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 CeSetDatabaseInfoExfunction to change the sort order later; however, this function is even more expensive in terms of system resources.

In versions 2.10 - 2.12, a CEGUIDand CEOIDtogether uniquely identify a record or database in a database volume, including the object store. Effective with version 3.0 only objects in the object store have valid Oids.

Requirements

Runs On Versions Defined in Include Link to
Windows CE OS 2.10 and later Rapi.h    

See Also

CeDeleteDatabaseEx, CeGetLastError, CeOidGetInfoEx, CeOpenDatabaseEx, CeSetDatabaseInfoEx, CEDBASEINFO, CREATE_SYSTEMGUID, SORTORDERSPEC