Call this member function to obtain various kinds of information about a database open in the workspace.
void GetDatabaseInfo( int nIndex, CDaoDatabaseInfo& dbinfo, DWORD dwInfoOptions = AFX_DAO_PRIMARY_INFO ); void GetDatabaseInfo( LPCTSTR lpszName, CDaoDatabaseInfo& dbinfo, DWORD dwInfoOptions = AFX_DAO_PRIMARY_INFO );
One version of the function lets you look up a database by index. The other version lets you look up a database by name.
For a description of the information returned in dbinfo, see the CDaoDatabaseInfo structure. This structure has members that correspond to the items of information listed above in the description of dwInfoOptions. When you request information at one level, you get information for any prior levels as well.