i hope this helps - posted by me on exetools 2010-01-14:
the sdk published on the hex-rays website matches the last "official" release of the decompiler, which is v1.1.090612 at the time of this post. the "warezd" training version features a newer decompiler build v1.1.090909 and unfortunately there were api-changes leading to crashes when calling "hx"-api-functions.
but there's still hope: looking at the api-dispatcher switch-table in the disassembly of hexrays.plw the following trivial fix can be proposed:
/* snip */ /// Pointer to Hex-Rays decompiler dispatcher. /// This variable must be instantiated by the plugin. It is initialized by init_hexrays_plugin(). extern hexdsp_t *hexdsp;
i didn't have the time to check all 202 api-calls but above fix seems to work well - atleast the example plugins load and do work as far as my quick testing goes ...