CCeDBDatabase::SetName

This member function sets the name of the database.

Syntax

BOOL SetName( LPCWSTR wszName );

At a Glance

Header file: Wcedb.h
Platforms:
Versions: 2.0 and later

Parameters

wszName
A pointer to a null-terminated Unicode string containing the name to assign to the database.

Return Values

TRUE if the name was successfully assigned to the database. FALSE if there was an error. Call ::GetLastError to determine why the operation failed.

Remarks

The name must be unique within the object store.

See Also

CCeDBDatabase Overview, CCeDBDatabase Member Functions, Windows CE Database Classes, CCeDBDatabase::GetName, ::GetLastError