Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
A version of this page is also available for
4/8/2010
This method opens an existing database in the object store or in a mounted database volume on a remote Windows Embedded CE–based device.
HANDLE CeOpenDatabaseEx(
PCEGUID pceguid,
PCEOID poid,
LPWSTR lpszName,
CEPROPID propid,
DWORD dwFlags,
CENOTIFYREQUEST * pRequest
);
dwFlags
[in] Specifies an action flag. It is one of the following flags.
Value | Description |
---|---|
CEDB_AUTOINCREMENT |
Current seek position is automatically incremented with each call to IRAPISession::CeReadRecordPropsEx. |
0 |
Current seek position is not incremented with each call to IRAPISession::CeReadRecordPropsEx. |
A handle to the open database indicates success. INVALID_HANDLE_VALUE indicates failure. To get extended error information, call IRAPISession::CeGetLastError and IRAPISession::CeRapiGetError. Possible values for CeGetLastError include the following:
An application must use the IRAPISession::CeCloseHandle method to close the handle returned by the IRAPISession::CeOpenDatabaseEx method.
Opening and closing a Windows Embedded CE database does not cause any transactions to be committed. In other words, database transactions are not committed when the database is closed, they are committed after each individual call.
Header | rapi2.h |
Library | ole32.lib, rapiuuid.lib |
Windows Embedded CE | Windows Embedded CE 6.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |
IRAPISession
IRAPISession::CeCreateDatabaseEx
IRAPISession::CeSeekDatabase
IRAPISession::CeReadRecordPropsEx
IRAPISession::CeCloseHandle
IRAPISession::CeOpenDatabase
Please sign in to use this experience.
Sign in