다음을 통해 공유


CeChangeDatabaseLCID (CEDB) (Windows CE 5.0)

Send Feedback

This function changes the locale identifier (LCID) of a database volume for sort operations.

VOID CeChangeDatabaseLCID(PCEGUIDpceguid,DWORDLCID );

Parameters

  • pceguid
    [in] Pointer to a CEGUID identifier that identifies a mounted database volume to which the LCID is applied. If pceguid points to the system GUID value, the object store is used as the database volume.
  • LCID
    [in] Locale identifier to apply to the database volume.

Return Values

None.

Remarks

When you create a database volume, the volume receives the default system LCID; that is, the database volume LCID is set to 0 and the LCID becomes the criteria by which string values for sorting can be compared. Data that exists in the database is sorted using this system LCID. Similarly, database actions that depend on sort order, such as adding a record, depend the LCID.

If you change the system LCID after creating a database volume, you must also use CeChangeDatabaseLCID to change the database LCID and re-sort the existing data. Otherwise, problems can occur when the database attempts to find or add new data based on the new LCID, but the existing data is sorted using the old system LCID.

Requirements

OS Versions: Windows CE 2.10 and later.
Header: Pwindbas.h.
Link Library: Coredll.lib.

See Also

GetLocaleInfo | GetSystemDefaultLCID | GetUserDefaultLCID | CREATE_SYSTEMGUID | CREATE_INVALIDGUID

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.