Determining the current database

Given a Lotus Notes plugin written using the C API, is there a way that it can detect the name (full path) of the database that is currently opened and has focus?

Subject: Determining the current database

Does anyone know something that might help me with this issue?