Procedural event handler for OnPasswordRequest event.
Unit
Syntax
ParametersACustom [in, optional] Custom user data parameter. It's the same pointer as it was passed to RegisterEvent-function.
AModule [in] Module handle which password is retrieved.
APID [in, optional] Pointer to unique project ID. Can be used to pick password from cache. This parameter is always assigned for EurekaLog 7+ modules.
APasswordHash [in, optional] Pointer to EHash.TSHA1Hash. SHA1 hash of the UTF8-encoded password. Can be used to validate password. This parameter is always assigned for EurekaLog 7+ modules.
APassword [out] Password for debug information.
ACallNextHandler [out] True (default) - call next registered event handler, False - do not call next event handler.
RemarksEurekaLog includes a OnPasswordRequest event for interaction with the user program when a raised exception is handled by EurekaLog and debug information was saved as encrypted. This event allow EurekaLog to obtain the exact password required to can decrypt all the encrypted data, otherwise all the data will be store in the bug report file in encrypted form, also error dialogs will show bug report in encrypted form.
The developer of application may use EurekaLog Viewer tool to decrypt encrypted bug reports.
You can use this event to supply your password to EurekaLog. By default this password is not stored in your executables. It's impossible to decrypt encrypted debug information without a password.
You can either ask user for password at run-time or retrieve it from application's configuration.
See also
|