<< Back


FVSDK_LastOperationStopped

Synopsis

FVSDK_ERROR_CODE FVSDK_LastOperationStopped(FVSDK_Session* pSession);

Description

Checks whether or not the last operation was stopped or canceled via the FVSDK_Stop() command.

Parameters

pSession

A pointer to the FVSDK_Session that is to perform the operation.

Return Value

FVSDK_YES if the last operation was stopped or canceled; FVSDK_NO if the last operation was not stopped or canceled. Error codes can be found in FVSDK_ErrorCodes.h.

Example

// try to connect to the server, display an error if not canceled
if (FVSDK_Connect(pSession) != FVSDK_OK) {

    // if the last operation wasn't canceled by the user, display a message
    if (FVSDK_LastOperationStopped(pSession) != FVSDK_YES)
        AfxMessageBox("Unable to connect to the server");
} // if