[Explorer API] Check-In Active Document

My app. for PW Explorer in MicroStation CONNECT works fine.  It runs some checks on a number of DGN files. 

However, when the app starts, the active DGN document may be checked-out and PW prompts the user to check-in.  That is, the MicroStation user may or may not see PW's check-in prompt dialog.

How can I find the PW identity of the active DGN file?  With its PW project and document ID I can then check-in programmatically so the user doesn't see the prompt from PW.