Share via


IRAPISession::CeCreateDatabaseEx

Send Feedback

This method creates a new database in the object store or in a mounted volume on a remote Microsoft® Windows® CE–based remote.

CEOID CeCreateDatabaseEx( 
  PCEGUID pceguid, 
  CEDBASEINFO * lpCEDBInfo 
);

Parameters

  • pceguid
    [in] Pointer to the CEGUID that contains the globally unique identifier **** of a mounted database volume.
  • lpCEDBInfo
    [in] Pointer to the CEDBASEINFO structure 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 IRAPISession::CeGetLastError and IRAPISession::CeRapiGetError. Possible values for IRAPISession::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.

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 IRAPISession::CeSetDatabaseInfoEx function to change the sort order later.

Note   Only objects in the object store have valid object identifiers.

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

RAPI method calls that access databases will fail on devices running in restricted mode unless the database permissions are explicitly set to allow RAPI access. For more information, see RAPI Restricted Mode Security.

Requirements

OS Versions: Windows CE 5.01 and later.
Header: Rapi2.h.
Link Library: Ole32.lib, Rapiuuid.lib.

See Also

IRAPISession::IUnknown | IRAPISession::CeDeleteDatabaseEx | IRAPISession::CeFindFirstDatabaseEx | IRAPISession::CeOidGetInfo | IRAPISession::CeOpenDatabaseEx | IRAPISession::CeCreateDatabase

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.