Function GetUpdateItemInfo

Synopsis

#include <include/updatecallback.hpp>

STDMETHOD() GetUpdateItemInfo(UInt32 index, Int32 *newData, Int32 *newProperties, UInt32 *indexInArchive)

Description

No description yet.

Source

Lines 77-95 in src/updatecallback.cpp. Line 58 in include/updatecallback.hpp.

HRESULT UpdateCallback::GetUpdateItemInfo( UInt32 index,
                                           Int32* newData,
                                           Int32* newProperties,
                                           UInt32* indexInArchive ) {

    bool isOldItem = index < mOldArcItemsCount;

    if ( newData != nullptr ) {
        *newData = isOldItem ? 0 : 1; //= true;
    }
    if ( newProperties != nullptr ) {
        *newProperties = isOldItem ? 0 : 1; //= true;
    }
    if ( indexInArchive != nullptr ) {
        *indexInArchive = isOldItem ? index : static_cast< uint32_t >( -1 );
    }

    return S_OK;
}





Add Discussion as Guest

Log in