FVSDK_ERROR_CODE FVSDK_ApplySessionChange(FVSDK_Session* pSession);
Applies FVSDK_Session structure changes to the session. Use this function when changing certain session elements when already connected to a server. NOTE: All session settings are applied; this function does not send changes only. This operation can be relatively lengthy, so apply only after making all of the required changes to session elements.
pSession
A pointer to a valid FVSDK_Session structure.
FVSDK_OK if successful; error codes can be found in FVSDK_ErrorCodes.h.
// make session changes
pSession->bPasv = TRUE;
pSession->bConfirmUploadOverwrite = TRUE;
// apply the changes to the currently connected session
if (FVSDK_ApplySessionChange(pSession) != FVSDK_OK)
AfxMessageBox("Unable to apply session changes.");