OnAppGetActiveDocumentPath Method

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.

Example
The following fragment is taken from the Add-In Sample Application.


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;
}
Parameters
bDocPath - [out] A pointer to a BSTR is returned, which specifies the path to the application's active document.
Return
The OnAppGetActiveDocumentPath event handler method should return an HRESULT value of S_OK when successful.