次の方法で共有


CeCreateDatabaseEx (CEDB) (Windows Embedded CE 6.0)

1/6/2010

This function creates a new database in the object store or in amounted volume. This function is obsolete. Call the CeCreateDatabaseEx2 (CEDB) function instead.

A RAPI version of this function exists named CeCreateDatabaseEx (RAPI).

Syntax

CEOID CeCreateDatabaseEx( 
  PCEGUID pceguid, 
  CEDBASEINFO* lpCEDBInfo
);

Parameters

  • pceguid
    [in] Pointer to the CEGUID that contains the globally unique identifier of a mounted database volume or of the object store. Use the CREATE_SYSTEMGUID function to obtain the GUID of the object store.
  • lpCEDBInfo
    [in] Pointer to the CEDBASEINFO (CEDB) structure that determines the name, type, sort orders, and characteristics of the database.

Return Value

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

Value Description

ERROR_DISK_FULL

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

ERROR_DUP_NAME

Indicates that a database already exists with the specified name.

ERROR_INVALID_PARAMETER

Indicates that a parameter was invalid.

Remarks

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

A CEGUID and CEOID together uniquely identify a record or database in a database volume or in the object store.

Requirements

Header windbase.h
Library coredll.lib
Windows Embedded CE Windows CE 2.10 and later

See Also

Reference

CEDB Functions
CeCreateDatabaseEx2 (CEDB)
CeOidGetInfoEx (CEDB)
CeOpenDatabaseEx (CEDB)
CeSetDatabaseInfoEx (CEDB)
CEDBASEINFO (CEDB)
CREATE_SYSTEMGUID
SORTORDERSPEC (CEDB)