FVSDK_ERROR_CODE FVSDK_RemoteView(FVSDK_Session* pSession, LPCTSTR pszFilePath);
Downloads a file, then brings up the configured viewing application. Once the user is done viewing the file and the file has been changed, the user is prompted whether or not the file should be uploaded.
pSession
A pointer to the FVSDK_Session that is to perform the operation. The nAutoUpload element of the FVSDK_Session structure is used to control how the file is uploaded after changes are made by the user.
pszFilePath
A NULL terminated string containing the full remote path to the file to view.
FVSDK_OK if successful; error codes can be found in FVSDK_ErrorCodes.h.
NOTE: If the session structure is valid, this function always returns FVSDK_OK. This is done because transfers can be asynchronous if bConnectionSaver is set to FALSE. To be notified of transfer errors, use the appropriate callback function found in the FVSDK_Session structure.
// view the remote file
FVSDK_RemoteView(pSession, "/pub/rhinosoft/00index.txt");