void (CALLBACK* pfnFileDownloaded) (FVSDK_CALLBACK_DATA pvFileDownloadedData, LPCTSTR pszSourcePath, LPCTSTR pszDestPath);
Called after a file has been successfully downloaded using the high-level function FVSDK_Download(). Performing a download using the low-level functions FVSDK_OpenFile() and FVSDK_ReadFile() will not result in this callback function being called.
pvFileDownloadedData
The DWORD value set in the FVSDK_Session structure. The meaning of this value is application defined.
pszSourcePath
A NULL terminated string representing the full remote source file path.
pszDestPath
A NULL terminated string representing the full local destination file path.
None
void CALLBACK OnFileDownloaded(FVSDK_CALLBACK_DATA pvFileDownloadedData, LPCTSTR pszSourcePath, LPCTSTR pszDestPath)
{
CString sMsg;
// build a message for the user announcing the file has been uploaded
sMsg.Format("The remote file:\r\n%s\r\n\nhas been downloaded to:\r\n%s", pszSourcePath, pszDestPath);
// display the message to the user
AfxMessageBox(sMsg, (MB_ICONINFORMATION | MB_OK));
} // OnFileDownloaded