User defined callback function

int CALLBACK CallbackProc(UINT msg,LPARAM UserData,LPARAM P1,LPARAM P2);

Description

This function is called by UnRAR.dll library to process different UnRAR events listed below. You can specify the address of this function either in RAROpenArchiveEx (preferable) or in RARSetCallback (obsolete)

Function parameters

The function will be passed four parameters:

Return values

In general returning -1 means canceling the operation and returning 1 continues processing. Please also read event descriptions above in case we'll add some exceptions from this rule. Return 0 for those event types which you do not process including unknown event types.

Notes

Other UnRAR.dll functions must not be called from the callback function.