Function PrepareOperation

Synopsis

#include <include/extractcallback.hpp>

STDMETHOD() PrepareOperation(Int32 askExtractMode)

Description

IArchiveExtractCallback.

Source

Lines 56-73 in src/extractcallback.cpp. Line 48 in include/extractcallback.hpp.

STDMETHODIMP ExtractCallback::PrepareOperation( Int32 askExtractMode ) {
    mExtractMode = false;

    // in future we might use this switch to handle an event like onOperationStart(Operation o)
    // with enum Operation{Extract, Test, Skip}

    switch ( askExtractMode ) {
    case NArchive::NExtract::NAskMode::kExtract:
        mExtractMode = true;
        break;

    case NArchive::NExtract::NAskMode::kTest:
        mExtractMode = false;
        break;
    }

    return S_OK;
}





Add Discussion as Guest

Log in