Function CryptoGetTextPassword2

Synopsis

#include <include/updatecallback.hpp>

STDMETHOD() CryptoGetTextPassword2(Int32 *passwordIsDefined, BSTR *password)

Description

No description yet.

Source

Lines 102-115 in src/updatecallback.cpp. Line 65 in include/updatecallback.hpp.

HRESULT UpdateCallback::CryptoGetTextPassword2( Int32* passwordIsDefined, BSTR* password ) {
    if ( !mHandler.isPasswordDefined() ) {
        if ( mAskPassword ) {
            // You can ask real password here from user
            // Password = GetPassword(OutStream);
            // PasswordIsDefined = true;
            mErrorMessage = L"Password is not defined";
            return E_ABORT;
        }
    }

    *passwordIsDefined = ( mHandler.isPasswordDefined() ? 1 : 0 );
    return StringToBstr( mHandler.password().c_str(), password );
}





Add Discussion as Guest

Log in