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

CeCreateDatabaseEx2

Windows CE .NET

This function creates a new database in the object store or in a mounted database volume, or of the object store. Use CREATE_SYSTEMGUID to obtain the GUID of the object store.

CEOID CeCreateDatabaseEx2( 
  PCEGUID pguid, 
  CEDBASEINFOEX* pInfo
);

Parameters

pguid
[in] Pointer to the CEGUID that contains the globally unique identifier of a mounted database.
pInfo
[in] Pointer to the CEDBASEINFOEX 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 GetLastError. The following table lists possible values for GetLastError.

Value Description
ERROR_DISK_FULL Indicates that the destination source does not contain enough space to create the new database.
ERROR_INVALID_PARAMETER Indicates that a parameter was invalid.
ERROR_DUP_NAME Indicates that 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 CeSetDatabaseInfoEx2 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

OS Versions: Windows CE .NET 4.0 and later.
Header: Windbase.h.
Link Library: Coredll.lib.

See Also

CEDBASEINFOEX | CeDeleteDatabaseEx | CeOidGetInfoEx2 | CeOpenDatabaseEx2 | CeSetDatabaseInfoEx2 | CREATE_SYSTEMGUID | SORTORDERSPECEX


 Last updated on Friday, April 09, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.