CeGetDatabaseSession (EDB) (Windows CE 5.0)

Send Feedback

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

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

CeOpenDatabaseInSession (EDB)

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.