Pluginpackedrecord(t_uddsave *psave,ulong tag,ulong size,void *data);
Compresses plugin-specific record and saves it to the .udd
file. Call this function only from the callback ODBG2_Pluginsaveudd().
Use when data is large and easily compressible (for example, sparse or
repeats). Note that OllyDbg uses free compression code that is not very
Pluginpackedrecord() and Pluginsaverecord() are interchangeable. The data returned to ODBG2_Pluginuddrecord() will be uncompressed to the original state.
Pointer to internal OllyDbg structure that identifies plugin in the
.udd file. Plugin receives this pointer from ODBG2_Pluginsaveudd(). Plugin is
not allowed to modify psave
Plugin-unique constant in the range 1..65535 that identifies records of
given type. It is OK to save as many records with the same tag as necessary.
When OllyDbg restores .udd file, it reports this tag to ODBG2_Pluginuddrecord(). To avoid
collisions with other identically named plugins, I recommend to randomize
Pointer to the record
0 on success and -1 on error
When OllyDbg restores module-related data from the .udd file, it passes
records saved by plugin as a sequence of calls to ODBG2_Pluginuddrecord().
data contains address belonging to the processed module, I recommend to
save it in a relative form, as an offset from the module base. Offsets
remain valid even if module (DLL) is reallocated.