CeGetDatabaseSession (EDB) (Windows CE 5.0)
This function is used to obtain the session of an already opened database.
This function does not work with CEDB databases. For more information about CEDB, see CEDB Reference.
HANDLE CeGetDatabaseSession(HANDLEhDatabase);
Parameters
- hDatabase
[in] Handle to opened database. This handle must have been obtained by calling the CeOpenDatabaseInSession (EDB) function.
Return Values
A return value of INVALID_HANDLE_VALUE indicates failure. To get extended error information, call GetLastError. The following table lists possible values returned by GetLastError:
Return Value | Description |
---|---|
ERROR_INVALID_HANDLE | Indicates that hDatabase is NULL or equal to INVALID_HANDLE_VALUE. |
Remarks
This function allows you to obtain the session from one database, use it to open another database, and then perform a transaction that involves both databases. The handle returned from this function must be closed by calling the CloseHandle function.
Requirements
OS Versions: Windows CE 5.0 and later.
Header: Windbase.h.
Link Library: Coredll.lib.
See Also
Send Feedback on this topic to the authors