The client application is responsible for implementing an OnAppOpenDocument event handler for some of the supported FileNet Application Integration commands. This event handler method should open the specified document using the application's native open capability. When the event handler is not implemented, the document will be opened using the Microsoft® Windows operating system shell instead.
HRESULT __stdcall CEventHandler::OnAppOpenDocument(BSTR fileName)
{
// Update the document from the file contents.
HRESULT hResult = m_pDocument->UpdateDocument(fileName);
return hResult;
}