The client application is responsible for implementing an OnAppGetActiveDocumentPath event handler for some of the supported FileNet Application Integration commands. This event handler method should return the path to the application's active document via the parameter list.
HRESULT __stdcall CEventHandler::OnAppGetActiveDocumentPath(BSTR *pActiveDocumentPath)
{
// Retrieve the active document path from the document
object.
_bstr_t activeDocumentLocation = m_pDocument->GetDocumentName();
*pActiveDocumentPath = activeDocumentLocation.copy();
return S_OK;
}