Find active Database by UIDThe overloaded CTSession::FindActive() locates an active database given its UID number and returns the database object pointer. The following example shows how to check if a database is active using its UID number. // check if database is active, by UID CTBOOL IsActiveDatabase(CTSession &ASession, ULONG uid) {
return (ASession.FindActive(uid) != NULL) ? YES : NO; } |
|||