<< Back


pfnLocalFileChanged

Synopsis

void (CALLBACK* pfnLocalFileChanged) (FVSDK_CALLBACK_DATA pvLocalFileChangedData, LPCTSTR pszPath);

Description

Called when an existing local file has been changed.

Parameters

pvLocalFileChangedData

The DWORD value set in the FVSDK_Session structure. The meaning of this value is application defined.

pszPath

A NULL terminated string containing the full path of the local file that was changed.

Return Value

None

Example

void CALLBACK OnLocalFileChanged(FVSDK_CALLBACK_DATA pvLocalFileChangedData, LPCTSTR pszPath)
{
    LPCTSTR lpszFmt = "The local file has changed:\r\n\n%s";
    CString sMsg;

    // create a message to display to the user
    sMsg.Format(lpszFmt, pszPath);

    // display the message to the user
    AfxMessageBox(sMsg, (MB_ICONINFORMATION | MB_OK));
} // OnLocalFileChanged