At this time I trying to write *.elf that creates window and response on key events. No success

But I will try to write tool for applying Elfloader to any base.rkw (I'll get as base RKPatch

). For now, Elfloader consists of following parts:
swi hook. Platform-independent.
int elfload(char *path, void *a, void *b, void *c); Loads *.elf file to ram and give control to it's main(). Platform-independent.
void LoadDaemons(); Finds all *.elf files from C:/ZBIN/Daemons and loads them one by one by elfload(). Platform-independent.
void LoadLibrary(); loads swi library from file C:/zbin/swi.blib. Platform-independent.
swi.blib file. Platform-specific.
So that's we need else?
No, we don't need nothing but rk27sdk (for function prototypes) and Iar 4.41a